Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7978 Lượt xem

I wanna insert a lot of record in on time like insert command of sql I wanna ask how to do this in ORM methods. Thank you

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You have to use create() method for insert a lots of record. ORM Method : create(cr, uid, values, context=None)

Example : help_no = self.create(cr, uid,{ 'name': 'openerp', 'location' : 'india', 'id': 10,}, context=context)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
2688
0
thg 8 24
2490
0
thg 4 24
2518
0
thg 9 23
1809
1
thg 5 23
2902