Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1636 Näkymät

I'd like to create a new custom field that populates based on a calculation.


On my Time Sheets list view, I want a new field labeled 'Total Cost'


That field will result from the total hours billed on the line multiplied by the hourly cost of the attached employee record.


I'd also then like to see field totaled in group headers.

Avatar
Hylkää

Hello i guess with odoo enterprise you can achive that using Odoo Studio, if not u will have use python code

Paras vastaus

Hi,
You have to write to logic for your computed field to calculate the desired values from the other records.

If you are looking for a sample, see this case:  How To Add Compute Field From User Interface In Odoo

Thanks

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 23
3488
0
helmik. 17
4088
0
jouluk. 17
13
1
syysk. 16
3957
1
elok. 25
243