Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Field Labels of a newly installed module not displayed

Subscribe

Get notified when there's activity on this post

This question has been flagged
moduledisplayformviewfieldlabeldeveloped
2 Replies
7045 Views
Avatar
sneha antony

I created a module named student_info in my openerp 7 and the it has been installed successfully and is working fine now.The only issue is the field labels in the formview of the module is not displayed.What might be the reason for this.I searched for a long but the solution is not yet available.The module files are

_init_.py import student_info

_openerp_.py { 'name':'Student Information', 'version':'7.0', 'author':'Sneha Elizabeth Antony', 'depends':['base'], 'Category':'General', 'description':'This module contains the information about the students ie name,age,gender etc', 'init_xml':[], 'update_xml':['student_info_view.xml'], 'demo_xml':[], 'active':'False', 'installable':'True', 'Certificate':'' }

student_info.py from openerp.osv import osv, fields

class student_student(osv.osv):

_name = 'student.student'

_columns = {
'name':fields.char('Student Name',size=16,required = True,translate = True),
'age':fields.integer('Age',required = True),
'percent':fields.float('Percentage',help = 'This field will add average marks of students out of 100'),
'gender':fields.selection([('male','Male'),('female','Female')],'Gender'),
'active':fields.boolean('Active'),
'notes':fields.text('Details'),

}

_defaults = { 'name':'Atul',
      'active':True,

} student_student()

student_info_view.xml <openerp> <data>

<record model="ir.ui.view" id="student_search" >="" <field="" name="name">student.search</field> <field name="model">student.student</field> <field name="type">search</field> <field name="arch" type="xml"> <search string="student information search"> <field name="name" string="Student Name"/> <field name="gender" string="Gender"/>
<field name="age" string="Age"/> </search> </field> </record>

<record id="student_student_tree" model="ir.ui.view"> <field name="name">student.result.tree</field> <field name="model">student.student</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Student_result">
<field name="name"/>
<field name="age"/> <field name="percent"/> <field name="gender"/>
<field name="active"/> </tree> </field> </record>

<record id="student_student_form" model="ir.ui.view"> <field name="name">student.result.form</field> <field name="model">student.student</field> <field name="arch" type="xml"> <form string="Student_result" version="7.0">
<field name="name"/>
<field name="age"/> <field name="percent"/> <field name="gender"/>
<field name="active"/> <field name="notes"/> </form> </field> </record>

<record id="action_student_student" model="ir.actions.act_window"> <field name="name">Student Information</field> <field name="res_model">student.student</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record>

<menuitem id="student_parent" name="student"/> <menuitem id="menu_student_parent" name="Student Management" parent="student_parent"></menuitem> <menuitem action="action_student_student" id="menu_student_student" parent="menu_student_parent" string="Result"/> </data> </openerp>

1
Avatar
Discard
Avatar
Sudhir Arya (ERP Harbor Consulting Services)
Best Answer

Hi Sneha,

In your xml you have given version="7.0" attribute in form tab. So you have to put fields in group after that you will be able to see field's label in form view.

<group>
    <group>
        #Define your fields
    </group>
<group>

If you remove version="7.0" then group is not required.

After changing the xml you have to update your module.

Hope this will help you.

1
Avatar
Discard
sneha antony
Author

Thanks Sudir..It worked perfectly

sneha antony
Author

have another issue .I want to add a grid view in the 'Create' form view having columns containing date fields and status with 'Add New Item' option.What all changes should I make in the code?

Avatar
Jagdish Panchal
Best Answer

Hi Try this code:
<record id="student_student_form" model="ir.ui.view"> <field name="name">student.result.form</field> <field name="model">student.student</field> <field name="arch" type="xml"> <form string="Student_result" version="7.0"> <sheet> <group> <field name="name"/> <field name="age"/> <field name="percent"/> <field name="gender"/> <field name="active"/> <field name="notes"/> </group> </sheet> </form> </field> </record> Thanks

0
Avatar
Discard
sneha antony
Author

Thanks for the code.It worked

sneha antony
Author

have another issue .I want to add a grid view in the 'Create' form view having columns containing date fields and status with 'Add New Item' option.What all changes should I make in the code?

Jagdish Panchal

You need to add one2many relation with your cutome object.

sneha antony
Author

how to add object relation and relation id in a one2many type?if my model is student.student how to find the object relation and relation id for the model

Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
how to display one2many field on form view, as list of form views, not tree view.
one2many display formview odoo16features
Avatar
Avatar
Avatar
2
Jun 23
9069
Passing context to a tree view field inside a form view Solved
development views module treeview formview
Avatar
Avatar
Avatar
3
Mar 24
18880
V17 Tree, Form view Solved
formview
Avatar
1
Mar 25
3033
Error when importing module Product Bidding In ECommerce in odoo 17
module
Avatar
Avatar
1
Jul 24
2740
Missing required value for the field 'Model' (model_id)
module
Avatar
Avatar
1
Jan 24
6879
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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