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

Hello everybody.

Please i want to change the value of a field in class a  in class.

So, i have tried:


obj7 = self.pool.get('project.service.line')

obj_ids7 = obj7.search(cr, uid, [('project_id', '=', res9[0]['id']),('int_services', '=', name_service)])

res7 = obj7.read(cr, uid, obj_ids7, ['points_charges','credit_service'], context)

print res7

##################recuperer les points #################

print res7[0]['credit_service']

print res7[0]['points_charges']

res7[0]['credit_service'] = credits

return {'credit_service':credits}

But, it doesnt work depite the fact that i have tried to inherit class a in b.

Please who can help

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 25
1443
0
ม.ค. 25
3576
1
ส.ค. 23
14931
change password แก้ไขแล้ว
1
ส.ค. 23
13596
1
ก.ค. 23
10576