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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
1
jul. 22
|
3460 | ||
|
1
feb. 20
|
3953 | ||
|
0
apr. 16
|
2945 | ||
|
2
okt. 15
|
10350 | ||
Saudi End of Service
Opgelost
|
|
1
jun. 25
|
791 |
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