跳至內容
選單
此問題已被標幟
1 回覆
7961 瀏覽次數

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

頭像
捨棄
最佳答案

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)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 25
2672
0
8月 24
2472
0
4月 24
2485
0
9月 23
1795
1
5月 23
2886