From 7b00776c6c59851a3de3d6e379f354671954d122 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 21 May 2019 14:19:13 +0000 Subject: [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) --- doc/_extensions/autojsdoc/parser/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/_extensions/autojsdoc/parser/parser.py') 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']) -- cgit v1.2.3