تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3831 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 19
11355
1
أكتوبر 17
3240
1
مارس 15
10479
1
يناير 22
3659
2
أكتوبر 17
9282