Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
9572 Visninger

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
Kassér
Bedste svar

Try

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

hope this help.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
maj 20
74159
2
aug. 18
4092
0
dec. 24
1397
2
feb. 23
18827
3
aug. 16
10532