insert ข้อมูล ด้วย xml rpc แบบ one2many ต้องทำอย่างไร
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP VIP Members
- Posts: 4935
- Joined: 02/06/2014 9:58 am
insert ข้อมูล ด้วย xml rpc แบบ one2many ต้องทำอย่างไร
ใช้ xml rpc ในการเพิ่มข้อมูลใน openerp ในกรณีที่เป็น ตารางแบบ one2many ไม่ทราบว่าจะต้องทำอย่างไร
บางที Bug ก็ไม่มีเหตุผล และไม่ต้องการคำจำกัดความ
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26644
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: insert ข้อมูล ด้วย xml rpc แบบ one2many ต้องทำอย่างไร
โค้ดตัวอย่าง ถ้าเขียนด้วย Python
แทนที่ ชื่อ fields ปกติเป็น dictionary
Code: Select all
b_obj.create(cr, uid, {
'ql': num,
'id_classb': record.id
}, context=context)
Code: Select all
{
'ql': num,
'id_classb': record.id
}
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0 Replies
- 908 Views
-
Last post by kwangchanat
27/08/2014 2:33 pm
-
- 3 Replies
- 325 Views
-
Last post by M034
03/05/2016 3:46 pm
-
- 0 Replies
- 275 Views
-
Last post by bankjittapol
04/11/2019 11:27 pm
-
-
ต้องการ insert ข้อมูล list/menu ลงฐานข้อมูล เเต่ทำตัวเเปรจัดเก็บไม่เป็นครับ
by RonnaritBooyyarit » 24/06/2011 10:35 am » in Programming - PHP - 1 Replies
- 2864 Views
-
Last post by mindphp
24/06/2011 12:44 pm
-
-
-
SQL เบื้องต้น (Insert Select Update Delete Join) เพิ่ม ลบ แก้ไข ข้อมูล
by จันนุสรณ์ ดีแก่ » 27/11/2018 11:12 am » in PHP Knowledge - 0 Replies
- 5193 Views
-
Last post by จันนุสรณ์ ดีแก่
27/11/2018 11:12 am
-
-
- 0 Replies
- 1823 Views
-
Last post by nuattawoot
23/09/2018 3:48 pm
-
-
insert ข้อมูล ไม่ผ่านครับ ติดปัญหา Parse error: syntax error,
by Dwight » 12/12/2011 10:13 pm » in Programming - PHP - 2 Replies
- 2487 Views
-
Last post by Dwight
21/12/2011 8:41 am
-
-
-
การใช้งาน Python GUI (Tkinter) : การ input ข้อมูล ทำหน้าจอกรอกข้อมูล ด้วย ไพทอน
by Jom07 » 27/02/2018 2:15 pm » in Python Knowledge - 3 Replies
- 4475 Views
-
Last post by Witsanu Nu
28/09/2019 9:48 pm
-
Who is online
Users browsing this forum: No registered users and 2 guests