Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

How to add new tab to module in Odoo 8?

Odoberať

Get notified when there's activity on this post

This question has been flagged
viewlayoutcustomizeproductsformviewtab
1 Odpoveď
8325 Zobrazenia
Avatar
Yenthe Van Ginneken (Mainframe Monkey)

Hey guys

I've been trying to add a new tab to the "Products" view under sales but I can't get any new tabs made.
Could anybody tell me how/where to do this please? I know there is an answer for V7 (https://www.odoo.com/forum/help-1/question/how-to-add-new-tab-to-module-19050) but there is no information about how to do it in V8.
You can see what I want here: http://imgur.com/M5khmn8


With kind regards
Yenthe

2
Avatar
Zrušiť
Stephen Mack

I look forward to reading it.  Thanks.

Yenthe Van Ginneken (Mainframe Monkey)
Autor

Stephen, I've written out the guide for V8 in the comment down here. This is currently for V8 but I will probably add one for V7 too. Hope this explains everything you need!

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Autor Best Answer

Found the solution myself.

Odoo V8:

1. Go to 'about Odoo'
2. Activate the developer mode.
3. Go to your view you want to edit, for example to sales > products and open up a product.
4. Open the debug view (top left) and click on edit FormView
5. Find the field 'inherited view' and open it.
6. Edit the code under the architecture tab in the new window.
6A. You should first add the fields you want to add to your view in your database. The model where you should insert this is in the 'Object' field, for example product.template. You can add fields to a model by going to settings > Database structure > models. Find the correct model there, make your new fields, give them the correct type and save them.
6B. Edit the code under the architecture tab and add the fields with the same name as you've named them in the database.
7. Save and refresh your page, you will now see your now tab with fields.

I've also made a guide about this in image form with even more information which can be found here: http://imgur.com/a/1C1gK
 

Odoo V7:
1. Go to 'about Odoo'
2. Activate the developer mode.
3. Go to your view you want to edit, for example to sales > products and open up a product.
4. Open the debug view (top left) and click on edit FormView
5. Edit the code under the architecture tab.
5A. You should first add the fields you want to add to your view in your database. The model where you should insert this is in the 'Object' field, for example product.product. You can add fields to a model by going to settings > Database structure > models. Find the correct model there, make your new fields, give them the correct type and save them.
5B. Edit the code under the architecture tab and add the fields with the same name as you've named them in the database.
6. Save and refresh your page, you will now see your now tab with fields.

I've also made a guide about this in image form with even more information which can be found here: http://imgur.com/a/UphvK

0
Avatar
Zrušiť
samba

Hi Yenthe, What's happen in code when we do like this. I did this one but i unable to traced out one thing, odes It adds the code in actual module or does it will create separate files for this extra fields.

Yenthe Van Ginneken (Mainframe Monkey)
Autor

samba, what exactly would you like to know? I think you'd like to know the flow of your data? In essence all the data in your new fields will be handled by Odoo and saved into the correct fields of the model. You only need to add the fieldnames to the model and edit the code and your set to go. Odoo will track where your data should be stored thanks to the model path and the fieldnames! I hope this answers your question.

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

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Change tabulation order on form data entry
formview tab
Avatar
0
máj 17
4575
oe_edit_only and oe_read_only classes in Odoo 16
view css formview
Avatar
Avatar
1
apr 23
6015
How to customize the field tabindex in Odoo 12
formview tab Odoo12.0
Avatar
Avatar
1
apr 19
5643
[8.0] Custom view per user not working Solved
view customize 8.0
Avatar
Avatar
1
jún 15
4015
Is there a way to edit multiple items, i.e. products, (and possibly contacts, customers etc) in list view? Solved
view list edit products
Avatar
Avatar
Avatar
Avatar
Avatar
5
mar 22
16118
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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