跳至內容
Odoo 選單
  • 登入
  • 免費試用
  • 應用程式
    財政
    • 會計
    • 發票
    • 開支報銷
    • 試算表 (BI)
    • 文件管理
    • 電子簽名
    銷售
    • 客戶關係
    • 銷售
    • POS 銷售點管理 - 零售
    • POS 銷售點管理 - 餐廳
    • 訂閱
    • 租賃
    網站
    • 網站製作
    • 電子商務
    • 網誌
    • 討論區
    • 線上客服
    • 網上學習
    供應鏈
    • 庫存
    • 製造管理
    • 產品生命周期
    • 採購
    • 保養維護
    • 品質管理
    人力資源
    • 員工管理
    • 招聘
    • 休假
    • 工作表現評核
    • 內部推薦
    • 車隊管理
    市場推廣
    • 社交媒體推廣
    • 電郵推廣
    • 短訊營銷
    • 活動
    • 自動化推廣
    • 網上調查
    服務
    • 專案管理
    • 工時管理
    • 外勤服務管理
    • 技術支援
    • 工作規劃
    • 預約管理
    生產力
    • 聊天
    • 批核
    • 物聯網
    • VoIP
    • 知識庫
    • WhatsApp
    第三方應用程式 Odoo Studio Odoo 雲端平台
  • 行業
    零售
    • 書店
    • 服裝店
    • 家具店
    • 食品雜貨店
    • 五金店
    • 玩具店
    餐飲及款待
    • 酒吧及酒館
    • 餐廳
    • 快餐
    • 賓館
    • 飲品分銷商
    • 酒店
    房地產
    • 地產代理公司
    • 建築師事務所
    • 建造業
    • 物業管理
    • 園藝
    • 業主聯會
    顧問服務
    • 會計公司
    • Odoo 合作夥伴
    • 市場推廣公司
    • 律師事務所
    • 人才招募
    • 審計及認證
    製造管理
    • 紡織
    • 金屬
    • 家具
    • 食品
    • 啤酒廠
    • 企業禮品
    保健與健身
    • 運動俱樂部
    • 眼鏡店
    • 健身中心
    • 健康從業人員
    • 藥房
    • 髮型屋
    技術行業
    • 雜工
    • IT 硬體與支援
    • 太陽能系統
    • 鞋匠
    • 清潔服務
    • 暖通空調服務
    其他
    • 非牟利組織
    • 環境保護機構
    • 廣告板租賃
    • 攝影服務
    • 自行車租賃
    • 軟體經銷商
    瀏覽所有行業
  • 社群
    學習
    • 教學影片
    • 使用說明
    • 認證
    • 培訓
    • 網誌
    • Podcast
    增強教學效能
    • 教育計劃
    • 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
關於此討論區
支援

Native Views Not Updating After Module Upgrade in Odoo 18 on Odoo SH

訂閱

此帖文有活動時,接收通知

此問題已被標幟
migrationodoo.shodoo18odoo17
2 回覆
2619 瀏覽次數
頭像
José Luis Hernández Ricardo

I'm migrating a database from Odoo 17 to Odoo 18 in an Odoo SH environment, and I’ve encountered an issue: native views are not updating when I upgrade the native modules.

When I check under Technical > Views, I still see the old view definitions, and this is causing conflicts with other modules that depend on the updated views.

Has anyone experienced this issue in Odoo 18?

Is there a change in how Odoo handles native view updates that I should be aware of?

Any help or guidance would be greatly appreciated!

0
頭像
捨棄
Ray Carnes (ray)

Please add details about which Views and if you are using the Upgrade Service.

José Luis Hernández Ricardo
作者

There are several views that have a problem. But the main ones that conflict with l10n_ec_edi_pos are account.report_invoice, although I've also had a problem with web.external_layout_standard

頭像
José Luis Hernández Ricardo
作者 最佳答案

This is the error:

2025-07-26 12:51:04,574 4 ERROR test-test18-22265445 odoo.http: Exception during request handling.

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/http.py", line 2533, in __call__

response = request._serve_db()

^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2060, in _serve_db

