@@ -2422,7 +2422,7 @@ msgstr ""
|
||||
#: code:addons/sale/models/sale.py:430
|
||||
#: code:addons/sale/models/sale.py:434
|
||||
#, python-format
|
||||
msgid "There is no invoicable line."
|
||||
msgid "There is no invoiceable line."
|
||||
msgstr ""
|
||||
|
||||
#. module: sale
|
||||
|
||||
@@ -427,11 +427,11 @@ class SaleOrder(models.Model):
|
||||
references[invoice] = references[invoice] | order
|
||||
|
||||
if not invoices:
|
||||
raise UserError(_('There is no invoicable line.'))
|
||||
raise UserError(_('There is no invoiceable line.'))
|
||||
|
||||
for invoice in invoices.values():
|
||||
if not invoice.invoice_line_ids:
|
||||
raise UserError(_('There is no invoicable line.'))
|
||||
raise UserError(_('There is no invoiceable line.'))
|
||||
# If invoice is negative, do a refund invoice instead
|
||||
if invoice.amount_untaxed < 0:
|
||||
invoice.type = 'out_refund'
|
||||
|
||||
Reference in New Issue
Block a user