[imp] document_ics: remove skip button, add explanatory label

bzr revid: xmo@tinyerp.com-20091218131746-2f79tytbgocmp82i
This commit is contained in:
Xavier Morel
2009-12-18 14:17:46 +01:00
parent 01bc147cc0
commit 2ef1b7f520
2 changed files with 13 additions and 12 deletions
@@ -81,16 +81,12 @@ class document_ics_crm_wizard(osv.osv_memory):
else:
dir_id = dir_obj.create(cr, uid, {'name': 'Calendars' ,'user_id' : uid, 'type': 'directory'})
for section in ['meeting', 'lead', 'opportunity', 'jobs', 'bugs', 'fund', 'helpdesk', 'claims', 'phonecall']:
if (not data[section]):
continue
else:
if data[section]:
section_id=self.pool.get('crm.case.section').search(cr, uid, [('name', '=', SECTION_NAME[section])])
if not section_id:
continue
else:
if section_id:
object_id=self.pool.get('ir.model').search(cr, uid, [('name', '=', 'Case')])[0]
vals_cont={
vals_cont = {
'name': SECTION_NAME[section],
'sequence': 1,
'directory_id': dir_id,
@@ -106,11 +102,11 @@ class document_ics_crm_wizard(osv.osv_memory):
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)
document_ics_crm_wizard()
@@ -12,6 +12,9 @@
Configure Calendars for CRM Sections
</attribute></form>
<group string="res_config_contents" position="replace">
<label colspan="4" align="0.0" string="
OpenERP can create and pre-configure a series of integrated
calendar for you."/>
<separator string="Create Pre-Configured Calendars"
colspan="4"/>
<newline/>
@@ -25,6 +28,8 @@
<field name="jobs"/>
<field name="fund"/>
</group>
<xpath expr='//button[@name="action_skip"]'
position='replace'/>
</data>
</field>
</record>