Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Field label not displayed

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
fielddisplaylabelnot
3 Respuestas
56183 Vistas
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
Descartar
Avatar
Anabela Damas
Mejor respuesta

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
Descartar
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
Mejor respuesta

Thanks for your answer Andreas Maertens. It is working.

0
Avatar
Descartar
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
Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
edit the label name of "Internal Reference" Product
form field label
Avatar
Avatar
Avatar
2
nov 18
5871
how to create dynamic field labels? Resuelto
field v7 label
Avatar
Avatar
Avatar
2
dic 23
21187
Odoo 16 - Standard Kanban view: description beside value
field label kanban description string
Avatar
Avatar
Avatar
2
ago 24
4653
How to display sample value in a field
field display value sample example
Avatar
0
mar 15
6114
Project module or fields
field
Avatar
0
feb 25
2134
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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