Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Error when installing Ecommerce Catalog without Price module

Subscribe

Get notified when there's activity on this post

This question has been flagged
2 Replies
3589 Views
Avatar
Marcio Valenzuela

I have Odoo v9 installed in CentOS7 on a remote server.  I copied the Ecommerce Catalog without price module folder to the addons folder, activated developer mode, updated module list, clicked on install that module.  I get this error posted below and if I come back to the apps that module shows up as "Installing".

Error details:Element '<xpath expr="//del[@class='text-danger mr8']">' cannot be located in parent view


Error context:View `Suggested Products Without Catalog Price`[view_id: 924, xml_id: n/a, model: n/a, parent_id: 894]None" while parsing None:23, near<data inherit_id="website_sale.cart_lines" name="Suggested Products Without Catalog Price"> <xpath expr="//del[@class='text-danger mr8']" position="replace"> <field name="text-danger" invisible="1" nolabel="1"/> </xpath> </data> 
Here is the code for the xml view being installed:
<?xml version="1.0" encoding="UTF-8"?><openerp> <data>
        <template id="products_item" inherit_id="website_sale.products_item" name="Shop Without Catalog Price"> <xpath expr="//del[@class='text-danger mr8']" position="replace"> <field name="text-danger" invisible="1" nolabel="1"/> </xpath> </template>
        <template id="cart" inherit_id="website_sale.cart_lines" name="Shopping Cart Without Catalog Price"> <xpath expr="//del[@t-field='line.product_id.lst_price']" position="replace"> <field name="text-danger" invisible="1" nolabel="1"/> </xpath> </template>
        <template id="product_price" inherit_id="website_sale.product_price" name="Product Page Without Catalog Price"> <xpath expr="//span[@class='text-danger oe_default_price']" position="replace"> <field name="text-danger oe_default_price" invisible="1" nolabel="1"/> </xpath> </template>
        <template id="suggested_products_list" inherit_id="website_sale.cart_lines" name="Suggested Products Without Catalog Price"> <xpath expr="//del[@class='text-danger mr8']" position="replace"> <field name="text-danger" invisible="1" nolabel="1"/> </xpath> </template>

      <template id="modal_cart" inherit_id="website_sale_options.modal" name="Modal Cart Without Catalog Price"> <xpath expr="//span[@t-attf-class='text-danger oe_default_price']" position="replace"> <field name="text_danger oe_default_price" invisible="1" nolabel="1"/> </xpath> <xpath expr="//span[@class='text-danger oe_optional']" position="replace"> <field name="text-danger oe_optional" invisible="1" nolabel="1"/> </xpath> </template> </data></openerp>


Here is the if-statement:

0
Avatar
Discard
Marcio Valenzuela
Author

I got this response in SO but I need help fixing the issue. Anyone: http://stackoverflow.com/questions/41988767/parent-view-error-when-installing-ecommerce-without-price-odoo-module/41998707#41998707

Avatar
Ermin Trevisan
Best Answer

Did you install https://apps.openerp.com/apps/modules/9.0/website_sale_options/ before?

Please check the dependencies in the __openerp__.py file:

{
 'name': 'eCommerce Without Catalog Price',
 'version': '9.0.1.1',
 'depends': [ 'website_sale', 'website_sale_options',],
 'author': 'Roberto Barreiro',
 'website': 'https://bitbucket.org/disgalmilladoiro/',
 'summary': 'Hides catalog price',
 "description": """ Hides catalog price on shop and shopping cart.
""",
 'category': 'eCommerce',
 'sequence': 10,
 'data': [ 'views/website_sale_hide_catalog_price.xml',],
 'installable': True,
 'auto_install': False,
 'application': False,
}

Do you see the inherited view website_sale.suggested_products_list here:

Then you should check the t-if statement here:


0
Avatar
Discard
Marcio Valenzuela
Author

Yes, ive posted images.

Marcio Valenzuela
Author

Yes I also posted the image for the Views/ShoppingCart and the website_sale.suggested_products_list does show up

Marcio Valenzuela
Author

yup, its there...i posted the image

Marcio Valenzuela
Author

Hello? :-)

Ermin Trevisan

Now you are on your own. Your error message tells you that the xpath node "//del[@class='text-danger mr8']" is not present. After all other checks, the only possible reason is the evaluation of this t-if statement. If it is not true, the xpath node will not be there.

Marcio Valenzuela
Author

Ok just to clarify, the problem is with this if statement which is evaluating to false. And that means that product_lst.price-product.price > 0.1?

Ermin Trevisan

compute_currency(product.lst_price) to be exactly. This is my assumption based on your information.

Marcio Valenzuela
Author

Well all my products have a default price of 1 which is what the system assigns. I did create pricelist based on cost & markup because I need to know what the prices are for the products I sell. I just dont want the website to display them because the prices change constantly.

Marcio Valenzuela
Author

Ok Im looking through the database but cannot find any table called product.lst_price. Presumably the website_sale table would contain it but I cant find the website_sale table either.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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