Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
9543 Prikazi

Hello Odoo community,

whats the right way to search record based on id?

cover_model_option=self.env['ct.cover.model.control'].search(['id','=',self.cover_model.id])

Error

File "/opt/odoo/odoo/openerp/osv/expression.py", line 588, in check_leaf

raise ValueError("Invalid leaf %s" % str(self.leaf))

ValueError: Invalid leaf id

Avatar
Opusti
Best Answer

Try

cover_model_option=self.env['ct.cover.model.control'].search([('id','=',self.cover_model.id)]) 

hope this help.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
maj 20
74111
2
avg. 18
4069
0
dec. 24
1380
2
feb. 23
18815
3
avg. 16
10478