Odoo Help

0

0
3 Answers
0
Avatar

Pascal Tremblay

--Pascal Tremblay--
1899
| 6 3 10
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
3/31/17, 2:23 PM

I have found how to get an ids list.

Just use :

ids.ids

to get :

[1366, 1365, 1325, 1303, 1297, 1296, 1295, 1291]

1 Comment
Pascal Tremblay
3/31/17, 2:24 PM

Probably that products.ids would be a better name for my variable instead of ids.ids...

2
Avatar

Anil R. Kesariya (AKE)

--Anil R. Kesariya (AKE)--
6319
| 8 6 10
Rajkot, India
--Anil R. Kesariya (AKE)--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.


Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66


Anil R. Kesariya (AKE)
4/1/17, 3:04 AM

Hi Pascal,

You can also use like,

ids = self.search([('default_code', operator, name)]).ids


Regards,

Anil.

Ask a Question
Writer
Keep Informed
1 follower(s)
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