disable tax with end_date

This commit is contained in:
?ngel ?lvarez 2019-09-18 12:20:25 +02:00
parent 0388b2b87d
commit 687ad30c53
1 changed files with 4 additions and 0 deletions

View File

@ -630,6 +630,10 @@ after:
update account_tax set end_date = current_date, template_override = True where active = False and end_date is null and template is not null;
update account_tax set end_date = current_date, template_override = True where active = False and end_date is null;
- comment: #disable old taxes not contempled.
version: 5.0
query: update account_tax set active=false, end_date=now()::date where name like '%IRPF%+%IVA%' and active = True
- script: ./upgrades/after/upgrade_account_chart.py
- comment: # upgrade configuration models from ir_property