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

Hi I have to get the minimum wage of the contract list available in the database.

I am using Odoo 8.

Can you help me to write a function whose return min wage ?

Thanks.


Awatar
Odrzuć
Autor

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

res = dict.fromkeys(ids, 0.0)

for contract in self.employee_contract_ids.browse(cr, uid, ids, context=context):

res[contract.id] = min([contract.wage])

return res

here is my code

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 22
3437
1
lut 20
3921
0
kwi 16
2945
2
paź 15
10339
1
cze 25
773