[10.0] Error on stock-scanner which is not installed
Closed this issue · 1 comments
Module
stock_scanner
Describe the bug
Trying to install a module, I got a strange error on stock_scanner, which is not installed.
This error happens when installing website_sale_product_brand, but doesn't happens when installing web_listview_range_select
To Reproduce
10.0, OCB version
Steps to reproduce the behavior:
- copy stock_scanner in your module's path, don't install it
- install website_sale_product_brand
Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)
Odoo Server Error
Traceback (most recent call last):
File "/opt/OCB/odoo/http.py", line 642, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/OCB/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/opt/OCB/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/OCB/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/OCB/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/OCB/odoo/http.py", line 942, in call
return self.method(*args, **kw)
File "/opt/OCB/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/opt/OCB/addons/web/controllers/main.py", line 904, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/OCB/addons/web/controllers/main.py", line 892, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/OCB/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/OCB/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/OCB/odoo/addons/base/module/module.py", line 413, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/OCB/odoo/addons/base/module/module.py", line 495, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/OCB/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/OCB/odoo/modules/loading.py", line 379, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/OCB/odoo/modules/loading.py", line 270, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/OCB/odoo/modules/loading.py", line 182, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/OCB/odoo/modules/loading.py", line 96, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/addons_in_use/stock_scanner/load_scenario.py", line 233, in scenario_convert_file
kind=kind, report=report, pathname=pathname)
File "/opt/OCB/odoo/tools/convert.py", line 846, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/OCB/odoo/tools/convert.py", line 899, in convert_xml_import
doc = etree.parse(xmlfile)
File "src/lxml/etree.pyx", line 3426, in lxml.etree.parse
File "src/lxml/parser.pxi", line 1860, in lxml.etree._parseDocument
File "src/lxml/parser.pxi", line 1880, in lxml.etree._parseFilelikeDocument
File "src/lxml/parser.pxi", line 1775, in lxml.etree._parseDocFromFilelike
File "src/lxml/parser.pxi", line 1186, in lxml.etree._BaseParser._parseDocFromFilelike
File "src/lxml/parser.pxi", line 600, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 710, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 639, in lxml.etree._raiseParseError
XMLSyntaxError: XML declaration allowed only at the start of the document, line 1, column 7 (line 1)
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.