Skip to Content
Menú
This question has been flagged
2 Respostes
2286 Vistes

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
Descartar
Best Answer

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
Descartar
Best Answer


This code Worked in my case. Hope it will help you.
Thanks
(V17.0)
Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de maig 25
2413
1
d’abr. 25
3430
1
d’abr. 25
4251
1
d’abr. 25
1744
4
de març 25
6844