diff options
| author | fwi-odoo <fwi@odoo.com> | 2017-04-05 14:32:45 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | ab44cabc78ae256636b951018d7967b2bd830fcc (patch) | |
| tree | 51f0b0c76f2e3c6c6faac5727ca4f7a89c60ac39 /addons/web/static/src/js/views | |
| parent | 4872c8da31bc10738c0f195c8665b59ec61f0e42 (diff) | |
[FIX] web: render the statinfo buttons that are not in a buttonbox
Without this commit, the statinfo field in a button but
not in a buttonbox are not rendered.
With this commit, when the button is rendered, the children are
processed and then the statinfo field is rendered (e.g. bank account(s) statinfo
in the Sales & Purchases tab in the res.partner form view).
Diffstat (limited to 'addons/web/static/src/js/views')
| -rw-r--r-- | addons/web/static/src/js/views/form/form_renderer.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js index 926d093206f..138de9041e6 100644 --- a/addons/web/static/src/js/views/form/form_renderer.js +++ b/addons/web/static/src/js/views/form/form_renderer.js @@ -547,6 +547,7 @@ return BasicRenderer.extend({ widget.fa_icon = node.attrs.icon.indexOf('fa-') === 0; } var $button = $(qweb.render('WidgetButton', {widget: widget})); + $button.append(_.map(node.children, this._renderNode.bind(this))); this._addOnClickAction($button, node); this._handleAttributes($button, node); return $button; |
