summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2017-03-23 15:15:46 +0100
committerSimon Lejeune <sle@openerp.com>2017-03-29 10:08:20 +0200
commite05333f8f5bdf5e965c9eb1dd5e66e050f4dc36f (patch)
tree4d4ca2a70bd40ed11c580724f8e096793630bbce /addons/web/static/src/js/views/basic/basic_controller.js
parent7a9c4b068c6b00dfae96fd89c5989a781a485e3e (diff)
[FIX] mrp: layout issue in workorder messages
The alert box was flickering if empty: at each click on the status button, the box was appearing and disappearing quickly. This is probably due to a bug in the form view that do not wait for the evaluation of the attrs. This bug is fixed in the new views, but only if the attrs is fixed. Indeed, as the attrs condition is attrs="{'invisible': [('production_messages', '=', False)]}" the field was never set to False. This is because the compute method was doing workorder.production_messages = "<br/>".join(messages) So, even if `messages` was empty, production_messages will be set to ''. In [1]: 'aaa'.join([]) Out[1]: '' So we fix the condition to set False to the field if the string is empty. In [6]: 'aaa'.join([]) or False Out[6]: False
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions