[FIX] sale: fix typo

Closes #21205
This commit is contained in:
mreficent
2017-11-27 15:37:13 +01:00
committed by Martin Trigaux
parent 12c7d35fa0
commit 0cb86017e2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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'