diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2010-06-23 17:23:49 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2010-06-23 17:23:49 +0530 |
| commit | d2cb81281449f500743dab06257f2ea848b2b3e7 (patch) | |
| tree | d726fe49f656510717e293b52e2b4007ec5e04fb /addons/document/document_directory.py | |
| parent | 312681ccd58e754220bfcdf073a144ab9060aa90 (diff) | |
[IMP] document: add new field company_id in document and directory model
bzr revid: hmo@tinyerp.com-20100623115349-ik8webt0myj6l43l
Diffstat (limited to 'addons/document/document_directory.py')
| -rw-r--r-- | addons/document/document_directory.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/document/document_directory.py b/addons/document/document_directory.py index 1d0bbf3ed7c..961073ad434 100644 --- a/addons/document/document_directory.py +++ b/addons/document/document_directory.py @@ -60,6 +60,7 @@ class document_directory(osv.osv): 'ressource_tree': fields.boolean('Tree Structure', help="Check this if you want to use the same tree structure as the object selected in the system."), 'dctx_ids': fields.one2many('document.directory.dctx', 'dir_id', 'Context fields'), + 'company_id': fields.many2one('res.company', 'Company'), } @@ -92,6 +93,7 @@ class document_directory(osv.osv): return None _defaults = { + 'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'document.directory', context=c), 'user_id': lambda self,cr,uid,ctx: uid, 'domain': lambda self,cr,uid,ctx: '[]', 'type': lambda *args: 'directory', |
