1. Configure Product UoM:
-
Go to Inventory > Configuration > Units of Measure.
-
Create or use a kg UoM as the base UoM (Type: Reference Unit).
-
Create a UoM called Bag:
-
Type: Bigger than the reference unit
-
Ratio: 1 Bag = 10 kg
So, if you're selling in bags, you're selling in multiples of 10kg.
2. Set Product UoM in kg (Base):
-
In Products > Sample X:
-
UoM: kg
-
Purchase UoM: kg
-
Sales price: $2.00 (this is per kg)
This means all costing, pricing, and stock is tracked per kg.
3. Allow UoM Selection in Sales Order Lines:
-
Go to Sales > Configuration > Settings.
-
Enable:
-
Units of Measure
-
(Optional) Product Packaging
On the Sales Order line, you will now be able to select the UoM like "Bag".
4. Create Sales Order with Packaging UoM:
In Sales > Orders:
-
Create a new SO.
-
Add Sample X.
-
Change UoM on line to Bag.
-
Enter Qty = 5 bags (equals 50kg).
-
Odoo will auto-convert the price:
5. Customize SO Line to Show Both Bag & Per kg Pricing (Optional Display Tweak)
If you want the SO to show:
bash
CopyEdit
Qty: 5 Bags
Unit Cost: $2/kg
Subtotal: $100
You can add a custom field or computed display on the SO line to show:
-
the selected UoM (Bag)
-
the real base price (per kg)
-
and total in kg for clarity
This may require a custom module or QWeb report tweak in your sales PDF template or form view.
Thanks & Regards,
Email :- contact@datainteger.com