Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1695 มุมมอง

we implement a free Odoo 15 app two year ago. now user demand to upgrade to Odoo 16, we copied the app folder, restart Odoo server, trying to Upgrade the app but it is showing error (below is screenshot for both the Code and Error :


please help to resolve this problem.


regards


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,
The error says that the node that you have used in the xpath, ie, class product price does not exist in the original view.

So you have to change the xpath expression to look at a valid node from the inheriting view.

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

thank you @Niyas Raphy for reply and guidance. will check this.

regards

ผู้เขียน

as per my understanding the code is referring / inheriting the file website_sale/views/templates.xml OR i its not?

in file above, the 'class' product_price is exist but with some differences

ver 15:

<template id="product_price">
<div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price d-inline-block mt-2 mb-3">
<h3 class="css_editable_mode_hidden">

ver 16:

<template id="product_price">
<div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price mt-2 mb-3 {{'d-none' if combination_info['prevent_zero_price_sale'] else 'd-inline-block'}}">
<h3 class="css_editable_mode_hidden">

both contains the class "product_price" in <div

regards

คำตอบที่ดีที่สุด

Hi,

While you migrating from odoo 15 to odoo 16 check the path you provided is correct in the provided module. Because the path may be changed in the version 16 Odoo 


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ต.ค. 23
5296
1
ก.ย. 15
4726
How to use <span t-esc=""> into xpath? แก้ไขแล้ว
2
มี.ค. 21
8451
Change existing xpath expression in Odoo แก้ไขแล้ว
1
พ.ย. 18
8875
5
เม.ย. 16
6350