[IMP] improve code

bzr revid: voraamitr@gmail.com-20140310131847-jht58ov5mar8nsif
This commit is contained in:
Amit Vora (OpenERP)
2014-03-10 18:48:47 +05:30
parent 81db3c3a19
commit aef61e1293
4 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -393,7 +393,7 @@
<button class="oe_inline" type="action" string="Calls"
name="%(crm.crm_case_categ_phone_incoming0)d"
context="{'default_opportunity_id': active_id, 'search_default_opportunity_id': active_id, 'default_partner_id': partner_id, 'default_duration': 1.0}" />
<button string="Schedule Meeting" type="action"
<button string="Schedule a Meeting" type="action"
name="%(calendar.action_calendar_event)d"
context="{'partner_id': partner_id}"/>
</div>
+2 -2
View File
@@ -69,9 +69,9 @@ class crm_configuration(osv.TransientModel):
help="""Allows you to use Sales Teams to manage your leads and opportunities."""),
'alias_prefix': fields.char('Default Alias Name for Leads'),
'alias_domain' : fields.char('Alias Domain'),
'group_scheduled_calls_menu': fields.boolean("Show Scheduled Calls Menu",
'group_scheduled_calls_menu': fields.boolean("Schedule calls to manage call center",
implied_group='crm.group_scheduled_calls_menu',
help="""Allow to show 'Scheduled Calls' menu under 'Sales/Phone Calls' menu""")
help="""This adds menu 'Scheduled Calls' under 'Sales / Phone Calls'""")
}
_defaults = {
+11 -6
View File
@@ -9,9 +9,18 @@
<field name="arch" type="xml">
<data>
<div name="config_sale" position="before">
<separator string="After-Sale Services"/>
<separator string="Sale Services"/>
<group>
<label for="id" string="Pre-Sale Services"/>
<div>
<div>
<field name="group_scheduled_calls_menu" class="oe_inline"/>
<label for="group_scheduled_calls_menu"/>
</div>
</div>
</group>
<group>
<label for="id" string="Features"/>
<label for="id" string="After-Sale Services"/>
<div>
<div>
<field name="module_crm_claim" class="oe_inline"/>
@@ -21,10 +30,6 @@
<field name="module_crm_helpdesk" class="oe_inline"/>
<label for="module_crm_helpdesk"/>
</div>
<div>
<field name="group_scheduled_calls_menu" class="oe_inline"/>
<label for="group_scheduled_calls_menu"/>
</div>
</div>
</group>
<separator string="Sales Teams"/>
+1 -1
View File
@@ -95,7 +95,7 @@
name="%(crm.crm_case_category_act_oppor11)d"
context="{'search_default_partner_id': active_id}"/>
<button class="oe_inline" type="action"
string="Schedule Meetings"
string="Schedule a Meeting"
name="%(calendar.action_calendar_event)d"
context="{'user_id': user_id}"/>
<button class="oe_inline" type="action" string="Calls"