Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Bricoleur
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
2 Réponses
3204 Vues
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
Ignorer
Hugo Perez
Auteur

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)
Meilleure réponse

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
Ignorer
Avatar
Hugo Perez
Auteur Meilleure réponse

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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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