Commit 8f728219 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp: adjust gross requiremnt use type

parent 6b957b22
...@@ -57,6 +57,7 @@ class ManufacturingOrderLine(OrderLine): ...@@ -57,6 +57,7 @@ class ManufacturingOrderLine(OrderLine):
) )
def isAccountable(self): def isAccountable(self):
#XXXXXXXXXXXXX #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 1
return OrderLine.isAccountable(self) 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