add production

This commit is contained in:
2023-06-24 23:02:37 -05:00
parent e170c152ab
commit 8049d555f2
4 changed files with 75 additions and 2 deletions

View File

@@ -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