|
@ -47,7 +47,7 @@ odoo.define('account_financial_report_qweb.account_financial_report_widget', fun |
|
|
boundLinkMonetary: function (e) { |
|
|
boundLinkMonetary: function (e) { |
|
|
var res_model = $(e.target).data('res-model'); |
|
|
var res_model = $(e.target).data('res-model'); |
|
|
var res_id = $(e.target).data('active-id'); |
|
|
var res_id = $(e.target).data('active-id'); |
|
|
// check if we call on appropriate element, amount been wrapped in
|
|
|
|
|
|
|
|
|
// Check if we call on appropriate element, amount been wrapped in
|
|
|
// a span by a monetary widget
|
|
|
// a span by a monetary widget
|
|
|
if (e.target.localName === 'span' ) { |
|
|
if (e.target.localName === 'span' ) { |
|
|
res_model = $(e.target.parentElement).data('res-model'); |
|
|
res_model = $(e.target.parentElement).data('res-model'); |
|
@ -64,7 +64,7 @@ odoo.define('account_financial_report_qweb.account_financial_report_widget', fun |
|
|
boundLinkMonetarymulti: function (e) { |
|
|
boundLinkMonetarymulti: function (e) { |
|
|
var res_model = $(e.target).data('res-model'); |
|
|
var res_model = $(e.target).data('res-model'); |
|
|
var domain = $(e.target).data('domain'); |
|
|
var domain = $(e.target).data('domain'); |
|
|
// check if we call on appropriate element, amount been wrapped in
|
|
|
|
|
|
|
|
|
// Check if we call on appropriate element, amount been wrapped in
|
|
|
// a span by a monetary widget
|
|
|
// a span by a monetary widget
|
|
|
if (e.target.localName === 'span' ) { |
|
|
if (e.target.localName === 'span' ) { |
|
|
res_model = $(e.target.parentElement).data('res-model'); |
|
|
res_model = $(e.target.parentElement).data('res-model'); |
|
|