mrp_production_bysumqt: Faulty logic rev 89
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenMRP |
New
|
Undecided
|
Unassigned |
Bug Description
I just notice after adding the rev 89 to my merge branch that the logic is faulty and part of the code need to be rewritten. Checks shouldn't be done against language specific names, if checks should be done, the code need to be the same in multilanguage systems and systems in other languages. Therefor the checks need to be done another way. I will look at it some more and post a solution.
------CUT------
44 if lm.product_uom.name == 'ML' or lm.product_uom.name == 'Litro':
45 if line.product_
46 uom_ids = product_
47 if uom_ids:
48 uom = product_
49 if uom.uom_type == 'bigger':
50 qty = line.product_qty * uom.factor
51 else:
52 if uom.uom_type == 'smaller':
53 qty = line.product_qty / uom.factor
54
------CUT------
summary: |
- mrp_master_extension: Faulty logic rev 89 + mrp_production_bysumqt: Faulty logic rev 89 |