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
    • Property 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
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

How to create a drop down list field that allows user to "Create and Edit"

Subscribe

Get notified when there's activity on this post

This question has been flagged
many2one
2 Replies
5063 Views
Avatar
Ken Kasai

I created a custom model called "x_hr.accounttype" in settings > database > models. Then in the custom model, I created a field called "Account Type" (char size = 0). After that, in HR Employee, I created a many2one field called "Account Type" and object relation as "x_hr.accounttype". It works,

But when I create anything in "Create and Edit" field of the Account Type, the output is always "x_hr.accounttype,1" is there anyone can help?

 

0
Avatar
Discard
Avatar
Emipro Technologies Pvt. Ltd.
Best Answer

Hi,

You just need to define "name" field in your model. It will resolve your issue.

If you are creating new model using python code then you can give either one column with "name" or you need to set _rec_name = '<column>'.

I hope it will fix your issu.

1
Avatar
Discard
aci aisha

Can we take any other filed than 'name' directly using many2one relation..

Ivan

@Aci, not without coding. There are ways, but if you want to just create everything out of configuration, you have to have a field called 'name'.

Avatar
Ken Kasai
Author Best Answer

how to define the "name" field in the model? can you give me an example? thank you

0
Avatar
Discard
Emipro Technologies Pvt. Ltd.

Hi, You just need to make one more field with field name is "name". I think it is clear to you.

Odoo Support Team
Hi, thank you for your help. I added a field called "name" in the model. but the output of the drop downlist became "False". 

On Tue, Jan 20, 2015 at 2:02 PM, Emipro Technologies Pvt. Ltd. <erp@emiprotechnologies.com> wrote:

Hi, You just need to make one more field with field name is "name". I think it is clear to you.

Emipro Technologies is best in Odoo & eCommerce Application development based outsourcing software firm. We deliver any kind of complex solutions in the domain of Odoo and eCommerce to customers accross the globe. Being in IT business since 2011, We have a strong team of skilled experienced IT experts.Our customers are companies of all sizes ranging from startups to large enterprises who realize that they need a professional internet solution to generate revenue streams, establish communication channels or streamline business operations.

Our Services in Odoo includes,
  • Installation
  • Customization
  • Configuration
  • Software Training
  • After Sale Support
  • Maintenance
  • Consulting
Contact info@emiprotechnologies.com for any kind of queries in Odoo. Visit www.emiprotechnologies.com for more details.

Find us on Facebook : https://www.facebook.com/EmiproTechnologies



 

Sent by Odoo S.A. using Odoo about Forum Post How to create a drop down list field that allows user to "Create and Edit" (73550)



--
Regards,

Ken Kasai, Software Engineer
NABI Computer Systems
Tel     : 632-985-6755
Fax    : 632-854-2643
www.nabisystems.net
skype/ym id: kenkasai222
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
value not pass from many2one field to form
many2one
Avatar
Avatar
Avatar
Avatar
3
Sep 25
3002
Display values of dropdown in a many2one field Solved
many2one
Avatar
Avatar
2
Feb 25
7913
Set default value in object of many2one field Solved
many2one
Avatar
Avatar
1
Nov 22
17439
How to remove Create and Edit in many2one field.? Solved
many2one
Avatar
Avatar
Avatar
Avatar
3
Aug 22
15405
set value to field readonly from Many2one field
many2one
Avatar
Avatar
Avatar
2
Aug 22
5887
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 Svenska ภาษาไทย 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