Odoo Help

1

New api search domain id and condition?

By
DM
on 5/28/15, 12:18 PM 1,949 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

1

Zbik

--Zbik--
6313
| 6 4 7
Lodz, Poland
--Zbik--


Zbik
On 5/28/15, 1:17 PM

Try

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

hope this help.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 5/28/15, 12:18 PM
Seen: 1949 times
Last updated: 10/23/15, 9:18 AM