summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-09-16 09:02:01 +0000
committerPierre Masereel <pim@odoo.com>2019-09-16 09:02:01 +0000
commitfd9875adadba450d754af264cba76fbca5af6051 (patch)
treef9f3399737160c7545668c589772cd327b8bdda7 /addons
parentbb55743b844e244976eecac8a1cd4127d08a89ee (diff)
[FIX] l10n_fr_pos_cert: fields used for hash
When the hash is generated for a pos order, it is computed based on some fields, there was the field statement_ids that doesn't exist anymore, and so we replaced it by payment_ids which is the new field. closes odoo/odoo#36912 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_fr_pos_cert/models/pos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_fr_pos_cert/models/pos.py b/addons/l10n_fr_pos_cert/models/pos.py
index 320868a2d87..43aa57453d4 100644
--- a/addons/l10n_fr_pos_cert/models/pos.py
+++ b/addons/l10n_fr_pos_cert/models/pos.py
@@ -51,7 +51,7 @@ class pos_session(models.Model):
return super(pos_session, self).open_frontend_cb()
-ORDER_FIELDS = ['date_order', 'user_id', 'lines', 'statement_ids', 'pricelist_id', 'partner_id', 'session_id', 'pos_reference', 'sale_journal', 'fiscal_position_id']
+ORDER_FIELDS = ['date_order', 'user_id', 'lines', 'payment_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 = _lt('According to the French law, you cannot modify a %s. Forbidden fields: %s.')