diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-06-27 23:18:13 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-06-27 23:18:13 +0300 |
| commit | c11ad0047d1c6da4592c161e2e4a1ed6a5ad07c2 (patch) | |
| tree | 8747c083660d2abe4ef5809256eafe00d603136a /addons/document/document.py | |
| parent | 6eef5d7e360353c60a56d0b1ab4c3484f80059d8 (diff) | |
Document: files are required to have a parent directory
Or else, there is no storage for them.
bzr revid: p_christ@hol.gr-20100627201813-y5gatb8w39jnxeux
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index c5315bf0574..dd48f7daf7f 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -89,7 +89,7 @@ class document_file(osv.osv): 'user_id': fields.many2one('res.users', 'Owner', select=1), 'group_ids': fields.many2many('res.groups', 'document_group_rel', 'item_id', 'group_id', 'Groups'), # the directory id now is mandatory. It can still be computed automatically. - 'parent_id': fields.many2one('document.directory', 'Directory', select=1), + 'parent_id': fields.many2one('document.directory', 'Directory', select=1, required=True), 'index_content': fields.text('Indexed Content'), 'partner_id':fields.many2one('res.partner', 'Partner', select=1), 'company_id': fields.many2one('res.company', 'Company'), |
