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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jul 22
|
3425 | ||
|
1
Feb 20
|
3914 | ||
|
0
Apr 16
|
2945 | ||
|
2
Oct 15
|
10338 | ||
Saudi End of Service
Solved
|
|
1
Jun 25
|
768 |
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