Odoo Help


Same count showing in sidemenu V8 from needaction method

Abul Hassan
on 3/24/15, 2:16 AM 749 views

I am having two different views for same model (product.template),one view will display records only if value of field update_require = True and the other one will display all records. now by using need action i have taken the count of records from that model in .py file.

def _needaction_domain_get(self, cr, uid, context=None):

return [('update_require', '=', True)]

Problem here is same count getting displayed for both the sidemenu links

For Eg: total records is 100

Records with True status is 75

For both side menu links 75 is coming. How to restrict this ?. How to display count for different views ?

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

1 follower(s)


Asked: 3/24/15, 2:16 AM
Seen: 749 times
Last updated: 3/24/15, 2:16 AM