With this commit, Selection fields with `required=True` which are extended via `selection_add` are given proper ondelete policies to ensure the cleanup of records containing these extended options during uninstall of the extending module. This commit also cleans up leftover uninstall hooks that were being used to handle the same set of problems prior to the ondelete mechanism being implemented for Selection fields. closes odoo/odoo#46325 Related: odoo/enterprise#9117 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
21 lines
657 B
Python
21 lines
657 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',
|
|
],
|
|
}
|