Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Error when installing Ecommerce Catalog without Price module

Naroči se

Get notified when there's activity on this post

This question has been flagged
2 Odgovori
3603 Prikazi
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
Opusti
Marcio Valenzuela
Avtor

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
Opusti
Marcio Valenzuela
Avtor

Yes, ive posted images.

Marcio Valenzuela
Avtor

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

Marcio Valenzuela
Avtor

yup, its there...i posted the image

Marcio Valenzuela
Avtor

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
Avtor

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
Avtor

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
Avtor

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!

Prijavi
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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