コンテンツへスキップ
Odoo メニュー
  • サインイン
  • 無料で15日試す
  • アプリ
    財務
    • 会計
    • 請求
    • 経費
    • スプレッドシート(BI)
    • ドキュメント管理
    • 署名
    販売
    • CRM
    • 販売
    • POS店舗
    • POSレストラン
    • サブスクリプション
    • レンタル
    ウェブサイト
    • ウェブサイトビルダー
    • eコマース
    • ブログ
    • フォーラム
    • ライブチャット
    • eラーニング
    サプライチェーン
    • 在庫
    • 製造
    • 製品ライフサイクル管理 (PLM)
    • 購買
    • 整備
    • 品質
    人事業務
    • 従業員管理
    • 採用
    • 休暇管理
    • 人事評価
    • リファラル
    • フリート
    マーケティング
    • ソーシャルマーケティング
    • メールマーケティング
    • SMSマーケティング
    • イベント
    • マーケティングオートメーション
    • アンケート調査
    サービス
    • プロジェクト管理
    • タイムシート
    • フィールドサービス
    • ヘルプデスク
    • 計画
    • アポイントメント
    生産性向上ツール
    • ディスカッション
    • 承認
    • IoT
    • VoIP
    • ナレッジ
    • WhatsApp
    サードパーティアプリ Odooスタジオ Odooクラウドプラットホーム
  • インダストリー(業種別ソリューション)
    小売
    • 書店
    • アパレルショップ
    • 家具専門店
    • 食料品店
    • 金物店
    • 玩具店
    飲食・ホスピタリティ業界
    • バー・パブ
    • レストラン
    • ファストフード
    • ゲストハウス
    • 飲料販売代理店
    • ホテル
    不動産
    • 不動産会社
    • 建築事務所
    • 建設
    • 不動産管理
    • 造園
    • 住宅所有者組合
    コンサルティング
    • 会計事務所
    • Odooパートナー
    • マーケティングエージェンシー
    • 法律事務所
    • 人材派遣
    • 監査・認証
    製造
    • テキスタイル
    • 金属
    • 家具
    • 飲食
    • 醸造所
    • コーポレートギフト
    ヘルス & フィットネス
    • スポーツクラブ
    • 眼鏡店
    • フィットネスセンター
    • ウェルネス専門家
    • 薬局
    • ヘアサロン
    業種
    • 便利屋
    • 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:

  • CRM
  • 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 返信
2636 ビュー
アバター
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
5420
V18 migration in odoo.sh
migration odoo.sh
アバター
アバター
1
1月 25
2083
migration from odoo16 to 17
migration odoo17 odoo16
アバター
アバター
1
11月 25
1997
Migrating web_gantt from 17 to 18 to use it in hr_work_entry_contract_entreprise
view odoo18 odoo17
アバター
0
11月 24
2238
Migration odoo 16 enterprise to 17
migration odoo17 odoo16
アバター
アバター
1
11月 24
2987
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • 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(オドゥー)は、CRM、eコマース、会計、在庫管理、POS、プロジェクト管理など、企業のさまざまな業務を一つのシステムで管理できる、ベルギー発のオープンソースのERPソフトウェアです。

高機能で使いやすく、完全に統合されたERPとして、ユニークな価値を提供しています。

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