intrastat_base: fix string formatting

This commit is contained in:
Alexis de Lattre
2023-06-08 01:31:20 +02:00
parent ca024a8fa7
commit d00ee75b53

View File

@@ -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
),
)
}
)