Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
149 Представления

Please guys i need help

i Have made a smart button so i need a counter.

Here is my function:


def test_count(self, cr, uid, ids, field_name, arg, context=None):

res = {}

print res

try:

for partner in self.browse(cr, uid, ids, context):

print ('-------------contract--project---------------')  

res[partner] = len(partner.test_ids)

except:

pass

return res

the problem is here: i want to show project of the client (res_partner) of the contract (account_analytic_account)

len(partner.test_ids) --> 0: it doesnt show the partner.partner_id.id.test_ids 

how to make it please



Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
авг. 25
2179
1
июл. 25
734
1
авг. 25
1150
0
мая 25
1250
2
апр. 25
3425