diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index 838f038d9bc2ea5d095f38d9ce0cbdf3dc21302e..c3b236b12aea4c44e97f92baac1e22ef4ca6c110 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