Hi guys,
In a contact view I have a list with the gross sales of a company by year.
I want to retrieve the total of the first line to perform a calculation in an invoice field.

Is there a way to do that?
PS: I use Odoo 15 with Studio
Thanks for assitance.
Please explain more by giving an example.
Do you want to find the total of the first column or the first row? can you please explain? what do you want to compute? The CA lines total for all years?
Thanks for reply.
I want to compute the first line Total with a % field (commission) and that result is the amount to retrieve in an invoice.
Hi,
Thanks for reply.
Here is a use case:
- A user fills each trimester the gross sales of a company
- At the end of the year he generates an invoice
- This invoice is based on the gross sale and a percentage to charge a customer
For example:
- Total gross sales: 1 000 000€
- Customer percentage: 5%
=> Invoice amount: 50 000€
So is it a way to retrieve the gross sales amount from the list as shown on the screenshot?
If the gross sales amount was a simple field, computed fields would have worked but I don't know how I can get a specific value from a list.