[FIX] resource: avoid duplicate attendances when updating module
Since some calendar are in data, and their attendances in an 'eval' with '0' ORM command, we need to put them in noupdate mode to avoid duplicating attendances when we update the module.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<data>
|
||||
|
||||
<record id="resource_calendar_std" model="resource.calendar">
|
||||
<field name="name">Standard 40 Hours/Week</field>
|
||||
<field name="company_id" ref="base.main_company"/>
|
||||
@@ -14,6 +17,9 @@
|
||||
name="_init_data_resource_calendar"
|
||||
eval="[]"/>
|
||||
|
||||
</data>
|
||||
|
||||
<data noupdate="1">
|
||||
|
||||
<record id="resource_calendar_std_35h" model="resource.calendar">
|
||||
<field name="name">Standard 35 Hours/Week</field>
|
||||
@@ -53,4 +59,6 @@
|
||||
/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user