05.03.26
This commit is contained in:
@@ -257,10 +257,10 @@ class Purchase(metaclass=PoolMeta):
|
||||
tol_max = fields.Numeric("Tol + in %")
|
||||
tol_min_qt = fields.Numeric("Tol -")
|
||||
tol_max_qt = fields.Numeric("Tol +")
|
||||
certif = fields.Many2One('purchase.certification',"Certification")
|
||||
certif = fields.Many2One('purchase.certification',"Certification",states={'invisible': Eval('company_visible'),})
|
||||
wb = fields.Many2One('purchase.weight.basis',"Weight basis")
|
||||
association = fields.Many2One('purchase.association',"Association")
|
||||
crop = fields.Many2One('purchase.crop',"Crop")
|
||||
association = fields.Many2One('purchase.association',"Association",states={'invisible': Eval('company_visible'),})
|
||||
crop = fields.Many2One('purchase.crop',"Crop",states={'invisible': Eval('company_visible'),})
|
||||
pnl = fields.One2Many('valuation.valuation.dyn', 'r_purchase', 'Pnl',states={'invisible': ~Eval('group_pnl'),})
|
||||
pnl_ = fields.One2Many('valuation.valuation.line', 'purchase', 'Pnl',states={'invisible': Eval('group_pnl'),})
|
||||
derivatives = fields.One2Many('derivative.derivative', 'purchase', 'Derivative')
|
||||
@@ -281,6 +281,10 @@ class Purchase(metaclass=PoolMeta):
|
||||
trader = fields.Many2One('party.party',"Trader")
|
||||
operator = fields.Many2One('party.party',"Operator")
|
||||
our_reference = fields.Char("Our Reference")
|
||||
company_visible = fields.Function(fields.Boolean("Visible"),'get_company_info')
|
||||
|
||||
def get_company_info(self):
|
||||
return (self.company.party.name == 'MELYA')
|
||||
|
||||
@classmethod
|
||||
def default_viewer(cls):
|
||||
|
||||
Reference in New Issue
Block a user