bzr revid: olt@tinyerp.com-20090126114440-r1syg4z8bxecpqel
This commit is contained in:
Olivier Laurent 2009-01-26 12:44:40 +01:00
commit 9bafcadb9c
2 changed files with 3 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class maintenance_contract_wizard(osv.osv_memory):
contract = self.read(cr, uid, ids, ['name', 'password'])[0]
contract_info = remote_contact(contract['name'], contract['password'], modules)
contract_info = remote_contract(contract['name'], contract['password'], modules)
is_ok = contract_info['status'] in ('partial', 'full')
if is_ok:

View File

@ -48,7 +48,7 @@ class groups(osv.osv):
res = super(groups, self).write(cr, uid, ids, vals, context=context)
# Restart the cache on the company_get method
self.pool.get('ir.rule').domain_get.clear_cache(cr.dbname)
self.pool.get('ir.model.access').check.clear_cache(cr.dbname)
self.pool.get('ir.model.access').call_cache_clearing_methods()
return res
def create(self, cr, uid, vals, context=None):
@ -168,6 +168,7 @@ class users(osv.osv):
self.company_get.clear_cache(cr.dbname)
# Restart the cache on the company_get method
self.pool.get('ir.rule').domain_get.clear_cache(cr.dbname)
self.pool.get('ir.model.access').call_cache_clearing_methods()
return res
def unlink(self, cr, uid, ids, context=None):