19
19
##############################################################################
25
25
"""Override company to add images configuration"""
28
28
'local_media_repository':fields.char(
31
31
help='Local mounted path on OpenERP server where all your images are stored.'
35
35
def get_local_media_repository(self, cr, uid, id=None, context=None):
37
37
return self.browse(cr, uid, id, context=context).local_media_repository
38
38
user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
39
39
return user.company_id.local_media_repository