diff options
| author | Nikunj Ladava <nla@odoo.com> | 2018-02-01 16:25:31 +0530 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-05-02 09:54:58 +0200 |
| commit | 95a90689aaad7e607bf5df0e5b5ec29f0a0324aa (patch) | |
| tree | cdbaac5de04e4ebb78f5613d9a7945b023813c88 /addons/l10n_fr_pos_cert/data | |
| parent | cae950e826292f5246b73eeb5d85cb1d47c76978 (diff) | |
[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
Diffstat (limited to 'addons/l10n_fr_pos_cert/data')
| -rw-r--r-- | addons/l10n_fr_pos_cert/data/pos_inalterability.xml | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ <field name="name">Pos Orders Inalterability Check</field> <field name="model_id" ref="point_of_sale.model_pos_order"/> <field name="type">ir.actions.server</field> + <field name="state">code</field> <field name="code"> action = env['pos.order']._check_hash_integrity(env.user.company_id.id) </field> |
