mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
intrastat_product: Improve warning message on intrastat transaction
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
>
|
||||
<group
|
||||
name="intrastat_transactions"
|
||||
string="Default Intrastat Transactions"
|
||||
string="Default Intrastat Transaction Types"
|
||||
>
|
||||
<field
|
||||
name="intrastat_out_invoice_transaction_id"
|
||||
|
||||
Reference in New Issue
Block a user