Odoo Help

0

How to update changes in VAT percent

By
Henrik Norlin
on 7/16/14, 10:53 AM 848 views

When the government changes the VAT percent from a certain date:

- Can some python code in a tax record lookup the date and then return the correct VAT percent?

- Can taxes be updated when the I10n module is updated, or can the module update only the template taxes?

0
Henrik Norlin
On 7/16/14, 4:04 PM

(1) I was able to set Tax Type = Python Code:

import datetime
time_of_change = datetime.date(2015,1,1)
today = datetime.date.today()
if today < time_of_change:
    result = price_unit * 0.14
else:
    result = price_unit * 0.15

(2) I found the community model account_chart_update for v7.0 that updates taxes++ based on the templates.

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/16/14, 10:53 AM
Seen: 848 times
Last updated: 3/16/15, 8:10 AM