diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 35a85611c59..8ddad4aa6c5 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -261,7 +261,7 @@ class SaleOrder(models.Model): invoices[group_key] = invoice if line.qty_to_invoice > 0: line.invoice_line_create(invoices[group_key].id, line.qty_to_invoice) - elif line.qty_to_invoice < 0 and (final or invoices[group_key].amount_untaxed > abs(line.qty_to_invoice * line.price_unit)): + elif line.qty_to_invoice < 0 and final: line.invoice_line_create(invoices[group_key].id, line.qty_to_invoice) for invoice in invoices.values(): diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index 54b110574c9..d2b58d72c12 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -32,8 +32,8 @@ class SaleAdvancePaymentInv(models.TransientModel): return False advance_payment_method = fields.Selection([ - ('all', 'Invoiceable lines'), - ('delivered', 'Invoiceable lines (without refunds)'), + ('all', 'Invoiceable lines (deduce deposits)'), + ('delivered', 'Invoiceable lines'), ('percentage', 'Deposit (percentage)'), ('fixed', 'Deposit (fixed amount)') ], string='What do you want to invoice?', default=_get_advance_payment_method, required=True) diff --git a/addons/sale/wizard/sale_make_invoice_advance.xml b/addons/sale/wizard/sale_make_invoice_advance.xml index c1c2c19f8d5..c8eb0f66906 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.xml +++ b/addons/sale/wizard/sale_make_invoice_advance.xml @@ -27,17 +27,11 @@ attrs="{'invisible': [('advance_payment_method', '!=', 'percentage')]}" class="oe_inline"/> -