From ef62df2bfd76c235c0fd22bdfd7fdbd7cf5f8489 Mon Sep 17 00:00:00 2001 From: yograj tandel Date: Mon, 30 Nov 2020 05:05:12 +0000 Subject: [PATCH] [IMP] web: consider FieldDependencies given on custom widget With this commit we support adding FieldDependencies on custom widget, consider FieldDependencies given on custom widget and add it to fieldInfo so that when modal does calls to server to fetch data it consider those fields while reading this will let us to design custom widget which may have some other fields in dependency, say for example weekly recurrence widget which uses sun, mon etc. fields, so with this we can fetch data of those dependent fields without adding it to view. task-2335399 closes odoo/odoo#60277 Related: odoo/upgrade#2021 Signed-off-by: Yannick Tivisse (yti) Co-authored-by: Mohammed Shekha --- addons/calendar/views/calendar_views.xml | 7 -- addons/project/views/project_views.xml | 7 -- .../static/src/js/views/basic/basic_view.js | 58 +++++++++----- .../static/tests/views/basic_view_tests.js | 78 +++++++++++++++++++ addons/web/views/webclient_templates.xml | 1 + 5 files changed, 119 insertions(+), 32 deletions(-) create mode 100644 addons/web/static/tests/views/basic_view_tests.js diff --git a/addons/calendar/views/calendar_views.xml b/addons/calendar/views/calendar_views.xml index 9b1fff5b28e..545dd732253 100644 --- a/addons/calendar/views/calendar_views.xml +++ b/addons/calendar/views/calendar_views.xml @@ -182,13 +182,6 @@ - - - - - - -