[FIX] sale: fix down payments being deducted when they should not
[FIX] sale: fix down payments being deducted when they should not

Prior to this commit, un-checking 'Deduct down payments' on the invoice wizard had no effect: down payments were still deducted from the final (regular) invoice.

task-2081012

closes odoo/odoo#38326

X-original-commit: 4ef49cafec13e614c788354bc35fd232abab296b
Signed-off-by: Antoine Vandevenne (anv) <3ea5b6e83775406010436de4c505de0fce458384@users.noreply.github.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo