Odoo Help


This community 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.


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 536 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 ..



| 5 4 8
Kochi, India
ODOO technical and functional

        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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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