[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:
jem-odoo
2017-11-07 08:57:29 +01:00
parent 4a5f07654f
commit e6d4bdf72b
+8
View File
@@ -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>