summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-07-14 12:19:20 +0200
committerGéry Debongnie <ged@odoo.com>2017-07-14 14:47:13 +0200
commit29e4394af96eb4856fad913d2427320c11c30523 (patch)
tree5a6ca4f8b3a261fb765944f7886ab28c4381b25d /addons/web/static/src/js/fields/basic_fields.js
parent04c3b99cb7cc1d8b1e6e5590e5e6866b4386f6dd (diff)
[FIX] web: properly reload record data before doing another action
When a user edit a record, then click on a stat button, the web client was a little too aggressive in avoiding to reload data. It was assuming that even if the server overrides the create method, the web client did not need to know anything about the record before executing the action from the stat button. However, that assumption is incorrect: the display_name property is needed to correctly display the breadcrumbs. For example, here is a scenario that was not correct: open a res.partner in a form view, edit its name, then click on one of the stat button. You will see that the breadcrumb is not properly updated. To fix this issue, we have to reload the record, and to properly update the title property. In this commit, we also add a getName method in the model.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions