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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/9/16, 7:40 PM|
|Seen: 272 times|
|Last updated: 5/19/16, 8:29 AM|