Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
273 Zobrazení

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 25
1442
0
led 25
3576
1
srp 23
14927
1
srp 23
13595
1
čvc 23
10572