mirror of
https://github.com/odoo/documentation.git
synced 2025-12-12 07:29:27 +07:00
[IMP] conf: strip odoo.upgrade.testing
The prefix that includes the full module path is just noise. This patch
follows the same strategy used to remove `odoo.upgrade.util` prefix.
To be merged after: odoo/upgrade-util#324
closes odoo/documentation#14912
X-original-commit: 33aea00007
Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
This commit is contained in:
6
conf.py
6
conf.py
@@ -389,11 +389,13 @@ def source_read_replace(app, docname, source):
|
||||
def upgrade_util_signature_rewrite(app, domain, objtype, contentnode):
|
||||
# Same as add_module_names=False but **only** for odoo.upgrade.util functions or classes
|
||||
signature = contentnode.parent[0]
|
||||
if objtype == 'function' and signature.astext().startswith('odoo.upgrade.util.'):
|
||||
if objtype == 'function' and signature.astext().startswith(('odoo.upgrade.util.', 'odoo.upgrade.testing.')):
|
||||
# <odoo.upgrade.util.modules>, <modules_installed>, <(cr, *modules)>
|
||||
# <odoo.upgrade.testing>, <change_version>, <(version_str)>
|
||||
signature.pop(0)
|
||||
if objtype == 'class' and signature.astext().startswith('class odoo.upgrade.util.'):
|
||||
if objtype == 'class' and signature.astext().startswith(('class odoo.upgrade.util.', 'class odoo.upgrade.testing.')):
|
||||
# <class >, <odoo.upgrade.util.pg.>, <PGRegexp>
|
||||
# <class >, <odoo.upgrade.testing.>, <UpgradeCase>
|
||||
signature.pop(1)
|
||||
|
||||
def setup(app):
|
||||
|
||||
@@ -111,3 +111,10 @@ Misc
|
||||
|
||||
.. automodule:: odoo.upgrade.util.misc
|
||||
:members:
|
||||
|
||||
|
||||
Testing upgrade scripts
|
||||
=======================
|
||||
|
||||
.. automodule:: odoo.upgrade.testing
|
||||
:members:
|
||||
|
||||
Reference in New Issue
Block a user