summaryrefslogtreecommitdiff
path: root/addons/l10n_fr_pos_cert/models
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-03-01 14:56:19 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-01 12:40:01 +0000
commitf8ff7debdc86ee910af881be82f7b67201bcd791 (patch)
treea627efeb739dff7e0a5f24c14ec3e8a34a0426c2 /addons/l10n_fr_pos_cert/models
parentf4319580e576e033b95db1627dd11f126c187323 (diff)
[FIX] *: bad usage of _ method
No need for selection fields If in global variable, the _lt should be used instead closes odoo/odoo#31211 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/l10n_fr_pos_cert/models')
-rw-r--r--addons/l10n_fr_pos_cert/models/pos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/l10n_fr_pos_cert/models/pos.py b/addons/l10n_fr_pos_cert/models/pos.py
index 7278b9c9c64..227d2f81a3d 100644
--- a/addons/l10n_fr_pos_cert/models/pos.py
+++ b/addons/l10n_fr_pos_cert/models/pos.py
@@ -7,7 +7,7 @@ import pytz
from odoo import models, api, fields
from odoo.fields import Datetime
-from odoo.tools.translate import _
+from odoo.tools.translate import _, _lt
from odoo.exceptions import UserError
@@ -53,7 +53,7 @@ class pos_session(models.Model):
ORDER_FIELDS = ['date_order', 'user_id', 'lines', 'statement_ids', 'pricelist_id', 'partner_id', 'session_id', 'pos_reference', 'sale_journal', 'fiscal_position_id']
LINE_FIELDS = ['notice', 'product_id', 'qty', 'price_unit', 'discount', 'tax_ids', 'tax_ids_after_fiscal_position']
-ERR_MSG = _('According to the French law, you cannot modify a %s. Forbidden fields: %s.')
+ERR_MSG = _lt('According to the French law, you cannot modify a %s. Forbidden fields: %s.')
class pos_order(models.Model):