08.02.26
This commit is contained in:
@@ -254,6 +254,8 @@ class Purchase(metaclass=PoolMeta):
|
||||
broker = fields.Many2One('party.party',"Broker",domain=[('categories.parent', 'child_of', [4])])
|
||||
tol_min = fields.Numeric("Tol - in %")
|
||||
tol_max = fields.Numeric("Tol + in %")
|
||||
tol_min_qt = fields.Numeric("Tol -")
|
||||
tol_max_qt = fields.Numeric("Tol +")
|
||||
certif = fields.Many2One('purchase.certification',"Certification")
|
||||
wb = fields.Many2One('purchase.weight.basis',"Weight basis")
|
||||
association = fields.Many2One('purchase.association',"Association")
|
||||
@@ -275,6 +277,9 @@ class Purchase(metaclass=PoolMeta):
|
||||
'purchase',
|
||||
'Analytic Dimensions'
|
||||
)
|
||||
trader = fields.Many2One('party.party',"Trader")
|
||||
operator = fields.Many2One('party.party',"Operator")
|
||||
our_reference = fields.Char("Our Reference")
|
||||
|
||||
@classmethod
|
||||
def default_viewer(cls):
|
||||
@@ -436,6 +441,12 @@ class Line(metaclass=PoolMeta):
|
||||
tol_max = fields.Numeric("Tol + in %",states={
|
||||
'readonly': (Eval('inherit_tol')),
|
||||
})
|
||||
tol_min_qt = fields.Numeric("Tol -",states={
|
||||
'readonly': (Eval('inherit_tol')),
|
||||
})
|
||||
tol_max_qt = fields.Numeric("Tol +",states={
|
||||
'readonly': (Eval('inherit_tol')),
|
||||
})
|
||||
inherit_tol = fields.Boolean("Inherit tolerance")
|
||||
tol_min_v = fields.Function(fields.Numeric("Qt min"),'get_tol_min')
|
||||
tol_max_v = fields.Function(fields.Numeric("Qt max"),'get_tol_max')
|
||||
|
||||
Reference in New Issue
Block a user