This commit is contained in:
2026-02-08 21:51:04 +01:00
parent 04179fde77
commit df5ef074ad
3 changed files with 33 additions and 38 deletions

View File

@@ -526,12 +526,7 @@ class Line(metaclass=PoolMeta):
def getVirtualLot(self):
if self.lots:
return [l for l in self.lots if l.lot_type=='virtual'][0]
# @fields.depends('quantity','quantity_theorical')
# def on_change_quantity(self):
# if not self.quantity_theorical:
# self.quantity_theorical = self.quantity
return [l for l in self.lots if l.lot_type=='virtual'][0]
def get_basis_price(self):
price = Decimal(0)