summaryrefslogtreecommitdiff
path: root/doc/_extensions
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-05-21 14:19:13 +0000
committerXavier Morel <xmo@odoo.com>2019-05-21 14:19:13 +0000
commit7b00776c6c59851a3de3d6e379f354671954d122 (patch)
tree582652629346797eeaa21420ffdfc05a5ca05649 /doc/_extensions
parent72592750a74831d04c6f476e7508e3bc30cbd49b (diff)
[FIX] doc: error & potential warnings
* properly handle 3-args version of odoo.define(): just ignore the second argument, pretty much the only use-case is dynamic dependencies (otherwise it should be using static require() calls) so there's little the extractor can do * fix an issue with sys.path ordering meaning sphinx would pick up an odoo installed into the current virtualenv (editable or not) over the local copy it's part of closes odoo/odoo#33538 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'doc/_extensions')
-rw-r--r--doc/_extensions/autojsdoc/parser/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/_extensions/autojsdoc/parser/parser.py b/doc/_extensions/autojsdoc/parser/parser.py
index a5eb45a8e85..62660514598 100644
--- a/doc/_extensions/autojsdoc/parser/parser.py
+++ b/doc/_extensions/autojsdoc/parser/parser.py
@@ -36,7 +36,7 @@ class ModuleMatcher(Visitor):
'property': {'name': 'define'},
},
}}):
- [module, func] = node['expression']['arguments']
+ [module, *_, func] = node['expression']['arguments']
mod = jsdoc.parse_comments(node.get('comments'), jsdoc.ModuleDoc)
# set module name
mod.set_name(module['value'])