Skip to Content
मेन्यू
This question has been flagged
1 Reply
9527 Views

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
Discard
Best Answer

Try

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

hope this help.

Avatar
Discard
Related Posts Replies Views Activity
4
मई 20
74031
2
अग॰ 18
4039
0
दिस॰ 24
1342
2
फ़र॰ 23
18783
3
अग॰ 16
10465