From f9a189e07e1fb7849da19bcdf477a542e23e18ea Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Wed, 6 Dec 2017 12:03:05 +0100 Subject: [PATCH] [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) --- addons/hr_holidays/data/hr_holidays_demo.xml | 3 +++ 1 file changed, 3 insertions(+) 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 @@ add 20 + confirm @@ -18,6 +19,7 @@ add 7 + confirm @@ -51,6 +53,7 @@ remove 3 + confirm