Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Field label not displayed

Odebírat

Get notified when there's activity on this post

This question has been flagged
fielddisplaylabelnot
3 Odpovědi
56182 Zobrazení
Avatar
omprakash

Hai Friends ,

Having doubt while creating custom module in OpenERP v7 . The field label not displayed after module install . These are my custom code ..

  1. __init__.py import notebook

2.__openerp__.py { "name" : "notebook", "version" : "0.1", "author" : "prakash", "website" : "http://www.test.com/", "category" : "Generic Modules/Others", "depends" : ["base"], "description" : "Simple demo module", "init_xml" : ["notebook_view.xml"], "demo_xml" : [], "update_xml" : [], "active": False, "installable": True }

3.notebook.py

from osv import fields, osv import time

class notebook(osv.osv): _name = "notebook" _description = "Simple Notebook" _columns = { 'title' : fields.char('Title', size=30, required=True), 'note' : fields.text('Note'), 'note_date' : fields.date('Date'), }

notebook()

  1. notebook_view.xml

    <openerp> <data> <record model="ir.ui.view" id="notebook_tree_view"> <field name="name">notebook.tree</field> <field name="model">notebook</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Notebook"> <field name="title"/> <field name="note"/> <field name="note_date"/> </tree> </field> </record>

    <record model="ir.ui.view" id="notebook_form_view">
        <field name="name">notebook.form</field>
        <field name="model">notebook</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Notebook" version = "v7">
            <sheet>
                <field name="title"/>
                <field name="note"/>
                <field name="note_date"/>
                </sheet>
            </form>
        </field>
    </record>
    
    <record model="ir.actions.act_window" id="action_notebook_form">
        <field name="name">notebook</field>
        <field name="res_model">notebook</field>
    </record>
    
    <menuitem name="Notebook" icon="terp-project" id="notebook_menu"/>
    <menuitem id="notebook1_menu" name="Notebook1" parent="notebook_menu" />
    <menuitem name="Notes" parent="notebook1_menu" id="notebook_menu_mainform" action="action_notebook_form"/>
    

    </data> </openerp>

AFTER INSTALLATION COMPLETE : MODULE LIKE

http://s1309.photobucket.com/user/omprakashzeabalane/media/image_zps60b15f73.jpg.html

Is there any wrong ? Please clarify my doubt .

Thanks & Regards

OMPRAKASH.A

4
Avatar
Zrušit
Avatar
Anabela Damas
Nejlepší odpověď

Hi,

I don't know much but I've noticed that if I add a field without being inside a group the label isn't displayed, so I do like this if I don't mind to grouping the fields:

 <record model="ir.ui.view" id="notebook_form_view">
    <field name="name">notebook.form</field>
    <field name="model">notebook</field>
    <field name="type">form</field>
    <field name="arch" type="xml">
        <form string="Notebook" version = "v7">
        <sheet>
          <group>
            <field name="title"/>
            <field name="note"/>
            <field name="note_date"/>
         </group>
        </sheet>
        </form>
    </field>
</record>

or if I don't want the fields in a group I do like this:

 <record model="ir.ui.view" id="notebook_form_view">
    <field name="name">notebook.form</field>
    <field name="model">notebook</field>
    <field name="type">form</field>
    <field name="arch" type="xml">
        <form string="Notebook" version = "v7">
        <sheet>
            <label for="title" string="what you want to appear for title"/>
            <field name="title"/>
            <label for="note" string="what you want to appear for note"/>
            <field name="note"/>
            <label for="note_date" string="what you want to appear for note_date"/>
            <field name="note_date"/>
         </group>
        </sheet>
        </form>
    </field>
</record>

Hope this helps you =)

25
Avatar
Zrušit
omprakash
Autor

Hi Anabela Damas , Thanks for your immediate reply . Its working for me .

Andreas Maertens

You should remove the <field name="type"> tag. That is depricated.

Anabela Damas

You're welcome! If it works can you please accept the answer like a correct answer =)

omprakash
Autor

Hi Andreas Maertens , Thanks for reply .

Masood Zarei

Great, it is still the best solution.

Avatar
testopenerp
Nejlepší odpověď

Thanks for your answer Andreas Maertens. It is working.

0
Avatar
Zrušit
sneha antony

i tried all the above said things. Tried Anabela Damas's code(Both the codes),removed the <field name="type"> tag and deleted the "version" tag in the form field.But still the field labels are not displaying

Avatar
Yao
Nejlepší odpověď

I experienced the same issue. After deleting the "version" tag in the form field, the label is displayed as it should be.

<form string="Notebook" *version="v7*">

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

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
edit the label name of "Internal Reference" Product
form field label
Avatar
Avatar
Avatar
2
lis 18
5871
how to create dynamic field labels? Vyřešeno
field v7 label
Avatar
Avatar
Avatar
2
pro 23
21186
Odoo 16 - Standard Kanban view: description beside value
field label kanban description string
Avatar
Avatar
Avatar
2
srp 24
4653
How to display sample value in a field
field display value sample example
Avatar
0
bře 15
6114
Project module or fields
field
Avatar
0
úno 25
2134
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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