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 ?
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
|Asked: 3/24/15, 2:16 AM|
|Seen: 325 times|
|Last updated: 3/24/15, 2:16 AM|