[IMP] web: Added help option in stat buttons.

This commit is contained in:
Deep Patel
2018-08-08 14:51:14 +02:00
committed by RomainLibert
parent 9108a271bc
commit af1a935604
@@ -596,6 +596,9 @@ var FormRenderer = BasicRenderer.extend({
extraClass: 'oe_stat_button',
});
$button.append(_.map(node.children, this._renderNode.bind(this)));
if (node.attrs.help) {
this._addButtonTooltip(node, $button);
}
this._addOnClickAction($button, node);
this._handleAttributes($button, node);
this._registerModifiers(node, this.state, $button);