mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
intrastat_base: fix string formatting
This commit is contained in:
@@ -23,12 +23,13 @@ class ProductTemplate(models.Model):
|
||||
_(
|
||||
"The option 'Is accessory cost?' should only be "
|
||||
"activated on 'Service' products. You have activated "
|
||||
"this option for the product '{product_name}' which is "
|
||||
"configured with type '{product_type}'."
|
||||
).format(
|
||||
product_name=this.display_name,
|
||||
product_type=this._fields["type"].convert_to_export(
|
||||
"this option for the product '%(product_name)s' which is "
|
||||
"configured with type '%(product_type)s'."
|
||||
)
|
||||
% {
|
||||
"product_name": this.display_name,
|
||||
"product_type": this._fields["type"].convert_to_export(
|
||||
this.type, this
|
||||
),
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user