odoo/tutorials#1317
Created by Harshvardhan Bareth (habar)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 4s)
- ci/tutorial: (runtime 129s)
- label
- odoo-dev:19.0-pos-second-uom-habar
- head
- 62b83bb483e56906421df5cdd03b41101cc25e0b
| odoo/tutorials | |
|---|---|
| 19.0 | #1317 missing r+ |
| master |
[ADD] pos_second_uom: allow selling products in secondary unit of mea…
This PR introduces a specific customization for the Point of Sale (POS) application to allow cashiers to sell products using a secondary Unit of Measure (UoM).
As per the client's request for a quick and cost-effective turnaround, this feature is tailored specifically to their needs without implementing a complex, fully generic multi-UoM module.
Specification
- Product Form Configuration:
- Added a new
many2onefieldpos_second_uom_idfor the secondary unit of measure. - Restricted the selection to UoMs within the same category as the product's primary UoM, where the ratio equals 1.
- POS Interface Enhancements:
- Introduced a new custom action button to trigger a quantity input popup for the secondary UoM.
- Inputting a quantity and clicking "Confirm" calculates the main UoM quantity based on the UoM conversion ratio.
- Updates the POS order line with the converted quantity while maintaining the original primary UoM on the line.