Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3905 มุมมอง

I am baffled by a behaviour of OpenERP. I understand that the create method returns the id of the newly created record. So i tried to store said value in a variable for later use, but altough the variable is stored in i can see an increment in the id records, the new record is not created in the database. Is this normal?

new_menu_id = self.pool.get('ir.ui.menu').create(cr, uid, {'name':specie.name,  'parent_id':top_parent_id[0], 'icon':'STOCK_OPEN',  'sequence':1}, context=None)

I used a exception to see my value and returns me a integer correctly, but the new menu record is not created.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 19
11433
1
ต.ค. 17
3311
Call method after creating record? แก้ไขแล้ว
1
มี.ค. 15
10566
1
ม.ค. 22
3751
2
ต.ค. 17
9351