[IMP] crm : align partner action in lead to opportunity modal on New quotation modal

For consistency, in the 'convert to opportunity' modal,
move the 'create a new customer' at the top of the selection values
to be align with the New quotation - set partner modal
(crm.quotation.partner)
+ change the group title to 'Customer' instead of 'Customers'

Task ID : 1917332
Closes PR #30475
This commit is contained in:
David Beguin
2019-03-25 14:50:55 +00:00
parent 4c9c249cc3
commit c092d8fc6d
2 changed files with 2 additions and 2 deletions
@@ -29,7 +29,7 @@
</tree>
</field>
</group>
<group name="action" attrs="{'invisible': [('name', '!=', 'convert')]}" string="Customers" col="1">
<group name="action" attrs="{'invisible': [('name', '!=', 'convert')]}" string="Customer" col="1">
<field name="action" nolabel="1" widget="radio"/>
<group col="2">
<field name="partner_id" widget="res_partner_many2one" domain="[('customer', '=', True)]" context="{'search_default_customer': 1, 'show_vat': True}" attrs="{'required': [('action', '=', 'exist')], 'invisible':[('action','!=','exist')]}"/>
+1 -1
View File
@@ -29,8 +29,8 @@ class PartnerBinding(models.TransientModel):
return res
action = fields.Selection([
('exist', 'Link to an existing customer'),
('create', 'Create a new customer'),
('exist', 'Link to an existing customer'),
('nothing', 'Do not link to a customer')
], 'Related Customer', required=True)
partner_id = fields.Many2one('res.partner', 'Customer')