In the tree view , i wann to display only one latest record from each user . Currently is displays all the records created by default , now i have added a group filter by month , it shows all the records of the month , but not single record of each user .
How to achieve this .
Sounds like you need a new model with two fields:
user_id: many2one to res.users
latest_record: functional field related to the model you want
In the function code for the functional field, you can return the record ID of the latest record for the relational model, based on whatever logic you want to put in there. You could then create a normal tree view for this new model, and it should effectively give you what you want.
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: 8/27/14, 9:32 AM|
|Seen: 524 times|
|Last updated: 3/16/15, 8:10 AM|