Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

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

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
order.linesodoo16features
2 Besvarelser
3117 Visninger
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
Kassér
Avatar
Jainesh Shah(Aktiv Software)
Bedste svar

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
Kassér
SmithJohn45
Forfatter

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
Forfatter

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
Forfatter

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

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
Kassér
SmithJohn45
Forfatter

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!

Tilmeld dig
Related Posts Besvarelser Visninger Aktivitet
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Løst
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
sep. 25
24515
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
aug. 25
3742
How to add @api.onchange in _get_view() method odoo 16
odoo16features
Avatar
Avatar
1
maj 25
3638
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
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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