Skip to Content
Menu
This question has been flagged
822 Views

I want to implement a control in POS app (v 14) for products that are tracked through a unique serial number. Extending the EditListPopup widget with an rpc call in getPayload() method, I have to check if the serial number actually exists in the 'default location from' of the operation type used to record product picking from the POS. To do it on the model stock.quant I need the location_id and the product_id. Location.id is available starting from this.env.pos.config.picking_type_id but I can't figure out how to reference product_id (which must be available since it is in the product screen and I can click it!).
Thanks

Avatar
Discard