Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Update tax amount on saving invoice

By
Victor Godayer
on 6/17/14, 9:44 AM 1,414 views

Hi,

 

When I save an invoice after adding new invoice lines with products under VAT, the total VAT amount is not automatically updated.

Is there a way to compute automatically the amount tax when the invoice is saved ?

Why it is not native behavior ?

 

Any help will be much appreciated

Cheers

 

0
Manuel
On 6/18/14, 9:04 AM

If you add an invoice line or change an amount, the total are not updated. There is a button "update" next to tax to recalculate the tax and the total. You can save the invoice without recalculating, but you cannot validate the invoice - at least in my instance (v8).

I am not sure whether there is a setting to do this automatcally on save. But I think you could do this by modifying the code. addons/account/account_invoice.py. There is a method called action_move_create. I think if you add a call at the beginning of that function to self.button_compute(self,cr,uid,ids,content), that should do the trick. But not tested and I have no experience in python.

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/17/14, 9:44 AM
Seen: 1414 times
Last updated: 3/16/15, 8:10 AM