Bug create contract
This commit is contained in:
@@ -880,13 +880,15 @@ class Lot(metaclass=PoolMeta):
|
||||
lqt = LotQt.search([('lot_p','=',lot.id)])
|
||||
if len(lqt)==0 and not lot.line.created_by_code:
|
||||
lot.createVirtualPart(lot.lot_quantity,None,None)
|
||||
virtual_lots_to_check.append(lot)
|
||||
if not lot.line.created_by_code:
|
||||
virtual_lots_to_check.append(lot)
|
||||
|
||||
if lot.sale_line:
|
||||
lqt = LotQt.search([('lot_s','=',lot.id)])
|
||||
if len(lqt)==0 and not lot.sale_line.created_by_code:
|
||||
lot.createVirtualPart(lot.lot_quantity,None,lot.id,'only sale')
|
||||
virtual_lots_to_check.append(lot)
|
||||
if not lot.sale_line.created_by_code:
|
||||
virtual_lots_to_check.append(lot)
|
||||
|
||||
#Recalculate total line quantity
|
||||
if lot.lot_type == 'physic':
|
||||
|
||||
Reference in New Issue
Block a user