diff options
| author | jem-odoo <jem@openerp.com> | 2017-11-06 16:39:30 +0100 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2017-11-07 08:57:29 +0100 |
| commit | e6d4bdf72b0574ee6f70ca6021676fa3737a054a (patch) | |
| tree | d91ef5bd7722b8ab21376e1d7a8ce7b42ba837de | |
| parent | 4a5f07654f6d4252f73253d26979cf97bbf7f11b (diff) | |
[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.
| -rw-r--r-- | addons/resource/data/resource_data.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/resource/data/resource_data.xml b/addons/resource/data/resource_data.xml index 81ccf1c1496..bcfd2c91446 100644 --- a/addons/resource/data/resource_data.xml +++ b/addons/resource/data/resource_data.xml @@ -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> |
