From ceb22841d6b79db8be8d29597f2d624de5759abf Mon Sep 17 00:00:00 2001 From: "Foram Katharotiya (OpenERP)" Date: Mon, 18 Jun 2012 11:48:04 +0530 Subject: [PATCH] [IMP] add default data in document_data.xml bzr revid: fka@tinyerp.com-20120618061804-9i8ypqq2m8g7eab6 --- addons/document/document.py | 3 +-- addons/document/document_data.xml | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/addons/document/document.py b/addons/document/document.py index 92ece063a47..6cd47569f0f 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -140,8 +140,7 @@ class document_file(osv.osv): _defaults = { 'user_id': lambda self, cr, uid, ctx:uid, - 'file_size': lambda self, cr, uid, ctx:0, - 'parent_id': __get_def_directory + 'file_size': lambda self, cr, uid, ctx:0 } _sql_constraints = [ # filename_uniq is not possible in pure SQL diff --git a/addons/document/document_data.xml b/addons/document/document_data.xml index ac7a174b05f..c8a6e304d1a 100644 --- a/addons/document/document_data.xml +++ b/addons/document/document_data.xml @@ -104,6 +104,10 @@ - +