Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2340 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất


This code Worked in my case. Hope it will help you.
Thanks
(V17.0)
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 25
2281
1
thg 5 25
2529
1
thg 4 25
3507
1
thg 4 25
4338
1
thg 4 25
1812