Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3693 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Autor Melhor resposta

Any help ?

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
out. 18
3084
1
dez. 17
7710
0
out. 17
5702
1
ago. 17
8893
1
jul. 25
1544