#322 filtra la carga de pickings en el PDV cuando hay un cliente seleccionado. Añadido módulo con página de consulta de productos en el website
This commit is contained in:
parent
6debf13f25
commit
bc5f2ab42a
17 changed files with 390 additions and 1 deletions
20
pos_picking_load_selected_partner/static/src/js/widget.js
Normal file
20
pos_picking_load_selected_partner/static/src/js/widget.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
odoo.define('pos_picking_load_selected_partner.picking_partner', function (require) {
|
||||
"use strict";
|
||||
|
||||
var screens = require('point_of_sale.screens');
|
||||
var gui = require('point_of_sale.gui');
|
||||
|
||||
var PickingPartner = gui.Gui.prototype.screen_classes.filter(function(el) {
|
||||
return el.name == 'load_picking'
|
||||
})[0].widget.include({
|
||||
|
||||
show: function () {
|
||||
this._super();
|
||||
var partner = this.pos.get_order().get_client();
|
||||
var query = "";
|
||||
if (partner){ query = partner.name; }
|
||||
this.search_pickings(query);
|
||||
}
|
||||
});
|
||||
return PickingPartner;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue