diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2009-01-05 23:55:09 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2009-01-05 23:55:09 +0100 |
| commit | 0ceda3985fa1b3c3bcfa7cc86e3a5a1ebcd9828c (patch) | |
| tree | 92ad2439aefc97f39a05f1d085f86f86022f9ab4 /addons/document_ics/document.py | |
| parent | c5923d87f2b087e54b759c920cdbea041e8ab3ba (diff) | |
| parent | aef3884e59c6b1aec0e0f127e3e6c1969f4289a9 (diff) | |
merge
bzr revid: fp@tinyerp.com-20090105225509-ovzgto6jz2ihuss2
Diffstat (limited to 'addons/document_ics/document.py')
| -rw-r--r-- | addons/document_ics/document.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/document_ics/document.py b/addons/document_ics/document.py index de155e038f3..f936c352d83 100644 --- a/addons/document_ics/document.py +++ b/addons/document_ics/document.py @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- ############################################################################## # -# OpenERP, Open Source Management Solution +# OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # @@ -41,7 +41,9 @@ ICS_TAGS = { 'attendee':'multiple', 'location':'normal', 'categories': 'normal', - 'description':'normal' + 'description':'normal', + + # TODO: handle the 'duration' property } class document_directory_ics_fields(osv.osv): @@ -126,8 +128,6 @@ class document_directory_content(osv.osv): if len(dt)==10: dt = dt+' 09:00:00' value = datetime.datetime.strptime(dt, '%Y-%m-%d %H:%M:%S') - if field.name=='dtend': - value += datetime.timedelta(hours=3) event.add(field.name).value = value s= StringIO.StringIO(cal.serialize().encode('utf8')) s.name = node @@ -142,3 +142,5 @@ class crm_case(osv.osv): } crm_case() +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + |
