[IMP] stock: click on the Kanban card to open all operations
This commit is contained in:
committed by
Richard Mathot
parent
c73c6e757d
commit
30b70cf573
@@ -1061,4 +1061,14 @@ function openerp_picking_widgets(instance){
|
||||
openerp.stock = function(openerp) {
|
||||
openerp.stock = openerp.stock || {};
|
||||
openerp_picking_widgets(openerp);
|
||||
|
||||
openerp.web_kanban.KanbanRecord.include({
|
||||
on_card_clicked: function() {
|
||||
if (this.view.dataset.model === 'stock.picking.type') {
|
||||
this.$('.oe_kanban_stock_picking_type_list').first().click();
|
||||
} else {
|
||||
this._super.apply(this, arguments);
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1386,7 +1386,7 @@
|
||||
<field name="count_picking_backorders"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_stock_picking_type">
|
||||
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click oe_kanban_stock_picking_type">
|
||||
<div class="oe_dropdown_toggle oe_dropdown_kanban" groups="stock.group_stock_manager">
|
||||
<i class="fa fa-bars fa-lg"/>
|
||||
<ul class="oe_dropdown_menu">
|
||||
@@ -1417,7 +1417,7 @@
|
||||
<field name="count_picking_waiting"/> Waiting Availability
|
||||
</a>
|
||||
</t>
|
||||
<a class="col-md-9" name="%(action_picking_tree)d" type="action">Transfers</a>
|
||||
<a class="col-md-9 oe_kanban_stock_picking_type_list" name="%(action_picking_tree)d" type="action">Transfers</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user