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

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.


Avatar
Opusti
Avtor

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

Related Posts Odgovori Prikazi Aktivnost
1
jul. 22
3427
1
feb. 20
3918
0
apr. 16
2945
2
okt. 15
10338
1
jun. 25
771