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
|Asked: 1/30/15, 1:08 AM|
|Seen: 549 times|
|Last updated: 3/16/15, 8:10 AM|