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

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


形象
丢弃
最佳答案

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


形象
丢弃
编写者 最佳答案

Any help ?

形象
丢弃
相关帖文 回复 查看 活动
0
10月 18
2930
1
12月 17
7530
0
10月 17
5484
1
8月 17
8734
1
4月 25
1669