jonexiong / oejia_menu Goto Github PK
View Code? Open in Web Editor NEWOdoo 菜单美化主题
Odoo 菜单美化主题
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 642, in apply_inheritance_specs
pre_locate=pre_locate)
File "/home/odoo/odoo/odoo/tools/template_inheritance.py", line 209, in apply_inheritance_specs
_("Element '%s' cannot be located in parent view") % tag
ValueError: 元素 '' 在母级视图中没有找到
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/tools/convert.py", line 713, in parse
self._tag_root(de)
File "/home/odoo/odoo/odoo/tools/convert.py", line 675, in _tag_root
f(rec)
File "/home/odoo/odoo/odoo/tools/convert.py", line 653, in _tag_template
return self._tag_record(record)
File "/home/odoo/odoo/odoo/tools/convert.py", line 578, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/odoo/odoo/odoo/models.py", line 3990, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 148, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/odoo/odoo/odoo/models.py", line 3904, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 473, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/models.py", line 3685, in create
fields[0].determine_inverse(batch_recs)
File "/home/odoo/odoo/odoo/fields.py", line 1153, in determine_inverse
getattr(records, self.inverse)()
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 51, in write
return super(View, self).write(vals)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3473, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/home/odoo/odoo/odoo/models.py", line 1115, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 716, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 665, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 644, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 592, in raise_view_error
raise ValueError(message)
ValueError: 元素 '' 在母级视图中没有找到
错误的上下文:
视图 oejia_webclient
[view_id: 1029, xml_id: n/a, model: n/a, parent_id: 201]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/home/odoo/odoo/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/odoo/odoo/http.py", line 909, in call
return self.method(*args, **kw)
File "/home/odoo/odoo/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 1323, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 1311, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 410, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 397, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 463, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/odoo/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/odoo/odoo/modules/loading.py", line 420, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/odoo/odoo/odoo/modules/loading.py", line 312, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/odoo/odoo/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/home/odoo/odoo/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 737, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 804, in convert_xml_import
obj.parse(doc.getroot())
File "/home/odoo/odoo/odoo/tools/convert.py", line 722, in parse
exc_info[2]
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/home/odoo/odoo/odoo/tools/convert.py", line 713, in parse
self._tag_root(de)
File "/home/odoo/odoo/odoo/tools/convert.py", line 675, in _tag_root
f(rec)
File "/home/odoo/odoo/odoo/tools/convert.py", line 653, in _tag_template
return self._tag_record(record)
File "/home/odoo/odoo/odoo/tools/convert.py", line 578, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/odoo/odoo/odoo/models.py", line 3990, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 148, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/odoo/odoo/odoo/models.py", line 3904, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 473, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/models.py", line 3685, in create
fields[0].determine_inverse(batch_recs)
File "/home/odoo/odoo/odoo/fields.py", line 1153, in determine_inverse
getattr(records, self.inverse)()
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 51, in write
return super(View, self).write(vals)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3473, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/home/odoo/odoo/odoo/models.py", line 1115, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 716, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 665, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 644, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 592, in raise_view_error
raise ValueError(message)
odoo.tools.convert.ParseError: "元素 '' 在母级视图中没有找到
错误的上下文:
视图 oejia_webclient
[view_id: 1029, xml_id: n/a, model: n/a, parent_id: 201]" while parsing /home/odoo/odoo/my-modules/oejia_menu/views/template.xml:2, near
</odoo>
Could not get content for /oejia_menu/static/src/less/variables.less defined in bundle 'web.assets_backend'.
Could not get content for /oejia_menu/static/src/less/navbar.less defined in bundle 'web.assets_backend'.
Could not get content for /oejia_menu/static/src/less/style.less defined in bundle 'web.assets_backend'.
(b'', b'The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).
undefinedError: Cannot read property 'numerator' of undefined
')This error occured while compiling the bundle 'web.assets_backend' containing:
- /web/static/lib/bootstrap/less/variables.less
- /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
- /web/static/lib/bootstrap/less/mixins/buttons.less
- /web/static/lib/bootstrap/less/mixins/clearfix.less
- /web/static/lib/bootstrap/less/mixins/size.less
- /web/static/src/less/variables.less
- /web/static/src/less/utils.less
- /web_editor/static/src/less/web_editor.variables.less
- /web/static/src/less/import_bootstrap.less
- /web/static/src/less/bootstrap_overridden.less
- /web/static/src/less/webclient_extra.less
- /web/static/src/less/webclient_layout.less
- /web/static/src/less/webclient.less
- /web/static/src/less/domain_selector.less
- /web/static/src/less/model_field_selector.less
- /web/static/src/less/progress_bar.less
- /web/static/src/less/dropdown.less
- /web/static/src/less/dropdown_extra.less
- /web/static/src/less/tooltip.less
- /web/static/src/less/debug_manager.less
- /web/static/src/less/control_panel.less
- /web/static/src/less/fields.less
- /web/static/src/less/fields_extra.less
- /web/static/src/less/views.less
- /web/static/src/less/views_extra.less
- /web/static/src/less/pivot_view.less
- /web/static/src/less/graph_view.less
- /web/static/src/less/form_view.less
- /web/static/src/less/form_view_extra.less
- /web/static/src/less/list_view.less
- /web/static/src/less/list_view_extra.less
- /web/static/src/less/kanban_dashboard.less
- /web/static/src/less/kanban_column_progressbar.less
- /web/static/src/less/kanban_view.less
- /web/static/src/less/kanban_view_mobile.less
- /web/static/src/less/web_calendar.less
- /web/static/src/less/search_view.less
- /web/static/src/less/search_view_extra.less
- /web/static/src/less/data_export.less
- /web/static/src/less/base_settings.less
- /web/static/src/less/report_backend.less
- /base_import/static/src/less/base_import.less
- /web_diagram/static/src/less/diagram_view.less
- /web_editor/static/src/less/web_editor.common.less
- /web_editor/static/src/less/web_editor.backend.less
- /mail/static/src/less/announcement.less
- /mail/static/src/less/client_action.less
- /mail/static/src/less/chat_window.less
- /mail/static/src/less/extended_chat_window.less
- /mail/static/src/less/composer.less
- /mail/static/src/less/chatter.less
- /mail/static/src/less/followers.less
- /mail/static/src/less/thread.less
- /mail/static/src/less/systray.less
- /mail/static/src/less/mail_activity.less
- /oejia_menu/static/src/less/variables.less
- /oejia_menu/static/src/less/navbar.less
- /oejia_menu/static/src/less/style.less
- /web_settings_dashboard/static/src/less/dashboard.less
Could not get content for /oejia_menu/static/src/less/variables.less defined in bundle 'web.assets_backend'.
Could not get content for /oejia_menu/static/src/less/navbar.less defined in bundle 'web.assets_backend'.
Could not get content for /oejia_menu/static/src/less/style.less defined in bundle 'web.assets_backend'.
您好:odoo12 版本安装报错,麻烦您帮忙解决一下。
报错信息:
The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.
Could not get content for /oejia_menu/static/src/less/variables.less defined in bundle 'web.assets_backend'.
Could not get content for /oejia_menu/static/src/less/navbar.less defined in bundle 'web.assets_backend'.
Could not get content for /oejia_menu/static/src/less/style.less defined in bundle 'web.assets_backend'.
Could not execute command 'lessc'This error occured while compiling the bundle 'web.assets_backend' containing:
could not get cotent for /oejia_menu/static/src/less/variables.less defined in dundle 'web.assets.backend'
could not get cotent for /oejia_menu/static/src/less/navbar.less defined in dundle 'web.assets.backend'
could not get cotent for /oejia_menu/static/src/less/style.less defined in dundle 'web.assets.backend'
I have installed npm, less, less-plugin-clean-css already.
Could you help to check what's reason ? tks in advance.
你好:
非常感谢你能分享odoo的主题,我安装使用了你的模块,但是安装的时候报出了缺少依赖的包的错误,"The ID "oejia_menu.menu" refers to an uninstalled module",出错的位置是在
oejia_menu.menu这个id下的一段
你知道我是缺少那个模块吗?
ps:我的版本是odoo12,社区版,使用的也是你的12分支的模块
会出odoo13版本的吗?什么时间能出来?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.