跳至内容
Odoo 菜单
  • 登录
  • 免费试用
  • 应用程序
    财务
    • 会计
    • 发票
    • 费用
    • 电子表格 (BI)
    • 文档
    • 电子签名
    销售
    • 客户关系管理
    • 销售
    • POS 销售点管理-零售
    • POS 销售点管理 - 餐厅
    • 订阅
    • 租赁
    网站
    • 网站设计
    • 电子商务
    • 博客
    • 论坛
    • 在线客服
    • 在线学习
    供应链
    • 库存
    • 制造
    • 产品生命周期
    • 采购
    • 维护保养
    • 品控
    人力资源
    • 员工
    • 招聘
    • 休假
    • 评价
    • 内部推荐
    • 车队
    营销
    • 社媒营销
    • 电邮营销
    • 短信营销
    • 近期活动
    • 营销自动化
    • 网上调查
    服务
    • 项目管理
    • 工时单
    • 现场服务
    • 服务台
    • 排期
    • 预约
    生产力
    • 讨论
    • 批核
    • IoT物联网
    • VoIP
    • 知识库
    • WhatsApp
    第三方应用软件 Odoo 定制 Odoo云端平台
  • 行业
    零售
    • 书店
    • 服装店
    • 家具店
    • 食品杂货店
    • 五金店
    • 玩具店
    餐饮与酒店服务
    • 酒吧及酒馆
    • 餐厅
    • 快餐
    • 民宿
    • 饮品分销商
    • 酒店
    房地产
    • 房地产代理
    • 建筑师事务所
    • 建造业
    • 地产管理
    • 园艺
    • 业主协会
    咨询
    • 会计师事务所
    • Odoo合作伙伴
    • 市场推广公司
    • 律师事务所
    • 人才招聘
    • 审核 & 认证
    制造
    • 纺织
    • 金属
    • 家具
    • 食品
    • 啤酒厂
    • 企业礼品
    保健与健身
    • 体育俱乐部
    • 眼镜店
    • 健身中心
    • 健康从业者
    • 药房
    • 发型屋
    Trades
    • 维修人员
    • IT 硬件及支持
    • 太阳能系统
    • 鞋匠
    • 清洁服务
    • 暖通空调服务
    其他
    • 非营利组织
    • 环境机构
    • 广告牌租赁
    • 摄影服务
    • 自行车租赁
    • 软件经销商
    浏览所有行业
  • 社区
    学习
    • 教学视频
    • 文档
    • 认证
    • 培训
    • 博客
    • 播客
    赋能教育
    • 教育计划
    • Scale Up! 商业游戏
    • 参观Odoo
    获取软件
    • 下载
    • 版本对比
    • 发布
    合作
    • Github
    • 论坛
    • 近期活动
    • 翻译
    • 成为合作伙伴
    • 合作伙伴服务
    • 注册您的会计事务所
    获取服务
    • 寻找合作伙伴
    • 查找会计服务
    • 预约顾问咨询
    • 安装及推行服务
    • 客户参考
    • 支持
    • 升级
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    获取演示
  • 定价
  • 技术支持

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • 客户关系管理
  • e-Commerce
  • 会计
  • 库存
  • PoS
  • 项目
  • MRP
All apps
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
帮助

Internal Server Error After Editing Views

订阅

此帖文有活动时,接收通知

此问题已终结
500internalerror
8 回复
8586 查看
形象
Felix

After editing views from Technical (Login Layout - web.login_layout) i set its Inherited View with Web layout - web.layout. I couldnt login to the database & its showing like this (traceback attached below). How to fix this?

I'm  working on Odoo 10.0 CE (Ubuntu 18.04.1 LTS)

Thanks :)


500: Internal Server Error
Error

Error message:

load could not load template
Template: web.layout

Traceback

Traceback (most recent call last):
  File "/opt/odoo/addons/website/models/ir_http.py", line 274, in _handle_exception
    response = super(Http, cls)._handle_exception(exception)
  File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
    return request._handle_exception(exception)
  File "/opt/odoo/odoo/http.py", line 775, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo/http.py", line 834, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/odoo/http.py", line 334, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 330, in checked_call
    result.flatten()
  File "/opt/odoo/odoo/http.py", line 1277, in flatten
    self.response.append(self.render())
  File "/opt/odoo/odoo/http.py", line 1270, in render
    return env["ir.ui.view"].render_template(self.template, self.qcontext)
  File "/opt/odoo/addons/app_odoo_customize/models/ir_ui_view.py", line 18, in render_template
    return super(View, self).render_template(template, values=values, engine=engine)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1049, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/opt/odoo/addons/website/models/ir_ui_view.py", line 115, in render
    return super(View, self).render(values, engine=engine)
  File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 26, in render
    return super(IrUiView, self).render(values=values, engine=engine)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1069, in render
    return self.env[engine].render(self.id, qcontext)
  File "/opt/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 53, in render
    return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/opt/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 249, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/opt/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 318, in _compiled_fn
    raise e
QWebException: None
Traceback (most recent call last):
  File "/opt/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 342, in get_template
    document = options.get('load', self.load)(template, options)
  File "/opt/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 81, in load
    template = env['ir.ui.view'].read_template(name)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 944, in read_template
    return self._read_template(self.get_view_id(xml_id))
  File "<decorator-gen-9>", line 2, in _read_template
  File "/opt/odoo/odoo/tools/cache.py", line 87, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 935, in _read_template
    arch = self.browse(view_id).read_combined(['arch'])['arch']
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 674, in read_combined
    arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 623, in apply_view_inheritance
    source = self.apply_inheritance_specs(source, specs_tree, view_id)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 601, in apply_inheritance_specs
    self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)
  File "/opt/odoo/odoo/addons/base/ir/ir_ui_view.py", line 474, in raise_view_error
    raise ValueError(message)
