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 ?