add production
This commit is contained in:
7
sale.py
7
sale.py
@@ -44,3 +44,10 @@ class Line(metaclass=PoolMeta):
|
||||
super(Line, self).on_change_product()
|
||||
if self.product.pizza:
|
||||
self.pizza = self.sale.pizza_number
|
||||
|
||||
def get_production(self):
|
||||
"Return production for the sale line"
|
||||
Production = super(Line, self).get_production()
|
||||
#Production.bom = self.product.template.boms.id
|
||||
|
||||
return Production
|
||||
|
||||
Reference in New Issue
Block a user