Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
237 Weergaven

Hello everybody!!!!

Please who knows how to calculate multiple lines of prices such as those lines of a payslip or an invoice please.

Thanks in advance

Avatar
Annuleer

what does it mean calculate multiple lines?

Auteur

I have a class that contains multiple recordset and in every recordset i have a field named credit. I want to add a field sum which will calculate all the credits.

maybe you can made a "sum" field computed one?

https://www.odoo.com/nl_NL/forum/help-1/question/computed-field-that-sums-records-72650

also in treeview you can add to any field a sum property, like:

<tree>
    . . .
    <field name="field_name" sum="Sum Popup Text" />
    . . .
</tree>
so if you're using tree to display your records, then check if it meets your requirements...

The later option will add sum at the end of the corresponding column in your list.

Auteur

Here is my view: where am i going to add the sum?? and sum means what is it a dynamic function or i have to define it??

I do not see your view... you can edit your question and add the view you want to post there. in secod case sum property in xml do not require you to implement anything, it's existing feature, just add some pupup text for it in xml and that's it. But in first case, if you choose to implement computed field, then you'll have to implement it.

Abdel,you must undergo training before asking basic questions. In the Odoo, the official modules are very rich to answer your questions. http://doc.odoo.com is content rich too. You may contact us on contact@serpentcs.com and we will snd you the relevant materals.

Gerelateerde posts Antwoorden Weergaven Activiteit
2
aug. 25
2657
1
jul. 25
1037
1
aug. 25
1151
0
mei 25
1497
2
apr. 25
3647