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 related field in this scenario:

Like this:

  '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),   

And then used the company_id field.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -