Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
2189 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai


This code Worked in my case. Hope it will help you.
Thanks
(V17.0)
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mei 25
2146
1
Apr 25
3217
1
Apr 25
4034
1
Apr 25
1526
4
Mar 25
6538