ValueError: Element '<t name="Web layout" t-name="web.layout">' cannot be located in parent view

Error context:
View `Web layout`
[view_id: 165, xml_id: web.layout, model: n/a, parent_id: 166]

load could not load template
Template: web.layout



-1
形象
丢弃
Ermin Trevisan

Next time please use a meaningful title related to the content of your error message.

Sehrish

Try this: https://learnopenerp.blogspot.com/2020/08/t-call-web-website-login-layout-qwebexception-odoo.html

形象
Nikhil Krishnan
最佳答案

Dear Felix,

Please try to update the module web and website using the terminal.

python /opt/odoo/odoo-bin -d <database name> -u web -r <conf file>

If website is install:

python /opt/odoo/odoo-bin -d <database name> -u website -r <conf file>

regards

Nikhilkrishnan

1
形象
丢弃
形象
Felix
编写者 最佳答案

@Nikhilkrishnan thanks for your response. is -r (conf file) is this file:
/etc/odoo-server.conf

i put my line like this:

python /opt/odoo/odoo-bin -d Silor_Beta2 -u website -r /etc/odoo-server.conf

which: Silor_Beta2 is the database i want to update, and website is the module

I ran it, and heres the result:

Running as user 'root' is a security risk.
2019-02-07 19:41:02,967 5858 INFO ? odoo: Odoo version 10.0
2019-02-07 19:41:02,967 5858 INFO ? odoo: addons paths: ['/root/.local/share/Odoo/addons/10.0', u'/opt/odoo/odoo/add
ons', u'/opt/odoo/addons']
2019-02-07 19:41:02,968 5858 INFO ? odoo: database: /etc/odoo-server.conf@default:default
2019-02-07 19:41:02,969 5858 INFO ? odoo.sql_db: Connection to the database failed
Traceback (most recent call last):
  File "/opt/odoo/odoo-bin", line 9, in <module>
    odoo.cli.main()
  File "/opt/odoo/odoo/cli/command.py", line 64, in main
    o.run(args)File "/opt/odoo/odoo/cli/server.py", line 175, in run
    main(args)
  File "/opt/odoo/odoo/cli/server.py", line 140, in main
    odoo.service.db._create_empty_database(db_name)
  File "/opt/odoo/odoo/service/db.py", line 82, in _create_empty_database
    with closing(db.cursor()) as cr:
  File "/opt/odoo/odoo/sql_db.py", line 635, in cursor
    return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
  File "/opt/odoo/odoo/sql_db.py", line 177, in __init__
    self._cnx = pool.borrow(dsn)
  File "/opt/odoo/odoo/sql_db.py", line 518, in _locked
File "/opt/odoo/odoo/sql_db.py", line 586, in borrow
    **connection_info)
  File "/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL:  role "/etc/odoo-server.conf" does not exist


anything wrong with it?



0
形象
丢弃
Ermin Trevisan

Run the command as Odoo user.

Felix
编写者

Hi Ermin, i ran the command as Odoo user then in followed @Nikhil Krishnan solution, but still I couldnt login to the database. Is there any way that i can edit the Views (Web layout - web.layout) through command line (database)? Because before i edited Views from Technical (Login Layout - web.login_layout) i set its Inherited View with Web layout - web.layout.

Nikhil Krishnan

ok, you try to update the base module too.

Felix
编写者

Dear Nikhil,

I tried to update the web, website & base module, but still error. Is there any way to remove the inherited view i assigned in User Interface from Database? I assume that i assigned web.layout as inherited view in web.login_layout (as the error said above).

喜欢讨论吗?不要只阅读,加入进来!

立即创建账户,享受专属功能,与我们的精彩社区互动!

注册
相关帖文 回复 查看 活动
500 Internal error server on Odoo 11.0 (Versión Community) 已解决
500 internalerror 11
形象
形象
2
12月 19
5096
500: Internal Server Error
500
形象
形象
形象
形象
4
9月 24
2120
Internal Server Error 已解决
error 500 internalerror Internalservererror
形象
形象
1
9月 22
4436
admin login 500 Internal Server Error
admin 500 internalerror leaf
形象
形象
1
7月 20
4764
odoo 500 error connecting to postgresql server
500
形象
0
7月 20
5355
社区
  • 教学视频
  • 文档
  • 论坛
开源
  • 下载
  • Github
  • Runbot
  • 翻译
服务
  • Odoo.sh 托管
  • 支持
  • 升级
  • 自定义开发服务
  • 教育
  • 查找会计服务
  • 寻找合作伙伴
  • 成为合作伙伴
关于我们
  • 我们的公司
  • 品牌资产
  • 联系我们
  • 招聘
  • 近期活动
  • 播客
  • 博客
  • 客户
  • 法律 • 隐私
  • 安全
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo致力于为企业管理提供高效智能的开源解决方案,是全球业内高速成长的软件服务商之一,逾七百五十万用户选择Odoo进行数字化升级。通过一系列全业务链覆盖、高度集成、简单易用的商业应用,助力企业实现信息化改革、降本增效并释放公司增长潜力。

Odoo独特的价值在于是一款非常容易使用又完全集成的应用。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now