Skip to Content
Menu
This question has been flagged

Hello everyone,

I'm currently facing an inventory management issue in Odoo, and I was hoping to get some guidance on how to handle it effectively.

In my inventory, I have packs of chicken, with each pack weighing 2kg. The unit of measure (UOM) for these chicken packs is set as kilograms (kg). However, when I purchase the chicken, it is measured and sold by the pack.

Here's the problem: Whenever I deduct 5kg of chicken from my inventory, the pack of chicken should be reduced by 5 packs, considering each pack weighs 2kg. However, since the purchase UOM is different from the inventory UOM, I'm not sure how to manage this deduction accurately.

Could someone please provide some insights into how I can handle this situation in Odoo? Is there a specific setting or configuration I need to change to ensure that when I deduct 5kg of chicken, it correctly reduces the number of packs by 5?


I want to do this using Odoo's External API and Python.

Thank you in advance for your help and suggestions!


Avatar
Discard

If you buy and sell by the pack as is, why is your uom in kg?

Best Answer

It is the stucture of your masterdata that create your problems. And if you have packages of 2 kg, you cannot deduct 5 kg from stock and reduce stock with 5 packages.  5 Kg would be 2,5 packages.   5 packages = 10 KG.  This math you cannot go around.

It can be complex to manage. First: You have decided to have KG as base unit of measure for you chicken.  So you have two options:

1. Use delivery packaging in Inventory.  1 package = 2 KG.  Then you can purchase no of packages of 2 kg, and set the price in purchase by package.  Your goods receipt will show stock in Kilo + stock in packages.  You will be able to deduct 5 kg, and then take 1 kg out of a package of two.  You can also sell packages.  I would recommend this option.

2. Create a specific UOM for package and use as purchase unit.  It can work if packages never are managed partly. You will easily get into trouble if you choose this option. The fault will happen, when you use the wrong UOM in a transaction, which can easily happen.  I will not recommend using any other UOM than ISO.  

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
1061
2
Aug 24
588
2
Jun 24
1062
2
Mar 24
211
3
Jan 24
1635