From fd9875adadba450d754af264cba76fbca5af6051 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Mon, 16 Sep 2019 09:02:01 +0000 Subject: [PATCH] [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 --- addons/l10n_fr_pos_cert/models/pos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.')