请问一下odoo加入前端组件报这样的错误应该如何解决?
-
2024-01-11 06:40:51,934 25272 WARNING owl_test odoo.addons.base.models.assetsbundle: Error: Undefined variable: "$o-community-color".
on line 28:23 of stdinbackground-color: $o-community-color;
----------------------^
This error occurred while compiling the bundle 'web.assets_backend' containing:
- /basis_xlsx_report/static/src/css/ThemeSetting.scss
- /web/static/lib/bootstrap/scss/_functions.scss
- /web/static/lib/bootstrap/scss/_mixins.scss
- /web/static/src/scss/mixins_forwardport.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/legacy/scss/utils.scss
- /web/static/src/scss/primary_variables.scss
- /web/static/src/core/notifications/notification.variables.scss
- /web/static/src/search/control_panel/control_panel.variables.scss
- /web/static/src/search/search_panel/search_panel.variables.scss
- /web/static/src/views/form/form.variables.scss
- /web/static/src/views/kanban/kanban.variables.scss
- /web/static/src/webclient/burger_menu/burger_menu.variables.scss
- /web/static/src/webclient/navbar/navbar.variables.scss
- /base/static/src/scss/onboarding.variables.scss
- /web_editor/static/src/scss/web_editor.variables.scss
- /web_editor/static/src/scss/wysiwyg.variables.scss
- /web/static/src/scss/secondary_variables.scss
- /web_editor/static/src/scss/secondary_variables.scss
- /web/static/src/scss/bootstrap_overridden.scss
- /web/static/src/scss/bs_mixins_overrides_backend.scss
- /web_editor/static/src/scss/bootstrap_overridden_backend.scss
- /web_editor/static/src/scss/bootstrap_overridden.scss
- /web/static/src/scss/pre_variables.scss
- /web/static/lib/bootstrap/scss/_variables.scss
- /web/static/src/scss/import_bootstrap.scss
- /web/static/src/scss/helpers_backport.scss
- /web/static/src/scss/utilities_custom.scss
- /web/static/lib/bootstrap/scss/utilities/_api.scss
- /web/static/src/scss/bootstrap_review.scss
- /web/static/src/core/utils/transitions.scss
- /web/static/src/core/action_swiper/action_swiper.scss
- /web/static/src/core/autocomplete/autocomplete.scss
- /web/static/src/core/colorlist/colorlist.scss
- /web/static/src/core/commands/command_palette.scss
- /web/static/src/core/debug/debug_menu.scss
- /web/static/src/core/debug/profiling/profiling_item.scss
- /web/static/src/core/debug/profiling/profiling_qweb.scss
- /web/static/src/core/dialog/dialog.scss
- /web/static/src/core/dropdown/dropdown.scss
- /web/static/src/core/effects/rainbow_man.scss
- /web/static/src/core/file_upload/file_upload_progress_bar.scss
- /web/static/src/core/file_upload/file_upload_progress_record.scss
- /web/static/src/core/model_field_selector/model_field_selector.scss
- /web/static/src/core/model_field_selector/model_field_selector_popover.scss
- /web/static/src/core/notebook/notebook.scss
- /web/static/src/core/notifications/notification.scss
- /web/static/src/core/popover/popover.scss
- /web/static/src/core/tooltip/tooltip.scss
- /web/static/src/core/ui/block_ui.scss
- /web/static/src/search/control_panel/control_panel.scss
- /web/static/src/search/search_bar/search_bar.scss
- /web/static/src/search/search_panel/search_panel.scss
- /web/static/src/search/search_panel/search_view.scss
- /web/static/src/webclient/icons.scss
- /web/static/src/views/calendar/calendar_common/calendar_common_popover.scss
- /web/static/src/views/calendar/calendar_controller.scss
- /web/static/src/views/calendar/calendar_controller_mobile.scss
- /web/static/src/views/calendar/calendar_renderer.scss
- /web/static/src/views/calendar/calendar_renderer_mobile.scss
- /web/static/src/views/calendar/calendar_year/calendar_year_popover.scss
- /web/static/src/views/calendar/filter_panel/calendar_filter_panel.scss
- /web/static/src/views/fields/ace/ace_field.scss
- /web/static/src/views/fields/badge/badge_field.scss
- /web/static/src/views/fields/char/char_field.scss
- /web/static/src/views/fields/color_picker/color_picker_field.scss
- /web/static/src/views/fields/copy_clipboard/copy_clipboard_field.scss
- /web/static/src/views/fields/email/email_field.scss
- /web/static/src/views/fields/fields.scss
- /web/static/src/views/fields/html/html_field.scss
- /web/static/src/views/fields/iframe_wrapper/iframe_wrapper_field.scss
- /web/static/src/views/fields/image/image_field.scss
- /web/static/src/views/fields/journal_dashboard_graph/journal_dashboard_graph_field.scss
- /web/static/src/views/fields/many2many_tags/many2many_tags_field.scss
- /web/static/src/views/fields/many2many_tags/tags_list.scss
- /web/static/src/views/fields/many2many_tags_avatar/many2many_tags_avatar_field.scss
- /web/static/src/views/fields/many2one/many2one_field.scss
- /web/static/src/views/fields/monetary/monetary_field.scss
- /web/static/src/views/fields/pdf_viewer/pdf_viewer_field.scss
- /web/static/src/views/fields/percent_pie/percent_pie_field.scss
- /web/static/src/views/fields/phone/phone_field.scss
- /web/static/src/views/fields/progress_bar/progress_bar_field.scss
- /web/static/src/views/fields/properties/kanban_properties_field.scss
- /web/static/src/views/fields/properties/properties_field.scss
- /web/static/src/views/fields/properties/property_definition.scss
- /web/static/src/views/fields/properties/property_definition_selection.scss
- /web/static/src/views/fields/properties/property_tags.scss
- /web/static/src/views/fields/properties/property_value.scss
- /web/static/src/views/fields/radio/radio_field.scss
- /web/static/src/views/fields/selection/selection_field.scss
- /web/static/src/views/fields/state_selection/state_selection_field.scss
- /web/static/src/views/fields/statusbar/statusbar_field.scss
- /web/static/src/views/fields/text/text_field.scss
- /web/static/src/views/fields/translation_button.scss
- /web/static/src/views/fields/url/url_field.scss
- /web/static/src/views/form/form_controller.scss
- /web/static/src/views/form/form_error_dialog/form_error_dialog.scss
- /web/static/src/views/form/status_bar_buttons/status_bar_buttons.scss
- /web/static/src/views/graph/graph_view.scss
- /web/static/src/views/kanban/kanban_column_progressbar.scss
- /web/static/src/views/kanban/kanban_controller.scss
- /web/static/src/views/kanban/kanban_dashboard.scss
- /web/static/src/views/kanban/kanban_examples_dialog.scss
- /web/static/src/views/list/list_renderer.scss
- /web/static/src/views/pivot/pivot_view.scss
- /web/static/src/views/view.scss
- /web/static/src/views/view_dialogs/export_data_dialog.scss
- /web/static/src/views/widgets/ribbon/ribbon.scss
- /web/static/src/views/widgets/week_days/week_days.scss
- /web/static/src/webclient/barcode/barcode_scanner.scss
- /web/static/src/webclient/barcode/crop_overlay.scss
- /web/static/src/webclient/burger_menu/burger_menu.scss
- /web/static/src/webclient/loading_indicator/loading_indicator.scss
- /web/static/src/webclient/select2.scss
- /web/static/src/webclient/settings_form_view/settings_form_view.scss
- /web/static/src/webclient/settings_form_view/settings_form_view_mobile.scss
- /web/static/src/webclient/settings_form_view/widgets/settings_widgets.scss
- /web/static/src/webclient/user_menu/user_menu.scss
- /web/static/src/webclient/webclient.scss
- /web/static/src/webclient/webclient_layout.scss
- /web/static/src/legacy/scss/domain_selector.scss
- /web/static/src/legacy/scss/model_field_selector.scss
- /web/static/src/legacy/scss/dropdown.scss
- /web/static/src/legacy/scss/tooltip.scss
- /web/static/src/legacy/scss/switch_company_menu.scss
- /web/static/src/legacy/scss/ace.scss
- /web/static/src/legacy/scss/fields.scss
- /web/static/src/legacy/scss/views.scss
- /web/static/src/legacy/scss/form_view.scss
- /web/static/src/legacy/scss/list_view.scss
- /web/static/src/legacy/scss/kanban_dashboard.scss
- /web/static/src/legacy/scss/kanban_examples_dialog.scss
- /web/static/src/legacy/scss/kanban_column_progressbar.scss
- /web/static/src/legacy/scss/kanban_view.scss
- /web/static/src/legacy/scss/data_export.scss
- /base/static/src/scss/onboarding.scss
- /web/static/src/legacy/scss/attachment_preview.scss
- /web/static/src/legacy/scss/base_document_layout.scss
- /web/static/src/legacy/scss/special_fields.scss
- /web/static/src/legacy/scss/fields_extra.scss
- /web/static/src/legacy/scss/form_view_extra.scss
- /web/static/src/legacy/scss/list_view_extra.scss
- /web/static/src/legacy/scss/color_picker.scss
- /base/static/src/scss/res_partner.scss
- /web/static/src/views/form/button_box/button_box.scss
- /auth_totp/static/src/scss/res_users_view_form.scss
- /base_import/static/src/legacy/scss/base_import.scss
- /base_import/static/src/legacy/scss/icons.scss
- /web_editor/static/src/components/media_dialog/media_dialog.scss
- /web_editor/static/src/components/upload_progress_toast/upload_progress_toast.scss
- /web_editor/static/src/scss/web_editor.common.scss
- /web_editor/static/src/scss/web_editor.backend.scss
2024-01-11 06:40:52,001 25272 ERROR owl_test odoo.http: Exception during request handling.
Traceback (most recent call last):
File "D:\odoo01\odoo\odoo16\odoo\tools\cache.py", line 85, in lookup
r = d[key]
File "", line 2, in getitem
File "D:\odoo01\odoo\odoo16\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "D:\odoo01\odoo\odoo16\odoo\tools\lru.py", line 34, in getitem
a = self.d[obj]
KeyError: ('ir.qweb', <function IrQWeb._generate_asset_nodes_cache at 0x000001ACB7072D30>, 'web.assets_backend', False, True, '', False, False, False, False, ('zh_CN', None, None, None, None))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<193>", line 323, in template_193
File "<193>", line 305, in template_193_content
File "<193>", line 274, in template_193_t_call_0
File "<193>", line 191, in template_193_t_set_2
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\ir_qweb.py", line 2422, in _get_asset_nodes
return self._generate_asset_nodes_cache(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
File "", line 2, in _generate_asset_nodes_cache
File "D:\odoo01\odoo\odoo16\odoo\tools\cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\ir_qweb.py", line 2477, in _generate_asset_nodes_cache
return self._generate_asset_nodes(bundle, css, js, debug, async_load, defer_load, lazy_load, media)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\ir_qweb.py", line 2551, in generate_asset_nodes
return remains + asset.to_node(css=css, js=js, debug=debug, async_load=async_load, defer_load=defer_load, lazy_load=lazy_load)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\assetsbundle.py", line 181, in to_node
js_attachment = self.js(is_minified=not is_debug_assets)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\assetsbundle.py", line 405, in js
content.append(self.xml(show_inherit_info=not is_minified))
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\assetsbundle.py", line 530, in xml
raise ValueError(("Module %r not loaded or inexistent (try to inherit %r), or templates of addon being loaded %r are misordered (template %r)", parent_addon, parent_name, addon, template_name))
ValueError: 模块'web'未加载或不存在(尝试承接'WebClient'),或加载'basis_xlsx_report'的ADDON模板顺序错误(模板None)The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\odoo01\odoo\odoo16\odoo\http.py", line 2003, in call
response = request._serve_db()
File "D:\odoo01\odoo\odoo16\odoo\http.py", line 1589, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "D:\odoo01\odoo\odoo16\odoo\service\model.py", line 133, in retrying
result = func()
File "D:\odoo01\odoo\odoo16\odoo\http.py", line 1616, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "D:\odoo01\odoo\odoo16\odoo\http.py", line 1730, in dispatch
return self.request.registry['ir.http']._dispatch(endpoint)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\ir_http.py", line 156, in _dispatch
result.flatten()
File "D:\odoo01\odoo\odoo16\odoo\http.py", line 1100, in flatten
self.response.append(self.render())
File "D:\odoo01\odoo\odoo16\odoo\http.py", line 1092, in render
return request.env["ir.ui.view"]._render_template(self.template, self.qcontext)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\ir_ui_view.py", line 2125, in _render_template
return self.env['ir.qweb']._render(template, values)
File "D:\odoo01\odoo\odoo16\odoo\tools\profiler.py", line 292, in _tracked_method_render
return method_render(self, template, values, **options)
File "D:\odoo01\odoo\odoo16\odoo\addons\base\models\ir_qweb.py", line 581, in _render
result = ''.join(rendering)
File "<193>", line 329, in template_193
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
ValueError: 模块'web'未加载或不存在(尝试承接'WebClient'),或加载'basis_xlsx_report'的ADDON模板顺序错误(模板None)
Template: web.webclient_bootstrap
Path: /t/t/t[1]/t[4]
Node:
2024-01-11 06:40:52,006 25272 INFO owl_test werkzeug: 127.0.0.1 - - [11/Jan/2024 06:40:52] "GET /web HTTP/1.1" 500 - 65 0.023 0.652