Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
9578 Vues

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
Ignorer
Meilleure réponse

Try

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

hope this help.

Avatar
Ignorer
Publications associées Réponses Vues Activité
4
mai 20
74177
2
août 18
4094
0
déc. 24
1403
2
févr. 23
18835
3
août 16
10537