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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
822
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up