Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Calculate No.of products by it's status(eg: damage,available,sold) need to get those details from overall product list [Closed]
The Question has been closed for reason: duplicate questionby
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 ..
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/30/15, 1:08 AM|
|Seen: 755 times|
|Last updated: 3/16/15, 8:10 AM|