From 495b5ef1172ff9b477c2ebf9afb9ad8d2ca2e989 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 19 Jan 2017 15:53:01 +0100 Subject: [IMP] web: add options to field selector to filter the fields Before this commit, the field selector had an unique option to filter the fields it displays: filters.searchable, which tells the widget to only display the searchable fields (which is the default). Now there are two more options: - fields: an explicit list of the fields to use (if null, let the widget get the fields itself (this is the default)) - followRelations: a boolean which is true if the user can follow relation to build a field chain (default to true) These options are needed by Web Studio in enterprise where domain construction for form view attrs can only use fields which are in the view and do not follow relations. --- addons/web/static/src/xml/base.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'addons/web/static/src/xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 8abdf9160ed..9e38841b946 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -802,7 +802,7 @@
- +