diff options
| author | rpa (Open ERP) <rpa@tinyerp.com> | 2009-11-30 11:15:43 +0530 |
|---|---|---|
| committer | rpa (Open ERP) <rpa@tinyerp.com> | 2009-11-30 11:15:43 +0530 |
| commit | 0b4a35cc889e4ea75b164fde36a0fbac2c3d3eaf (patch) | |
| tree | 0d351f5227de6ce079bf3a61b1197b9e43785f2f /addons/document/document.py | |
| parent | 1b495ee8d29e347762fefe3b3d88f71bd805df76 (diff) | |
| parent | fe9c6b35c13c70633866e04c57d1b5cce8345dbd (diff) | |
[Merge]: Merge with Parent branch
bzr revid: rpa@tinyerp.com-20091130054543-42dsu82bluet4jjy
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index cd3d667f8bf..4acef4d3ab8 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -242,6 +242,7 @@ class document_directory(osv.osv): _description = 'Document directory' _columns = { 'name': fields.char('Name', size=64, required=True, select=1), + 'company_id': fields.many2one('res.company', 'Company'), 'write_date': fields.datetime('Date Modified', readonly=True), 'write_uid': fields.many2one('res.users', 'Last Modification User', readonly=True), 'create_date': fields.datetime('Date Created', readonly=True), @@ -269,6 +270,7 @@ class document_directory(osv.osv): 'user_id': lambda self,cr,uid,ctx: uid, 'domain': lambda self,cr,uid,ctx: '[]', 'type': lambda *args: 'directory', + 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'document.directory', c), 'ressource_id': lambda *a: 0 } _sql_constraints = [ |
