Commit 8e3d2993 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_mrp: adjust gross requiremnt use type

parent 6076b3e7
......@@ -57,6 +57,7 @@ class ManufacturingOrderLine(OrderLine):
)
def isAccountable(self):
#XXXXXXXXXXXXX
if self.getUse() == 'manufacturing/gross_requirement' and self.getSimulationState() == 'planned':
use = self.getUse()
if use and use.startswith('manufacturing/gross_requirement') and self.getSimulationState() == 'planned':
return 1
return OrderLine.isAccountable(self)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment