Skip to content

Commit

Permalink
Merge pull request #8 from hbrunn/6.1_web_widget_classes_viewmanager
Browse files Browse the repository at this point in the history
[6.1] [IMP] attach model class to ViewManagerAction template
  • Loading branch information
legalsylvain committed Oct 14, 2014
2 parents e0fee7b + d5cacec commit ebdc6d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web_widget_classes/static/src/xml/web_widget_classes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
this.attr('class', null);
</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>

0 comments on commit ebdc6d7

Please sign in to comment.