-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP][workflow_task] Remove the technical field ref_object from the a… #122
[IMP][workflow_task] Remove the technical field ref_object from the a… #122
Conversation
# remove ref_object from searchable field into the advanced search | ||
# since the field to use is ref_object_name | ||
if 'ref_object' in res: | ||
res['ref_object']['searchable'] = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can not define searchable=False
directly on the field ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrienpeiffer unfortunately no 😭 searchable
is defined as a python property on fields.Field
https://github.com/odoo/odoo/blob/9.0/openerp/fields.py#L675
You can see at line 125 how odoo compute the list of attributes returned by the function field_get https://github.com/odoo/odoo/blob/9.0/openerp/fields.py#L125
The only solution I've found is override fields_get
to change the value returned to the JS by the server
Ok 😄 can you check travis build ? |
736bc07
to
b3084e7
Compare
2affcf9
to
f47ee7e
Compare
Changes Unknown when pulling b3084e7 on 9.0-workflow-taks-filter-search-field-lmi into * on 9.0-workflow-task-sbi*. |
b3084e7
to
b8bf03a
Compare
@adrienpeiffer LINT_CHECK fixed, 9.0-workflow-task-sbi rebased on origin/9.0 and 9.0-workflow-taks-filter-search-field-lmi rebased on 9.0-workflow-task-sbi... |
Thanks @lmignon |
…dvanced search
ping @sbidoul @adrienpeiffer