Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
9524 Tampilan

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
Buang
Jawaban Terbai

Try

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

hope this help.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
4
Mei 20
74031
2
Agu 18
4038
0
Des 24
1342
2
Feb 23
18783
3
Agu 16
10463