Odoo Help


Calculate No.of products by it's status(eg: damage,available,sold) need to get those details from overall product list [Closed]

Gopalakrishnan Kasilingam
on 1/30/15, 1:08 AM 835 views

The Question has been closed for reason: duplicate question

Gopalakrishnan Kasilingam
on 02/03/2015 05:12:59

I have overall product list in that i stored their status, i need retrieve the product count using their status.. for example if i have 1000 products there are some products in damaged status, i need to get it's count by status ..


Baiju KS

--Baiju KS--
| 5 5 8
Kochi, India
--Baiju KS--
ODOO technical

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

Baiju KS
On 1/30/15, 3:09 AM

Hi Gopalakrishnan,

You can use search method for getting the count with a specified condition,,

You can use this script to get the count :- for eg getting count of damaged product,,

op_list = self.pool.get(''your.object').search(cr, uid, [('status', '=', 'damage')], context=context)

count_damage_prod = len(op_list)

Hope this thelps,, let me know if it does....

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.


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

2 follower(s)


Asked: 1/30/15, 1:08 AM
Seen: 835 times
Last updated: 3/16/15, 8:10 AM