summaryrefslogtreecommitdiff
path: root/addons/stock/static/src/js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2018-08-20 15:02:32 +0200
committerPierre Masereel <pim@odoo.com>2018-08-21 22:25:26 +0200
commit0b2d6d748718c9ae6c1a850ea6eb91fa75ee96d7 (patch)
tree13e76e003e1c519144815a9836448910a0d01c70 /addons/stock/static/src/js
parent326e48a112f86c16e14be816ce7165a27a23709d (diff)
[FIX] stock: traceability report link
The links without href attributes, have a different style, so we cannot differentiate them from non clickable text. So we set the href attribute and prevent the default behaviour of the link in js. TASK-ID: 1873101
Diffstat (limited to 'addons/stock/static/src/js')
-rw-r--r--addons/stock/static/src/js/stock_traceability_report_widgets.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/stock/static/src/js/stock_traceability_report_widgets.js b/addons/stock/static/src/js/stock_traceability_report_widgets.js
index ea08871828f..65e9d4d5b2f 100644
--- a/addons/stock/static/src/js/stock_traceability_report_widgets.js
+++ b/addons/stock/static/src/js/stock_traceability_report_widgets.js
@@ -24,6 +24,7 @@ var ReportWidget = Widget.extend({
return this._super.apply(this, arguments);
},
boundLink: function(e) {
+ e.preventDefault();
return this.do_action({
type: 'ir.actions.act_window',
res_model: $(e.target).data('res-model'),
@@ -33,6 +34,7 @@ var ReportWidget = Widget.extend({
});
},
actionOpenLot: function(e) {
+ e.preventDefault();
var $el = $(e.target).parents('tr');
this.do_action({
type: 'ir.actions.client',