Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
515 Visualizações

Hi, I am having a problem in Odoo 18, the UoM and Packaging feature is fused together unlike before you can see a packaging column in the SO. I need the product cost/price to always be in kg.

Is it still possible to do this in v18?


I want to set the product unit cost in 'kg' but in Sales Order I want it to be as below for a 50kg order:


Product              Qty               Packaging                 Unit cost            Total
Sample X            5                     bag                        $2/kg              $100


Hope someone can help. Thank you!

Avatar
Cancelar
Melhor resposta

Hi,


1. Set Product UoM to Kilogram


2. In the product form, go to the Inventory tab. Scroll to the Packaging section. Add a new package.



This means 1 bag = 10kg.


3. In the sales order



A packaging unit (e.g., 1 bag = 10 kg) was likely defined in the product configuration.

So when 5 bags are selected, Odoo calculates:

5 bags × 10 kg = 50 kg, which is what is shown in the Quantity field.


If you would like more details. Please refer to the link https://www.cybrosys.com/blog/how-to-organize-and-manage-product-packaging-in-odoo-18


Hope it helps

Avatar
Cancelar
Melhor resposta

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:
    • $2/kg x 50 kg = $100


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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
abr. 25
2923
1
mai. 22
3737
0
jan. 19
3025
0
mar. 15
3040
1
mar. 15
6473