From 95a90689aaad7e607bf5df0e5b5ec29f0a0324aa Mon Sep 17 00:00:00 2001 From: Nikunj Ladava Date: Thu, 1 Feb 2018 16:25:31 +0530 Subject: [PATCH] [FIX] l10n_fr{certification,_pos_cert}: Set server actions' 'state' to 'code' Since these server actions are triggering python code, their 'state' field must explicitely be set to 'code'. Currently it is taking default value for 'state' field which is, since saas-15, 'object_write' and thus not working as intended. Was PR #22706 Was task: 1813998 --- addons/l10n_fr_certification/data/account_move.xml | 2 ++ addons/l10n_fr_pos_cert/data/pos_inalterability.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/addons/l10n_fr_certification/data/account_move.xml b/addons/l10n_fr_certification/data/account_move.xml index 2794e6364f9..c4d735d2b14 100644 --- a/addons/l10n_fr_certification/data/account_move.xml +++ b/addons/l10n_fr_certification/data/account_move.xml @@ -3,6 +3,7 @@ Data Inalterability Check ir.actions.server + code action = env['account.move']._check_hash_integrity(env.user.company_id.id) @@ -12,6 +13,7 @@ Get the certification now! ir.actions.server + code db_uuid = env['ir.config_parameter'].sudo().get_param('database.uuid') action = {"type": "ir.actions.act_url", diff --git a/addons/l10n_fr_pos_cert/data/pos_inalterability.xml b/addons/l10n_fr_pos_cert/data/pos_inalterability.xml index ace4c3de24d..377204b73c6 100644 --- a/addons/l10n_fr_pos_cert/data/pos_inalterability.xml +++ b/addons/l10n_fr_pos_cert/data/pos_inalterability.xml @@ -8,6 +8,7 @@ Pos Orders Inalterability Check ir.actions.server + code action = env['pos.order']._check_hash_integrity(env.user.company_id.id)