From 7bfb87b7a8af01e8e14e69588c51e108404e3833 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli <nim@odoo.com> Date: Thu, 16 Nov 2017 10:12:26 +0100 Subject: [PATCH] [IMP] sale: down payment - Create 2 SO, one with a down payment - Validate the down payment invoice - Select both SO, and choose "Invoice Orders" - Create the invoice The down payment is not deduced from the invoice. It is more logical to take it into account at this point of the process. However, changing this in stable is a major change of behavior. opw-779954 --- addons/sale/wizard/sale_make_invoice_advance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index 838f038d9bc2..c3b236b12aea 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -23,6 +23,8 @@ class SaleAdvancePaymentInv(models.TransientModel): order = sale_obj.browse(self._context.get('active_ids'))[0] if all([line.product_id.invoice_policy == 'order' for line in order.order_line]) or order.invoice_count: return 'all' + else: + return 'all' return 'delivered' @api.model -- GitLab