Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
216 Prikazi

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



Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
avg. 25
2569
1
jul. 25
977
1
avg. 25
1151
0
maj 25
1420
2
apr. 25
3602