summaryrefslogtreecommitdiff
path: root/addons/document_ics/document_ics_config_wizard.py
diff options
context:
space:
mode:
authorkum (Open ERP) <kum@tinyerp.co.in>2009-11-25 15:01:44 +0530
committerkum (Open ERP) <kum@tinyerp.co.in>2009-11-25 15:01:44 +0530
commit38caea46b0ba92d3a2db17c7c72ec4c290b3b334 (patch)
tree1e737822ff9dfbfd6d5059337e3369ed7763f302 /addons/document_ics/document_ics_config_wizard.py
parent8198853ac93ab9018a9691f5c3d937ff913915c5 (diff)
[IMP] English Improvement
bzr revid: kum@tinyerp.co.in-20091125093144-4pburrqn0rhq6y39
Diffstat (limited to 'addons/document_ics/document_ics_config_wizard.py')
-rw-r--r--addons/document_ics/document_ics_config_wizard.py112
1 files changed, 56 insertions, 56 deletions
diff --git a/addons/document_ics/document_ics_config_wizard.py b/addons/document_ics/document_ics_config_wizard.py
index 21f472a55bd..a4e5c9017b3 100644
--- a/addons/document_ics/document_ics_config_wizard.py
+++ b/addons/document_ics/document_ics_config_wizard.py
@@ -28,47 +28,47 @@ import base64
import pooler
SECTION_NAME = {
- 'meeting' : 'Meetings',
- 'lead':'Prospects',
- 'opportunity':'Opportunities',
- 'jobs':'Jobs',
- 'bugs':'Bug Tracking',
- 'fund':'Fund Raising',
- 'helpdesk':'HelpDesk',
- 'claims':'Claims',
- 'phonecall':'Phone Calls',
+ 'meeting' : 'Meetings',
+ 'lead':'Prospects',
+ 'opportunity':'Opportunities',
+ 'jobs':'Jobs',
+ 'bugs':'Bug Tracking',
+ 'fund':'Fund Raising',
+ 'helpdesk':'HelpDesk',
+ 'claims':'Claims',
+ 'phonecall':'Phone Calls',
}
ICS_TAGS = {
- 'summary':'Description',
- 'uid':'Calendar Code' ,
- 'dtstart':'Date' ,
- 'dtend':'Deadline' ,
- 'url':'Partner Email' ,
- 'description':'Your action',
+ 'summary':'Description',
+ 'uid':'Calendar Code' ,
+ 'dtstart':'Date' ,
+ 'dtend':'Deadline' ,
+ 'url':'Partner Email' ,
+ 'description':'Your action',
}
class document_ics_crm_wizard(osv.osv_memory):
_name='document.ics.crm.wizard'
_columns = {
- 'name':fields.char('Name', size=64),
- 'meeting' : fields.boolean('Calendar of Meetings', help="Manages the calendar of meetings of the users."),
- 'lead' : fields.boolean('Prospect', help="Allows you to track and manage prospects which are pre-sales requests or contacts, the very first contact with a customer request."),
- 'opportunity' : fields.boolean('Business Opportunities', help="Tracks identified business opportunities for your sales pipeline."),
- 'jobs' : fields.boolean('Jobs Hiring Process', help="Help you to organise the jobs hiring process: evaluation, meetings, email integration..."),
- 'document_ics':fields.boolean('Shared Calendar', help=" Will allow you to synchronise your Open ERP calendars with your phone, outlook, Sunbird, ical, ..."),
- 'bugs' : fields.boolean('Bug Tracking', help="Used by companies to track bugs and support requests on softwares"),
- 'helpdesk': fields.boolean('Helpdesk', help="Manages an Helpdesk service."),
- 'fund' : fields.boolean('Fund Raising Operations', help="This may help associations in their fund raising process and tracking."),
- 'claims' : fields.boolean('Claims', help="Manages the supplier and customers claims, including your corrective or preventive actions."),
- 'phonecall' : fields.boolean('Phone Calls', help="Help you to encode the result of a phone call or to planify a list of phone calls to process."),
+ 'name':fields.char('Name', size=64),
+ 'meeting' : fields.boolean('Calendar of Meetings', help="Manages the calendar of meetings of the users."),
+ 'lead' : fields.boolean('Prospect', help="Allows you to track and manage prospects which are pre-sales requests or contacts, the very first contact with a customer request."),
+ 'opportunity' : fields.boolean('Business Opportunities', help="Tracks identified business opportunities for your sales pipeline."),
+ 'jobs' : fields.boolean('Jobs Hiring Process', help="Help you to organise the jobs hiring process: evaluation, meetings, email integration..."),
+ 'document_ics':fields.boolean('Shared Calendar', help=" Will allow you to synchronise your Open ERP calendars with your phone, outlook, Sunbird, ical, ..."),
+ 'bugs' : fields.boolean('Bug Tracking', help="Used by companies to track bugs and support requests on software"),
+ 'helpdesk': fields.boolean('Helpdesk', help="Manages an Helpdesk service."),
+ 'fund' : fields.boolean('Fund Raising Operations', help="This may help associations in their fund raising process and tracking."),
+ 'claims' : fields.boolean('Claims', help="Manages the supplier and customers claims, including your corrective or preventive actions."),
+ 'phonecall' : fields.boolean('Phone Calls', help="Help you to encode the result of a phone call or to plan a list of phone calls to process."),
}
_defaults = {
- 'meeting': lambda *args: True,
- 'opportunity': lambda *args: True,
- 'phonecall': lambda *args: True,
+ 'meeting': lambda *args: True,
+ 'opportunity': lambda *args: True,
+ 'phonecall': lambda *args: True,
}
-
+
def action_create(self, cr, uid, ids, context=None):
data=self.read(cr, uid, ids, [])[0]
dir_obj = self.pool.get('document.directory')
@@ -85,46 +85,46 @@ class document_ics_crm_wizard(osv.osv_memory):
section_id=self.pool.get('crm.case.section').search(cr, uid, [('name', '=', SECTION_NAME[section])])
if not section_id:
continue
- else:
+ else:
object_id=self.pool.get('ir.model').search(cr, uid, [('name', '=', 'Case')])[0]
-
+
vals_cont={
- 'name': SECTION_NAME[section],
- 'sequence': 1,
- 'directory_id': dir_id,
- 'suffix': section,
- 'extension': '.ics',
- 'ics_object_id': object_id,
- 'ics_domain': [('section_id', '=', section_id[0])],
+ 'name': SECTION_NAME[section],
+ 'sequence': 1,
+ 'directory_id': dir_id,
+ 'suffix': section,
+ 'extension': '.ics',
+ 'ics_object_id': object_id,
+ 'ics_domain': [('section_id', '=', section_id[0])],
'include_name' : False
- }
-
+ }
+
content_id = dir_cont_obj.create(cr, uid, vals_cont)
-
+
ics_obj=self.pool.get('document.directory.ics.fields')
for tag in ['description', 'url', 'summary', 'dtstart', 'dtend', 'uid']:
field_id = self.pool.get('ir.model.fields').search(cr, uid, [('model_id.name', '=', 'Case'), ('field_description', '=', ICS_TAGS[tag])])[0]
- vals_ics={
- 'field_id': field_id ,
- 'name': tag ,
- 'content_id': content_id ,
+ vals_ics={
+ 'field_id': field_id ,
+ 'name': tag ,
+ 'content_id': content_id ,
}
ics_obj.create(cr, uid, vals_ics)
return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'ir.actions.configuration.wizard',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'view_type': 'form',
+ "view_mode": 'form',
+ 'res_model': 'ir.actions.configuration.wizard',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
def action_cancel(self, cr, uid, ids, conect=None):
return {
- 'view_type': 'form',
- "view_mode": 'form',
- 'res_model': 'ir.actions.configuration.wizard',
- 'type': 'ir.actions.act_window',
- 'target':'new',
+ 'view_type': 'form',
+ "view_mode": 'form',
+ 'res_model': 'ir.actions.configuration.wizard',
+ 'type': 'ir.actions.act_window',
+ 'target':'new',
}
document_ics_crm_wizard()