The following commit has been merged in the upstream-4.0 branch: https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-invoice-stock.git;a=commitdiff;h=upstream/4.0.1 -- tryton-modules-account-invoice-stock