跳至内容
菜单
此问题已终结
2 回复
2300 查看

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

形象
丢弃
最佳答案

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. 

形象
丢弃
最佳答案


This code Worked in my case. Hope it will help you.
Thanks
(V17.0)
形象
丢弃
相关帖文 回复 查看 活动
1
5月 25
2444
1
4月 25
3464
1
4月 25
4291
1
4月 25
1776
4
3月 25
6878