Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2550 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď


This code Worked in my case. Hope it will help you.
Thanks
(V17.0)
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
srp 25
2765
1
kvě 25
2724
1
dub 25
3707
1
dub 25
4570
1
dub 25
2019