summaryrefslogtreecommitdiff
path: root/addons/document/document.py
diff options
context:
space:
mode:
authorksa (Open ERP) <ksa@tinyerp.co.in>2010-05-26 19:07:20 +0530
committerksa (Open ERP) <ksa@tinyerp.co.in>2010-05-26 19:07:20 +0530
commitb3c7cc90350353b85f7defe12f6e1aafbfbed851 (patch)
treedfc8fe156f581d4138151db30f82c9e16692988a /addons/document/document.py
parentd5acd5897b72a612a1b1ee85f40713979dcf403e (diff)
[IMP]: document: Improvement for view and add group by ,filter
bzr revid: ksa@tinyerp.co.in-20100526133720-bito6krfl60a6zud
Diffstat (limited to 'addons/document/document.py')
-rw-r--r--addons/document/document.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/document/document.py b/addons/document/document.py
index 2b2ac2f7587..be9087f246c 100644
--- a/addons/document/document.py
+++ b/addons/document/document.py
@@ -91,8 +91,14 @@ class document_file(osv.osv):
'store_fname': fields.char('Stored Filename', size=200),
'res_model': fields.char('Attached Model', size=64), #res_model
'res_id': fields.integer('Attached ID'), #res_id
+ # 'res_name': fields.function(_name_get_resname, type='char', string='Resource Name', method=True),
'partner_id':fields.many2one('res.partner', 'Partner', select=1),
'title': fields.char('Resource Title', size=64),
+ 'type':fields.selection([
+ ('url','URL'),
+ ('binary','Binary'),
+
+ ],'Type', help="Type is used to separate URL and binary File"),
}
def __get_def_directory(self, cr, uid, context=None):