Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3696 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor Beste Antwort

Any help ?

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Okt. 18
3086
1
Dez. 17
7710
0
Okt. 17
5704
1
Aug. 17
8895
1
Juli 25
1548