Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
The Question has been closedby
In the tree view of the standard invoice module, one can group by a number of fields, such as the date. Then, a total is shown for each date which is the sum of the totals of all invoices of that date.
Now, I am developing a module in which I added a field to the hr.employee model, a function field of type float. I added this field to the tree view, but when I apply a group filter, the view doesn't show the sum of this new field for each group as in the case of the invoices.
There is also another model I made which shows the sums without problem. In this case it is a normal float field.
So, I thought the problem with the first field might be that is a function field and not a normal float, but then I checked the invoice model and amount_total is also a function field.
So my question is, what must be done so these group sums do show up?
RAY: (Edited to show images - they were inserted incorrectly)
You are going on right way.
sum attribute is used in Account Invoice tree view. That is why you can see totals in Account Invoice tree view.
These tree fields are used with
sum attribute in Invoice tree view:
<field name="residual" sum="Residual Amount"/> <field name="amount_untaxed" sum="Untaxed Amount"/> <field name="amount_total" sum="Total Amount"/>
Same way you can also use
sum attribute in your desire tree view.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/7/13, 9:24 PM|
|Seen: 5132 times|
|Last updated: 3/16/15, 8:10 AM|