return self._transactioning(

^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2123, in _transactioning

return service_model.retrying(func, env=self.env)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/service/model.py", line 156, in retrying

result = func()

^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2090, in _serve_ir_http

response = self.dispatcher.dispatch(rule.endpoint, args)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2251, in dispatch

return self.request.registry['ir.http']._dispatch(endpoint)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 333, in _dispatch

result = endpoint(**request.params)

^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 754, in route_wrapper

result = endpoint(self, *args, **params_ok)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/mail/models/discuss/mail_guest.py", line 38, in wrapper

return func(self, *args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/mail/controllers/discuss/binary.py", line 68, in content_image

return super().content_image(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 754, in route_wrapper

result = endpoint(self, *args, **params_ok)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/web/controllers/binary.py", line 185, in content_image

stream = request.env['ir.binary']._get_image_stream_from(

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_binary.py", line 203, in _get_image_stream_from

stream = self._get_stream_from(

^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_binary.py", line 127, in _get_stream_from

stream = self._record_to_stream(record, field_name)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_binary.py", line 86, in _record_to_stream

return field_attachment._to_http_stream()

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_attachment.py", line 803, in _to_http_stream

stat = os.stat(stream.path)

^^^^^^^^^^^^^^^^^^^^

FileNotFoundError: [Errno 2] No such file or directory: '/home/odoo/data/filestore/test-test18-22265445/b1/b1da3700bf7a58ece71956b5f2d83c9d2aa1d231'

2025-07-26 12:51:06,761 4 ERROR test-test18-22265445 odoo.http: Exception during request handling.

Traceback (most recent call last):

File "<728>", line 107, in template_728

File "<728>", line 89, in template_728_content

File "<728>", line 77, in template_728_t_call_0

File "<6086>", line 5, in not_found_template

ValueError: El elemento "<xpath expr="//t[@t-set=&#39;layout_document_title&#39;]">" no se puede localizar en la vista principal


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/http.py", line 2533, in __call__

response = request._serve_db()

^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2060, in _serve_db

return self._transactioning(

^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2123, in _transactioning

return service_model.retrying(func, env=self.env)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/service/model.py", line 156, in retrying

result = func()

^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2090, in _serve_ir_http

response = self.dispatcher.dispatch(rule.endpoint, args)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 2338, in dispatch

result = self.request.registry['ir.http']._dispatch(endpoint)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 333, in _dispatch

result = endpoint(**request.params)

^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/http.py", line 754, in route_wrapper

result = endpoint(self, *args, **params_ok)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/web/controllers/dataset.py", line 36, in call_kw

return call_kw(request.env[model], method, args, kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/api.py", line 533, in call_kw

result = getattr(recs, name)(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/pos_sale/models/pos_order.py", line 51, in sync_from_ui

data = super().sync_from_ui(orders)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/enterprise/pos_preparation_display/models/pos_order.py", line 11, in sync_from_ui

data = super().sync_from_ui(orders)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_order.py", line 1050, in sync_from_ui

order_ids.append(self._process_order(order, False))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/pos_event/models/pos_order.py", line 45, in _process_order

res = super()._process_order(order, existing_order)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_order.py", line 119, in _process_order

return pos_order._process_saved_order(draft)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_order.py", line 157, in _process_saved_order

self._generate_pos_order_invoice()

File "/home/odoo/src/odoo/addons/point_of_sale/models/pos_order.py", line 974, in _generate_pos_order_invoice

new_move.with_context(skip_invoice_sync=True)._generate_and_send()

File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 5826, in _generate_and_send

wizard.action_send_and_print(allow_fallback_pdf=allow_fallback_pdf)

File "/home/odoo/src/odoo/addons/account/wizard/account_move_send_wizard.py", line 294, in action_send_and_print

attachments = self._generate_and_send_invoices(

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/account/models/account_move_send.py", line 716, in _generate_and_send_invoices

self._generate_invoice_documents(moves_data, allow_fallback_pdf=allow_fallback_pdf)

File "/home/odoo/src/odoo/addons/account/models/account_move_send.py", line 641, in _generate_invoice_documents

self._prepare_invoice_pdf_report(batch)

File "/home/odoo/src/odoo/addons/account/models/account_move_send.py", line 354, in _prepare_invoice_pdf_report

content, report_type = self.env['ir.actions.report'].with_company(company_id)._pre_render_qweb_pdf(pdf_report.report_name, res_ids=ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/enterprise/l10n_ec_edi/models/ir_actions_report.py", line 22, in _pre_render_qweb_pdf

return super()._pre_render_qweb_pdf(report_ref, res_ids=res_ids, data=data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/account/models/ir_actions_report.py", line 75, in _pre_render_qweb_pdf

return super()._pre_render_qweb_pdf(report_ref, res_ids=res_ids, data=data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 1006, in _pre_render_qweb_pdf

return self._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids), 'pdf'

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/sale_pdf_quote_builder/models/ir_actions_report.py", line 17, in _render_qweb_pdf_prepare_streams

result = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/enterprise/account_followup/models/ir_actions_report.py", line 12, in _render_qweb_pdf_prepare_streams

res = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/purchase/models/ir_actions_report.py", line 12, in _render_qweb_pdf_prepare_streams

collected_streams = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/account_edi_ubl_cii/models/ir_actions_report.py", line 11, in _render_qweb_pdf_prepare_streams

collected_streams = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/account_edi/models/ir_actions_report.py", line 14, in _render_qweb_pdf_prepare_streams

collected_streams = super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/account/models/ir_actions_report.py", line 22, in _render_qweb_pdf_prepare_streams

return super()._render_qweb_pdf_prepare_streams(report_ref, data, res_ids=res_ids)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 856, in _render_qweb_pdf_prepare_streams

html = self.with_context(**additional_context)._render_qweb_html(report_ref, all_res_ids_wo_stream, data=data)[0]

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/enterprise/web_studio/models/ir_actions_report.py", line 24, in _render_qweb_html

return super(IrActionsReport, self)._render_qweb_html(report_ref, docids, data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 1094, in _render_qweb_html

return self._render_template(report.report_name, data), 'html'

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 772, in _render_template

return view_obj._render_template(template, values).encode()

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/enterprise/web_studio/models/ir_ui_view.py", line 1332, in _render_template

return super(View, self)._render_template(template, values)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/addons/website/models/ir_ui_view.py", line 453, in _render_template

return super()._render_template(template, values=values)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 2199, in _render_template

return self.env['ir.qweb']._render(template, values)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/tools/profiler.py", line 313, in _tracked_method_render

return method_render(self, template, values, **options)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 606, in _render

result = ''.join(rendering)

^^^^^^^^^^^^^^^^^^

File "<729>", line 38, in template_729

File "<729>", line 27, in template_729_content

File "<728>", line 115, in template_728

odoo.addons.base.models.ir_qweb.QWebException: Error while render the template

ValueError: El elemento "<xpath expr="//t[@t-set=&#39;layout_document_title&#39;]">" no se puede localizar en la vista principal

Template: account.report_invoice

Path: /t/t/t/t[3]

Node: <t t-call="l10n_ec_edi.report_invoice_document" t-inner-content="True" t-options-lang="lang"/>


Solution

The problem was with some developments made in Odoo Studio.

0
頭像
捨棄
頭像
Christoph Farnleitner
最佳答案

Enable the Developer Mode (https://www.odoo.com/documentation/18.0/applications/general/developer_mode.html), then go to Settings -> Technical -> External Identifiers and search for the view in question. The view you are referring to most likely is having its Non Updatable flag set to true, thus the Upgrade of apps does not actually reset that view.

This is just an example:

0
頭像
捨棄
José Luis Hernández Ricardo
作者

Thanks for sharing.

I looked for views and they're unchecked, so that's not the problem.

喜歡這則討論?不要只閱讀,加入發表意見吧!

今天就建立帳戶,享受獨家功能,與我們精彩的社群互動!

註冊
相關帖文 回覆 瀏覽次數 活動
How did I migrate custom module from odoo 17 to odoo 18 to replace tree view to list view 已解決
migration odoo18
頭像
1
9月 25
5403
V18 migration in odoo.sh
migration odoo.sh
頭像
頭像
1
1月 25
2078
migration from odoo16 to 17
migration odoo17 odoo16
頭像
頭像
1
11月 25
1992
Migrating web_gantt from 17 to 18 to use it in hr_work_entry_contract_entreprise
view odoo18 odoo17
頭像
0
11月 24
2228
Migration odoo 16 enterprise to 17
migration odoo17 odoo16
頭像
頭像
1
11月 24
2975
社群
  • 教學影片
  • 使用說明
  • 討論區
開源
  • 下載
  • GitHub
  • Runbot 測試環境
  • 翻譯
服務
  • odoo.sh 網頁寄存
  • 支援
  • 升級
  • 自訂功能開發
  • 教育及培訓
  • 尋找會計服務
  • 尋找合作夥伴
  • 成為合作夥伴
關於我們
  • 關於 Odoo 公司
  • 品牌資產
  • 聯絡我們
  • 招聘
  • 活動
  • Podcast
  • 網誌
  • 客戶
  • 法律 • 私隱政策
  • 安全性
الْعَرَبيّة 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 是一套開放源碼的商業管理系統,涵蓋你公司全部的營運需要,包括客戶關係管理(CRM)、電子商務、會計、庫存管理、POS(銷售點管理)、專案管理等應用程式。

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