Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
9813 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
74563
2
aug. 18
4401
0
dec. 24
1729
2
feb. 23
19173
3
aug. 16
10909