[FIX] contributors

(lp:c2c-addons/6.1  rev 22)
This commit is contained in:
Yannick Vaucher
2012-02-20 10:48:07 +01:00
parent 94fbc9dabb
commit 6ccb3384ec
2 changed files with 7 additions and 6 deletions

View File

@@ -75,6 +75,8 @@ If in multi-company mode, the base currency will be the first company's currency
found in database.
Thanks to main contributors : Grzegorz Grzelak, Alexis de Lattre
""",
"depends" : ["base",
"account"], #Added to ensure account security groups are present

View File

@@ -98,12 +98,11 @@ class Currency_rate_update_service(osv.osv):
]
def _check_max_delta_days(self, cr, uid, ids):
for company in self.read(cr, uid, ids, ['max_delta_days']):
if company['max_delta_days'] >= 0:
continue
else:
return False
return True
for i in ids:
value_to_check = self.read(cr, uid, i, ['max_delta_days'])['max_delta_days']
if value_to_check >= 0:
return True
else: return False
_constraints = [
(_check_max_delta_days, "'Max delta days' must be >= 0", ['max_delta_days']),