[ADD] port web_widget_classes

This commit is contained in:
Holger Brunn
2015-01-26 15:39:43 +01:00
parent 11bd06e1bb
commit 1a9f6e875a
5 changed files with 102 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template">
<t t-extend="ViewManagerAction">
<t t-jquery="div:first">
this.attr('t-att-class', '"' + this.attr('class') + ' oe_model_" + (widget.dataset.model.replace(new RegExp("\\\\.","g"), "_"))');
this.attr('class', null);
</t>
</t>
</templates>