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 | etc.
Hi All and thanks for the opportunity to participate in these forums.
I have a situation that has arisen where I need to have a negative line in a BOM.
This is for a chemical company that weighs all products and we have the MO reflects an accrued weight of ingredients into mixers for validation from the floor workers that are mixing the ingredients.
The problem that I am having is that during an exothermic reaction there is weight loss due to CO2 liberation at different stages of the mix. I need to have a line for a consumable item CO2 -x kg
The constraints are as follows in the mrp.py -
_sql_constraints = [
('bom_qty_zero', 'CHECK (product_qty>0)', 'All product quantities must be greater than 0.\n' \
'You should install the mrp_byproduct module if you want to manage extra products on BoMs !'),
Am I able to redefine the constraint by setting the same method function name in a custom module? Does anybody have an example of allowing product_qty to be less than zero?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/9/16, 7:40 PM|
|Seen: 454 times|
|Last updated: 5/19/16, 8:29 AM|