intrastat_product: Improve warning message on intrastat transaction

This commit is contained in:
Alexis de Lattre
2023-01-23 19:12:23 +01:00
parent 9948e158f5
commit 82ea30d1bd
2 changed files with 10 additions and 4 deletions

View File

@@ -323,10 +323,16 @@ class IntrastatProductDeclaration(models.Model):
if not transaction:
line_notes = [
_(
"No Intrastat Transaction Type on invoice '%s', "
"nor on the fiscal position of the invoice (%s)."
"No Intrastat Transaction Type on invoice '%s'. "
"No Default Intrastat Transaction Type on "
"the fiscal position of the invoice (%s), "
"nor on the accounting configuration page of the company '%s'. "
)
% (
invoice.name,
invoice.fiscal_position_id.display_name,
invoice.company_id.display_name,
)
% (invoice.name, invoice.fiscal_position_id.display_name)
]
self._format_line_note(inv_line, notedict, line_notes)
return transaction

View File

@@ -18,7 +18,7 @@
>
<group
name="intrastat_transactions"
string="Default Intrastat Transactions"
string="Default Intrastat Transaction Types"
>
<field
name="intrastat_out_invoice_transaction_id"