How to use fields from 2 models in treeview? openerp -
I have a tree that has many relationship areas with other models,
I want to change colors Based on the value of the field in other models, records of an existing tree view.
You can use the Like this: And then used the related field in this scenario:
'plan_id': fields.many2one ('hr_evaluation.plan', 'Assessment Plan', Ondelete = 'cascade',), 'company_id': fields .related ('plan_id', 'company_id', type = 'many2one', relation = 'res.company', string = 'company', store = true, readonly = true),
company_id field.
Comments
Post a Comment