在Odoo 16中向视图添加样式时出现错误。

huangapple go评论84阅读模式
英文:

Error when adding styles to a view in odoo 16

问题

根据错误信息,似乎问题与系统中找不到外部 ID "web.assets_backend" 有关。是否有一个模块可以添加该 ID,或者是否有手动添加它的方法?还是有其他方法可以添加样式而不使用 "web.assets_backend" 和 "web.assets_frontend"?我将等待您的答案。我尝试了安装 web 模块和 web_site 模块,以查看是否可以添加外部 ID,但都没有效果。我还尝试了其他方法来添加样式,但对我来说都没有效果。

英文:

I've created a module and it works fine, but when I add styles to it I can't install it.HERE I COPY THE SCREENSHOTS TO HELP ME RESOLVE.Image del manifest.py Part of code xml Directory of my files error
Based on the error message, it seems that the problem is related to the external ID "web.assets_backend" not being found in the system. Is there a module that adds that id, is there a way to add it manually? Or is there another way to add styles without using "web.assets_backend" and "web.assets_frontend"? I will be waiting for your answers tried, installed the web module, web_site to see if I can add the external id but nothing works, tried to add styles with other methods but it doesn't work for me.

答案1

得分: 1

只删除您的XML资产部分。

英文:

You're mixing new and old way to change/add assets. Just remove your xml assets part.

huangapple
  • 本文由 发表于 2023年7月7日 07:06:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76633010.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定