From 84143a34b313c01b0b37b7d7246ce3d5c9476002 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Thu, 21 Feb 2019 08:32:04 +0000 Subject: [PATCH] [FIX] hr: tz on user required in view because of resource mixin In the user preference, change the timezone of the user to blank (False value) Save Before this commit, a cryptic error was raised because the field tz in resource.resource is required Note that when writing on res.user, we write some fields (including tz) on hr.employee, which is a resource.mixin, and therefore uses resource.resource After this commit, we make the field required in the view OPW 1934462 closes odoo/odoo#31312 --- addons/hr/views/hr_views.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/hr/views/hr_views.xml b/addons/hr/views/hr_views.xml index 2f9733ee443..a4f27b11322 100644 --- a/addons/hr/views/hr_views.xml +++ b/addons/hr/views/hr_views.xml @@ -624,6 +624,17 @@ + + res.users.preferences.form.resource + res.users + + + + 1 + + + +