diff options
| author | Richard Mathot <rim@odoo.com> | 2017-12-06 12:03:05 +0100 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2017-12-06 17:00:25 +0100 |
| commit | f9a189e07e1fb7849da19bcdf477a542e23e18ea (patch) | |
| tree | 4413fd27cee922be7a8ad731a75a1be17d6c317f | |
| parent | 2b19d9e95db53803eca7bc2c8be72a159a434b0c (diff) | |
[FIX] hr_holidays: poorly designed demo data
If an user (or a developer) wants to install this module twice, she
could not before this patch. Because those demo data call a function
that crashes if the state of the demo data has been modified... and
modifies it!
We avoid this issue by resetting the states of the demo data
explicitely (before a deeper refactoring)
| -rw-r--r-- | addons/hr_holidays/data/hr_holidays_demo.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/hr_holidays/data/hr_holidays_demo.xml b/addons/hr_holidays/data/hr_holidays_demo.xml index 5ccbe050439..fbfc9602c50 100644 --- a/addons/hr_holidays/data/hr_holidays_demo.xml +++ b/addons/hr_holidays/data/hr_holidays_demo.xml @@ -8,6 +8,7 @@ <field name="type">add</field> <field name="number_of_days_temp">20</field> <field name="employee_id" ref="hr.employee_root"/> + <field name="state">confirm</field> </record> <record id="hr_holidays_employee1_int_tour" model="hr.holidays"> @@ -18,6 +19,7 @@ <field name="type">add</field> <field name="number_of_days_temp">7</field> <field name="employee_id" ref="hr.employee_root"/> + <field name="state">confirm</field> </record> <record id="hr_holidays_employee1_vc" model="hr.holidays"> @@ -51,6 +53,7 @@ <field name="type">remove</field> <field name="number_of_days_temp">3</field> <field name="employee_id" ref="hr.employee_root"/> + <field name="state">confirm</field> </record> <!-- approve the leave request --> |
