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
    • Artificial Intelligence
    • 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 IndustriesInauguration Odoo Lyon
  • 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

Product Code in Product Creation

Subscribe

Get notified when there's activity on this post

This question has been flagged
8612 Views
Avatar
Sansal Birbas

Hi Friends

I want to have a product code component in addition to default components on the interface of product creation view. For this purpose, first i created a field `x_product_code` both in product.template and in product.product. Then i tried to add this field to the view `product.template.common.form`. But I did not achieve my goal. I also want this `product code` option to appear in sales order creation view.

Could you help me with this please?

0
Avatar
Discard
Ivan

It would help if you can clarify what do you mean by "But I did not achieve my goal." How does it now achieve your goal, are there any error? Also, I doubt that "product.template.common.form" view is used anywhere. Also, you need to clarify where you want "this `product code` option to appear in sales order creation view". Assuming that you want it to appear in the sale.order.line (which is the only option I can think of), you need to define a related field in the sale.order.line, change related the view to display that field, implement on_change mechanism on product_id field of sale.order.line if you want the field to change value as product_id is changed. If you don't implement the on_change mechanism, the value will be correct after it is saved.

Odoobot


Well, Mr.Doe. You are right about making it clear. I want to have another field when i want to create a product. I mean, when i go to products page in sales module and click "create" on that page, there comes a product creation interface. Normally there we can find product name, can be sold, can be expensed, etc options. I want to add a new component to that interface. It will be used to enter product code information. When i go to devrloper mode and when i click the manage views i see several views related to that interface. I discovered product.template.common.form contains the default components. Then first by creating a product code field, i wanted to add that field to that view. But i could not manage to add it to the interface the way i wanted. Maybe it would be better to put it just below the product name component. Also, i want to see this new product code field to be appeared in sale.order.line just the way you mentioned. So i can add a product by its product code . Thanks


1 Ara 2014 Pts 07:31 tarihinde John Doe <niecw@mail.odoo.com> şunu yazdı:

It would help if you can clarify what do you mean by "But I did not achieve my goal." How does it now achieve your goal, are there any error? Also, I doubt that "product.template.common.form" view is used anywhere. Also, you need to clarify where you want "this `product code` option to appear in sales order creation view". Assuming that you want it to appear in the sale.order.line (which is the only option I can think of), you need to define a related field in the sale.order.line, change related the view to display that field, implement on_change mechanism on product_id field of sale.order.line if you want the field to change value as product_id is changed. If you don't implement the on_change mechanism, the value will be correct after it is saved.

--
John Doe
Sent by Odoo Inc. using Odoo about Forum Post Product Code in Product Creation
Odoobot


Well, Mr.Doe. You are right about making it clear. I want to have another field when i want to create a product. I mean, when i go to products page in sales module and click "create" on that page, there comes a product creation interface. Normally there we can find product name, can be sold, can be expensed, etc options. I want to add a new component to that interface. It will be used to enter product code information. When i go to devrloper mode and when i click the manage views i see several views related to that interface. I discovered product.template.common.form contains the default components. Then first by creating a product code field, i wanted to add that field to that view. But i could not manage to add it to the interface the way i wanted. Maybe it would be better to put it just below the product name component. Also, i want to see this new product code field to be appeared in sale.order.line just the way you mentioned. So i can add a product by its product code . Thanks


1 Ara 2014 Pts 08:49 tarihinde fourgaver6513 <fourgaver6513@rhyta.com> şunu yazdı:

A new answer for Product Code in Product Creation has been posted. Click here to access the post.

--
fourgaver6513
Sent by Odoo S.A. using Odoo about Forum Post Product Code in Product Creation
Odoobot


Well, Mr.Doe. You are right about making it clear. I want to have another field when i want to create a product. I mean, when i go to products page in sales module and click "create" on that page, there comes a product creation interface. Normally there we can find product name, can be sold, can be expensed, etc options. I want to add a new component to that interface. It will be used to enter product code information. When i go to devrloper mode and when i click the manage views i see several views related to that interface. I discovered product.template.common.form contains the default components. Then first by creating a product code field, i wanted to add that field to that view. But i could not manage to add it to the interface the way i wanted. Maybe it would be better to put it just below the product name component. Also, i want to see this new product code field to be appeared in sale.order.line just the way you mentioned. So i can add a product by its product code . Thanks


1 Ara 2014 Pts 08:50 tarihinde tengifiricent1937 <tengifiricent1937@gustr.com> şunu yazdı:

A new answer for Product Code in Product Creation has been posted. Click here to access the post.

--
tengifiricent1937
Sent by Odoo S.A. using Odoo about Forum Post Product Code in Product Creation
Ivan

If you go to Sales >> Products >> Products menu and open one of the product in form view, activate developer mode, and select Edit Form View from the developer mode's drop down, you'll see that the form used is product.product_normal_form_view. Maybe you can try inheriting that form first?

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