[IMP] crm: modifying a new option into a selection field + radio button

This commit is contained in:
Yannick Tivisse
2015-08-13 17:10:21 +02:00
parent 9f6f564ed9
commit 0d4cceced6
2 changed files with 5 additions and 9 deletions
+4 -2
View File
@@ -15,8 +15,10 @@ class crm_configuration(osv.TransientModel):
help="Odoo will generate an email alias based on the sales team name"),
'alias_prefix': fields.char('Default Alias Name for Leads'),
'alias_domain' : fields.char('Alias Domain'),
'group_use_lead': fields.boolean(
"Use leads if you need a qualification step before creating an opportunity or a customer",
'group_use_lead': fields.selection([
(0, "Each mail sent to the alias creates a new opportunity"),
(1, "Use leads if you need a qualification step before creating an opportunity or a customer")
], "Leads",
implied_group='crm.group_use_lead')
}
+1 -7
View File
@@ -29,13 +29,7 @@
</p>
</div>
</div>
</group>
<group>
<label for="id" string="Manage Leads"/>
<div>
<field name="group_use_lead" class="oe_inline"/>
<label for="group_use_lead"/>
</div>
<field name="group_use_lead" widget="radio"/>
</group>
</div>
</field>