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.


Same count showing in sidemenu V8 from needaction method

Abul Hassan
on 3/24/15, 2:16 AM 316 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 ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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