This commit is contained in:
2026-03-10 12:46:03 +01:00
parent aff4459942
commit d609864822

View File

@@ -102,12 +102,12 @@ class Fee(ModelSQL,ModelView):
Date = Pool().get('ir.date')
return Date.today()
@classmethod
def default_qt_state(cls):
LotQtType = Pool().get('lot.qt.type')
lqt = LotQtType.search([('name','=','BL')])
if lqt:
return lqt[0].id
# @classmethod
# def default_qt_state(cls):
# LotQtType = Pool().get('lot.qt.type')
# lqt = LotQtType.search([('name','=','BL')])
# if lqt:
# return lqt[0].id
@fields.depends('price','unit','auto_calculation','mode','_parent_line.unit','_parent_line.lots','_parent_sale_line.unit','_parent_sale_line.lots','_parent_shipment_in.id')
def on_change_with_quantity(self, name=None):