When overriding an existing controller route, developers can easily c/p the route definition and call super() in the overridden method when the route attributes are automatically deducted by odoo from the parent route. Removing those redefined attributes simplifies the routes definition, clearly highlighting what's changed by the override. Also reduces unexpected behavior when modifying the base route without noticing/considering the redefined attributes in a overridden route, which overrides the changes made to the base route when the sub-module is installed. This commit adds a test to catch routes attributes redefinition, and clean existing routes. closes odoo/odoo#108512 Related: odoo/enterprise#35176 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
15 lines
400 B
Python
15 lines
400 B
Python
from . import test_dunderinit
|
|
from . import test_checkers
|
|
from . import test_pylint
|
|
from . import test_pofile
|
|
from . import test_eslint
|
|
from . import test_jstranslate
|
|
from . import test_l10n
|
|
from . import test_manifests
|
|
from . import test_markers
|
|
from . import test_onchange_domains
|
|
from . import test_override_signatures
|
|
from . import test_pofile
|
|
from . import test_pylint
|
|
from . import test_routes
|