Browse Source

[IMP] mis_builder: code cosmetics

pull/90/head
Stéphane Bidoul 10 years ago
parent
commit
b513fa7cf6
  1. 4
      mis_builder/static/src/js/mis_builder.js
  2. 2
      mis_builder/static/src/xml/mis_widget.xml

4
mis_builder/static/src/js/mis_builder.js

@ -21,9 +21,9 @@ openerp.mis_builder = function(instance) {
}); });
}, },
events: { events: {
"click .open_account_move a": "go_to_move",
"click a.mis_builder_drilldown": "drilldown",
}, },
go_to_move : function(event) {
drilldown: function(event) {
var val_c = JSON.parse($(event.target).data("val-c")); var val_c = JSON.parse($(event.target).data("val-c"));
var val = JSON.parse($(event.target).data("val")); var val = JSON.parse($(event.target).data("val"));
var period_id = JSON.parse($(event.target).data("period-id")); var period_id = JSON.parse($(event.target).data("period-id"));

2
mis_builder/static/src/xml/mis_widget.xml

@ -25,7 +25,7 @@
</div> </div>
</td> </td>
<t t-foreach="c_value.cols" t-as="value"> <t t-foreach="c_value.cols" t-as="value">
<td class="mis_builder_ralign open_account_move" t-att="{'style': c_value.default_style}">
<td class="mis_builder_ralign" t-att="{'style': c_value.default_style}">
<div t-att="{'style': value_value.style, 'title': value_value.val_c}"> <div t-att="{'style': value_value.style, 'title': value_value.val_c}">
<t t-if="value_value.drilldown"> <t t-if="value_value.drilldown">
<a href="javascript:void(0)" <a href="javascript:void(0)"

Loading…
Cancel
Save