Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3723 มุมมอง

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 ?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 18
3095
1
ธ.ค. 17
7724
0
ต.ค. 17
5717
1
ส.ค. 17
8904
1
ก.ค. 25
1562