Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Cant find Field name of a page tab in developer mode.

Odoberať

Get notified when there's activity on this post

This question has been flagged
2 Replies
3191 Zobrazenia
Avatar
Hugo Perez

Hello everyone Im working in Odoo 14 while taking and adapting to the new version an Odoo development course for Odoo 9.

At the moment im stuck at finding the field name of the Sales Tab inside Sales>Products>Products form view. ( I want to add a new Tab after it). Developer mode doesnt show me a name since it only show me fields but not the page tabs info.

Here is my 2 ways of trying this and both ways mark an error of not finding the element or tell me I cant use string as selector.

TLDR: I can't find the name of Sales>Products>Products form view "Sales" Tab since developer mode only shows fields.

Edit: Code was not visible and format.

--------------------Option 1------------------------------

Code:


               
               

Error:

Element '' cannot be located in parent view

View name: product.template tree
Error context:
 view: ir.ui.view(923,)
 xmlid: dietfacts_product_template_tree_view
 view.model: product.template
 view.parent: ir.ui.view(466,)
 file: /home/perezalvarezhi/odoo-14.0/customaddons/dietfacts/views/dietfacts_view.xml


--------------------Option 2------------------------------

Code:


               
               

                       

Note: I used @string and @name with lower and upper case and all failed.

Error:

View inheritance may not use attribute 'string' as a selector.

View name: product.template tree
Error context:
 view: ir.ui.view(923,)
 xmlid: dietfacts_product_template_tree_view
 view.model: product.template
 view.parent: ir.ui.view(466,)
 file: /home/perezalvarezhi/odoo-14.0/customaddons/dietfacts/views/dietfacts_view.xml
0
Avatar
Zrušiť
Hugo Perez
Autor

Hi Niyas thank you for your answer! It looks like my code always end up not showing but that is what I was doing I just had the name wrong, it was indeed sales but with lower case thank you!

Also my question is more regarding on ways to easily get the name of a page tab and not having to ask in a forum every time.  For example on fields I can just hover over the label of the field and in developer mode it tells me all about that field from ID, name, model etc. This doesn't happen to elements of a page and I cant find a way to find its name for sure. 

Using string sounded like a good idea but found out that you are right, it doesn't work anymore.


Thank you for the tutorials I have seen this channel before but at the moment the tutorials from Udemy Im taking have given me more tools to actually do exactly what I want to do, the fact it is Odoo 9 is not a problem.




Ermin Trevisan

You can simply look at the XML code of the original QWeb view, you want to inherit from. This way you don't need to ask the forum :-)

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

The name of the page Sales in the product form view is sales, so you can use this name inside the xpath, not sure whether you already tried this or not. If not, try with page[@name="sales"] and see whether it works.


In addition in latest versions we cannot use the string as selector in the xpath.

Also if you are looking for development tutorials, have a look at this: https://www.youtube.com/watch?v=I8FNdellz3Y&list=PLqRRLx0cl0homY1elJbSoWfeQbRKJ-oPO&index=2

Thanks

0
Avatar
Zrušiť
Avatar
Hugo Perez
Autor Best Answer

Hi Ermin thx for your answer this is what I ended up doing, it took me some time since this form is used in many view files inherited but finally found the base one in addons>product>views>product_views. 
Tried to get it from the GUI on the developer menu and edit form view but this didn't work since it was showing me an inherited view which didn't include the I was looking for.

I was hopping there was a faster way like just hoovering over the element like any other field, at the end if that is the way it is I now know how to.


Thank you all for your help.

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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