Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3745 Zobrazení

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


Avatar
Zrušit
Nejlepší odpověď

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


Avatar
Zrušit
Autor Nejlepší odpověď

Any help ?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 18
3111
1
pro 17
7763
0
říj 17
5735
1
srp 17
8921
1
čvc 25
1587