diff --git a/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.esm.js b/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.esm.js
index 8f3dc010..0d05181b 100644
--- a/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.esm.js
+++ b/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.esm.js
@@ -12,6 +12,7 @@ export const WeightRecordingKanbanColumn = KanbanColumn.extend({
events: _.extend({}, KanbanColumn.prototype.events || {}, {
"click .toggle_kanban_fold": "_onToggleFold",
"click .column_print_labels": "_onPrintLabels",
+ "click .o_column_open": "_onOpenColumn",
}),
/**
* Show print button only when there are operations to print
@@ -31,6 +32,24 @@ export const WeightRecordingKanbanColumn = KanbanColumn.extend({
event.preventDefault();
this.trigger_up("column_print_labels");
},
+ /**
+ * Opens the related form view.
+ *
+ * @private
+ * @param {OdooEvent} ev
+ */
+ _onOpenColumn(event) {
+ event.preventDefault();
+ this.do_action({
+ context: {create: false},
+ type: "ir.actions.act_window",
+ target: "current",
+ views: [[false, "form"]],
+ res_model: this.relation,
+ res_id: this.id,
+ view_mode: "form",
+ });
+ },
});
export const WeightRecordingKanbanController = KanbanController.extend({
diff --git a/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.xml b/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.xml
index 2a9a3013..0a03108b 100644
--- a/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.xml
+++ b/stock_weighing/static/src/base_weight_record_kanban/base_weight_record_kanban.xml
@@ -27,6 +27,15 @@
+
+
+
+
+