diff --git a/bin/addons/base/ir/ir.xml b/bin/addons/base/ir/ir.xml index 1f815ed1604..d0ac223b515 100644 --- a/bin/addons/base/ir/ir.xml +++ b/bin/addons/base/ir/ir.xml @@ -854,8 +854,11 @@ form
- - + + + + + @@ -896,6 +899,8 @@ + + @@ -908,20 +913,31 @@ - - - + + + + + + + + - + + + + diff --git a/bin/addons/base/ir/ir_attachment.py b/bin/addons/base/ir/ir_attachment.py index 173632c4411..fb621ea58fc 100644 --- a/bin/addons/base/ir/ir_attachment.py +++ b/bin/addons/base/ir/ir_attachment.py @@ -117,11 +117,13 @@ class ir_attachment(osv.osv): 'Type', help="Binary File or external URL", required=True), 'create_date': fields.datetime('Date Created', readonly=True), - 'create_uid': fields.many2one('res.users', 'Creator', readonly=True), + 'create_uid': fields.many2one('res.users', 'Owner', readonly=True), + 'company_id': fields.many2one('res.company', 'Company'), } _defaults = { 'type': 'binary', + 'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'ir.attachment', context=c), } def _auto_init(self, cr, context=None):