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

Hello


I used to create invoices through external api in version 12

In order to calculate taxes I was calling 

compute_taxes on  account.invoice

I know that now in version 14 it is invoice is replaced with 

account.move

but the method to re-calculate taxes does not exist anymore 
There is  _recompute_tax_lines but it seems to be private so cannot call it remotely. 

How can I force to recalculate the invoice lines in version 14 ? 


Thanks for your help


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

I don't see any public function calling _recompute_tax_lines, so i guess try these :
- try to call _recompute_tax_lines from xmlrpc
- wrap the function with other public function


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

Any help ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 18
3191
1
thg 12 17
7850
0
thg 10 17
5863
1
thg 8 17
9042
2
thg 8 25
2671