diff options
| author | nch@tinyerp.com <> | 2009-12-08 09:45:17 +0530 |
|---|---|---|
| committer | nch@tinyerp.com <> | 2009-12-08 09:45:17 +0530 |
| commit | 3f9ed76869c572b42641e4e22e5435bb10fa5e46 (patch) | |
| tree | d957a2fe852c383a7c22148ccc15c20aff028d67 /addons/document/document.py | |
| parent | d7a580e0bf1d031f3daa0bf657055ec50e307cfd (diff) | |
| parent | b1eb90aa06b4c74dd623f50f716b936a3b33a09a (diff) | |
[MERGE]
bzr revid: nch@tinyerp.com-20091208041517-n8932hvnsprkcme8
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 = [ |
