#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:
Luis 2023-01-15 12:13:09 +01:00
parent 6debf13f25
commit bc5f2ab42a
17 changed files with 390 additions and 1 deletions

View 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;
});