Skip to Content
मेन्यू
This question has been flagged
1 Reply
3080 Views

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
Discard
Author

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 Replies Views Activity
1
जुल॰ 22
3439
1
फ़र॰ 20
3925
0
अप्रैल 16
2945
2
अक्तू॰ 15
10341
1
जून 25
774