Browse Source

Merge pull request #8 from hbrunn/6.1_web_widget_classes_viewmanager

[6.1] [IMP] attach model class to ViewManagerAction template
pull/155/head
Sylvain LE GAL 10 years ago
parent
commit
ebdc6d74c5
  1. 6
      web_widget_classes/static/src/xml/web_widget_classes.xml

6
web_widget_classes/static/src/xml/web_widget_classes.xml

@ -6,4 +6,10 @@
this.attr('class', null); this.attr('class', null);
</t> </t>
</t> </t>
<t t-extend="ViewManagerAction">
<t t-jquery="table:first">
this.attr('t-att-class', '"' + this.attr('class') + ' oe_model_" + (self.dataset.model.replace(new RegExp("\\\\.","g"), "_"))');
this.attr('class', null);
</t>
</t>
</templates> </templates>
Loading…
Cancel
Save