0
votes

In ODOO9, I want to display a tree view where fields contain computed values from different models within a period of time. To be more explicit, user chooses a starting and an ending date, he must get the number of leaves of employees, the number of attended days... in the selected period. Is there a way to do this? Thank u in advance.

2
Hello and welcome to Stack Overflow. Please take time out for a tour and go though the help center. You might also want to read How to Ask.Sampada

2 Answers

0
votes

I see 2 possibilities:

  1. Using a db view. there are enough examples in odoo like Sales Report. Using a from and to date or something like that, has to be done in the search of odoo. That won't provide the best usability.
  2. Implement a TransientModel/Wizard where you can enter from and to date, which will dynamically compute its lines (should also be transient). I think it will provide better usability but could be less performant.
0
votes

Make a model with all the field that you want to display in tree view and then display them. It's not a big deal.

During your coding you may need to use related fields and relations for those I recommend you to read Odoo documentation.

That's all what you need to know for now

Good luck.