Skip to content

Commit

Permalink
[FIX] fix penalty setting resetting on update
Browse files Browse the repository at this point in the history
fix shift_worker_status.irregular_penalty config parameter resetting to
true when updating the module.
  • Loading branch information
huguesdk committed Jun 20, 2023
1 parent 44fe99d commit 4b64470
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion shift_worker_status/data/data.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<?xml version="1.0" ?>
<odoo>
<data noupdate="1">
<record id="param_config_irregular_penalty" model="ir.config_parameter">
<!--
when this parameter is set to false, the ir.config_parameter is
deleted, along with its corresponding ir.model.data record. this
normally causes this record to be re-created when updating the
module, even though it is set as noupdate, because it is seen as
new data, effectively resetting the value to true. the forcecreate
property set to false ensures that this record is not recreated on
module update.
-->
<record
id="param_config_irregular_penalty"
model="ir.config_parameter"
forcecreate="false"
>
<field name="key">shift_worker_status.irregular_penalty</field>
<field name="value">True</field>
</record>
Expand Down

0 comments on commit 4b64470

Please sign in to comment.