mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] attach model class to ViewManagerAction template, this way it can
be used for all view types
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user