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

Hello everybody!!

Please i use a get_inputs function and an on_change. they work fine but the problem that when i press save, everything disappear.

Please who can help


def get_inputs1(self, cr, uid,ids, nom_article, context=None):

ret = []

ret2 = []

obj = self.pool.get('on_change_function')

print ('--------------obj---------------')

print (nom_article)

obj = self.pool.get('project.service')

obj_ids = obj.search(cr, uid, [('id', '=', nom_article)])

print ('--------------obj_ids---------------')

res = obj.read(cr, uid, obj_ids, ['int_service_unit'], context)

print (res)

for r in res :

inputs = {

'rate': r['int_service_unit'],

}

ret.append(inputs)

print ('--------------test rate--------------------')

print res

if res == []:

return False

else:

print ('-------------------------MOMO-------------------------------')

print ret[0]['rate']

return ret[0]['rate']

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 25
1429
0
يناير 25
3517
1
أغسطس 23
14877
change password تم الحل
1
أغسطس 23
13534
1
يوليو 23
10511