Files
odoo_source/addons/account_tax_python/__manifest__.py
T
Victor Feyens 6f1283ce7e [FIX] account_tax_python: uninstall
When some existing taxes are defined with amount_type = "code",
the module uninstallation will leave the current data inconsistent.

Add an uninstall hook archiving the given taxes, logging the problematic records ids.

Fixes #45240

closes odoo/odoo#45338

X-original-commit: 16e000b5dcc93a3c90a7d1b6d9d9a6097d5a9849
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-02-13 16:52:56 +00:00

22 lines
697 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "Define Taxes as Python Code",
'summary': "Use python code to define taxes",
'description': """
A tax defined as python code consists of two snippets of python code which are executed in a local environment containing data such as the unit price, product or partner.
"Applicable Code" defines if the tax is to be applied.
"Python Code" defines the amount of the tax.
""",
'category': 'Accounting/Accounting',
'version': '1.0',
'depends': ['account'],
'data': [
'views/account_tax_views.xml',
],
'uninstall_hook': "uninstall_hook",
}