Use correct id for error message when creating invoice line not draft
Closes #12863
This commit is contained in:
1 parent
3f11b8f6b5
commit
3d0512ed89
1 file changed
+1
-1
@@ -2717,7 +2717,7 @@ class InvoiceLine(sequence_ordered(), ModelSQL, ModelView, TaxableMixin):
|
||||
for invoice in Invoice.browse(list(invoice_ids)):
|
||||
if invoice.state != 'draft':
|
||||
raise AccessError(
|
||||
gettext('account_invoice.msg_invoice_line_create',
|
||||
gettext('account_invoice.msg_invoice_line_create_draft',
|
||||
invoice=invoice.rec_name))
|
||||
return super(InvoiceLine, cls).create(vlist)
|
||||
|
||||
|
||||
Reference in new issue
Block a user