Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ

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

  • ลูกค้าสัมพันธ์
  • e-Commerce
  • ระบบบัญชี
  • สินค้าคงคลัง
  • PoS
  • โปรเจกต์
  • MRP
All apps
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

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

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
order.linesodoo16features
2 ตอบกลับ
3119 มุมมอง
อวตาร
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
อวตาร
ละทิ้ง
อวตาร
Jainesh Shah(Aktiv Software)
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
SmithJohn45
ผู้เขียน

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
ผู้เขียน

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
ผู้เขียน

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

อวตาร
Syed Muneeb
คำตอบที่ดีที่สุด

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
อวตาร
ละทิ้ง
SmithJohn45
ผู้เขียน

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

สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter แก้ไขแล้ว
odoo16features
อวตาร
อวตาร
อวตาร
อวตาร
อวตาร
5
ก.ย. 25
24515
How to Add wizard under print button inside the form view.
odoo16features
อวตาร
อวตาร
อวตาร
อวตาร
3
ส.ค. 25
3743
How to add @api.onchange in _get_view() method odoo 16
odoo16features
อวตาร
อวตาร
1
พ.ค. 25
3638
get all partners which are internal users or portal users odoo16
odoo16features
อวตาร
อวตาร
1
เม.ย. 25
4482
How to add decoration color green with bold to a record with a single conditon
odoo16features
อวตาร
อวตาร
1
เม.ย. 25
5334
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ Odoo คือการใช้งานที่ง่ายดายและผสานการทำงานอย่างสมบูรณ์แบบในเวลาเดียวกัน

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