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

Hi, I encountered an error AttributeError: 'sale.order' object has no attribute 'amount_by_group' on my report after migrating from Odoo 14 to Odoo 16. Is there a field that achieves the same functionality as 'amount_by_group' on Odoo 16?




I refered to another post and it turned out that the 'amount_by_group' is changed to the 'tax_totals_json' field but I couldn't find a 'tax_totals_json' field on my 'sale.order'




Thank you in advance

Avatar
Hylkää
Paras vastaus

Hi Erik,

Please check "tax_totals" field from sale order model. this function field return all the values which you want. 

Please vote if It's help you. 

Avatar
Hylkää
Paras vastaus


This code Worked in my case. Hope it will help you.
Thanks
(V17.0)
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
elok. 25
2346
1
toukok. 25
2555
1
huhtik. 25
3519
1
huhtik. 25
4344
1
huhtik. 25
1824