[FIX] lunch: properly open lunch products

Since odoo/odoo#fb9c8cd6 it was no longer possible to open the lunch product
in the kanban view as both _openRecord() (from base class) and
_onSelectRecord() were triggering events.

closes odoo/odoo#87612

Taskid: 2810219
X-original-commit: a497d95e8a4a55884800377d0de32babb78c05ce
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2022-03-31 09:40:48 +02:00
parent 3bdba8bc44
commit 565f11ec92
@@ -29,6 +29,8 @@ odoo.define('lunch.LunchKanbanRecord', function (require) {
this.trigger_up('open_wizard', {productId: this.recordData.product_id ? this.recordData.product_id.res_id: this.recordData.id});
}
},
_openRecord() {},
});
return LunchKanbanRecord;