From e29e2e31f6d07830852c51735cd8b8c4e05af0ae Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Thu, 27 Feb 2020 14:18:13 +0000 Subject: [PATCH] [FIX] hr_holidays: fix traceback when clicking schedule next activity Issue - Time Off - Managers > All > Time Off - Any form > Schedule Activity > Any activity > Schedule - Mark as Done > Done & Schedule Next Traceback "field can_reset does not exist" Cause In ir.ui.view the postprocess_and_fields tries to return an architecture and a description of all the fields of mail model (with view=False) but as we have a context key 'form_view_ref' with value hr_holidays.hr_leave_view_form_manager It loads the field of this view's model too and then it compare them to the mail model fields. Solution Move the view ref into view_ids OPW-2205031 closes #46150 closes odoo/odoo#46552 X-original-commit: 88104afaa07f80261d3198abd71b7bea7c1cf3f4 Signed-off-by: Jason Van Malder (jvm) --- addons/hr_holidays/views/hr_leave_views.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index 2d671209c8d..2219204ed27 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -642,7 +642,13 @@ hr.leave tree,kanban,form,calendar,activity - {'form_view_ref': 'hr_holidays.hr_leave_view_form_manager'} + {} + []