Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Sociale media-marketing
    • E-mailmarketing
    • Sms-marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

My Custom FORM View shows all fields without labels. What am I missing?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
formviewOdoo9
1 Beantwoorden
8021 Weergaven
Avatar
Paulo Matos

Dear all,

I found a problem on Odoo 9 and I am unable to solve it.

I am using Odoo 9 because really need this API version for solving a request I have.

I have recreated the problem with a simple module in order to see if you can help me solve it.

The problem is related to a form view I wish to create.

Everything is ok with the form and the problem is that the field labels are missing as per the below image.


The code I have used for this form is:

1. The module .py:

from openerp import models
from openerp.osv import fields
class vetclicnic_animal(models.Model):
    _name='vetclinic.animal'
    _columns = {
        'name' : fields.char('Name', size=64, required=True),
        'birthdate' : fields.date('Birth Date'),
        'classification_id' : fields.many2one('vetclinic.classification','Classification'),
        'breed_id' : fields.many2one('vetclinic.breed','Breed'),
        'labels_ids' : fields.many2many('vetclinic.labels','rel_animal_labels','animal_id','labels_id',string='Tags'),
        'history' : fields.text('History'),
    }

2. The module .xml (for the form view)

<record id="vetclinic_animal_form_view" model="ir.ui.view">
        <field name="name">vetclinic.animal.form.view</field>
        <field name="model">vetclinic.animal</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <sheet>
            <form string="Animal">
                <field name="name"/>
                <field name="birthdate"/>
                <field name="breed_id"/>
                <field name="classification_id"/>
                <field name="labels_ids" widget="many2many_tags"/>
                <field name="history"/>
            </form>
            </sheet>
        </field>
    </record>


When I create the "action" for the menu on the xml file, I can see the field labels but the field order is not the desired one and for this reason I need to define  form view.

Can anyone help me locate the problem on this form view?

Thank you very much

Regards

Paulo





0
Avatar
Annuleer
Sehrish

Odoo Form and Tree Views: http://learnopenerp.blogspot.com/2016/09/how-to-create-form-and-tree-view-in-odoo.html

Avatar
faOtools
Beste antwoord

Hi,

wrap your fields in <group> tag. Besides, sheet should be within form. So, something like:

<form string="Animal">
    <sheet>
        <group>
            <field name="name"/>
            <field name="birthdate"/>
            <field name="breed_id"/>
            <field name="classification_id"/>
            <field name="labels_ids" widget="many2many_tags"/>
            <field name="history"/>
        </group>
    </sheet>
</form>

            

6
Avatar
Annuleer
Paulo Matos
Auteur

Thank you very much!

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
V17 Tree, Form view Opgelost
formview
Avatar
1
mrt. 25
3048
How to insert more than 4 column in a form view? Opgelost
formview
Avatar
Avatar
Avatar
3
feb. 21
28203
Job Work Process
Odoo9
Avatar
0
dec. 20
3888
"You can not validate a non balanced entry !" on validating invoice
Odoo9
Avatar
0
mei 19
3360
How can I apply data = noupdate in csv data files?
Odoo9
Avatar
Avatar
Avatar
3
apr. 18
8832
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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