Need to call model method in tree colors
My model Autogallery has a function check(self,value) and one2many field car_ids. Inside product_ids there is a float field product_size. I would like to highlight my tree with respect to wheel_size. I cannot introduce a computed field in Car, because method check() refers to the fields inside Autogallery, so it will return different values for different Autogallery. Is it possible to call function in expression for colors? If not, what implementation is possible?
a snippet of Autogallery view
<field name="car_ids" widget="one2many_list">
<tree string="R" colors="???self.check('wheel_id')???">