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

Odoo16: how to add further Child Lines for every Order Line? is it workable?

Odoberať

Get notified when there's activity on this post

This question has been flagged
order.linesodoo16features
2 Replies
3120 Zobrazenia
Avatar
SmithJohn45

in Sales -> Quotation - New we can see a Master-Detail form view which contains Order Lines tab below where user can input item-wise Details, here is a requirement each item can contain more underlying data related to each item and we want to add this functionality in View to get user input after each Order Line (Item). if Order Line have 3 items then all 3 items should have own underlying data which should be related to each Line (item). --in oracle we say it master-detail-detail like: country->state->city--

is it possible in Odoo using BUG ICON on top in Developer mode? if yes how to?

i have to create a separate table OR i can add those fields in sale.order.line ? 

please help, guide or provide a link to the guide.

regards


0
Avatar
Zrušiť
Avatar
Jainesh Shah(Aktiv Software)
Best Answer

Hello SmithJohn45,


We can't add child lines to sale order lines. We can add this extra fields to sale.order.line model or we can also create a new model. It's totally depends on your requirement. It's possible in both ways. 


We've achieve a similar functionality in past. In which, we've' added a new button to each sale order lines. This button will pop-up an form view where a user can add the extra details. We can also make system to automatically add and update the note under each sale order line to display the values configured in the extra details form. We're providing you a screenshot for better understanding. Kindly let us know if have any further questions.

I hope this will help you.
Thanks & Regards,
Email:    odoo@aktivsoftware.com     

Skype: kalpeshmaheshwari

1
Avatar
Zrušiť
SmithJohn45
Autor

thank you @Jainesh, for what you have achieve i asked for here but topic closed by me because i was unable to make a relationship with the model in popup window (form view) and nobody Answer to that topic. after reading your Answer now i thought it can be done but still as of my knowledge level i am not able to achieve what you had, if there is an example link i will be much grateful as this is very important for me. ( i am from Oracle and there is no problem creating Child of a Child in very old Oracle Forms and currently in Oracle Apex, Oracle ADF etc. you just have to have PK & FK relationship ).
thanks again.
regards

SmithJohn45
Autor

to clear any confusion because of what i wrote, here is may be, more clearer
- i failed to create relationship with popup form view where i want an editable tree view as Child of Order Line.

regards

Jainesh Shah(Aktiv Software)

Hello @SmithJohn45,
It we'll not possible to develop this requirement from UI side. But here is the mind-map to achieve this.

1: Create a new model. In this example we'll named is 'specification.sheet'.
2: Now we need to link this model with 'sale.order.line' and to achieve this we'll extend the 'sale.order.line' model and add Many2one field named specification_sheet_id. But we also need to link the 'sale.order.line' to 'specification.sheet'. So, we'll add new Many2one field named sale_line_id.
3: Now, add a object type button in sale order line. Once we add a button in xml file we need to write the logic for this button which is as follow.

def action_open_specification_sheet(self):
"""
Used to open specification sheet pop-up.

Note:
1: If the sale line has specification_sheet_id field populated then we'll open the same record in pop-up window by using 'res_id' in action.
2: When we're using this button for newly created sale order line, We'll not have specification_sheet_id field populated. So in this case system will create a new record of 'specification.sheet' and we need to set default value of sale_line_id field for this record with the help of 'context' in action.
"""
self.ensure_one()
return {
'name': _('Specification Sheet'),
'view_mode': 'form',
'res_model': 'specification.sheet',
'res_id': self.specification_sheet_id.id,
'view_id': False,
'type': 'ir.actions.act_window',
'context': {
'default_sale_line_id': self.id,
},
'target': 'new'
}
4: After adding a button in view, We'll define a action confirm of the specification sheet's pop-up window. In which, we need to do two things.

A: We need to set specification_sheet_id field of sale order line (We can use sale_line_id field to identify the sale line).
B: We'll prepare a string which contains all the impotent information and create a note in 'sale.order.line'. We also need to link this line with 'specification.sheet'. So, in future we can easily modify the value of this line. To achieve this we can add a new field named custom_sol_note_id in 'specification.sheet'.

Feel free to reach out to us if you have any further questions.

SmithJohn45
Autor

huge thanks @Jainesh for very detailed explaination and guidance, will check what i can achieve from it. i really impressed with your deep concern to help us.

kind regards

Avatar
Syed Muneeb
Best Answer

Each line that you create in an order is saved in the database in the model 'sale.order.line' you can create its own view and add more details by creating more fields in the model.

0
Avatar
Zrušiť
SmithJohn45
Autor

thanks, but what i asked is another question. is it possible, if yes, how to?

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
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Solved
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
sep 25
24516
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
aug 25
3743
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
máj 25
3639
get all partners which are internal users or portal users odoo16
odoo16features
Avatar
Avatar
1
apr 25
4482
How to add decoration color green with bold to a record with a single conditon
odoo16features
Avatar
Avatar
1
apr 25
5334
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