Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
232 Widoki

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



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
2572
1
lip 25
983
1
sie 25
1151
0
maj 25
1429
2
kwi 25
3605