[FIX] crm: on_change_partner_id in crm.lead view
The function "on_change_partner_id" defined in the model "crm.lead" must be triggered each time the field "partner_id" is modified. opw:659239
This commit is contained in:
@@ -137,6 +137,7 @@
|
||||
<field name="partner_name" string="Company Name"/>
|
||||
<!-- Preload all the partner's information -->
|
||||
<field name="partner_id" string="Customer"
|
||||
on_change="on_change_partner_id(partner_id)"
|
||||
options='{"create_name_field": "name"}'
|
||||
context="{'default_name': contact_name, 'default_street': street, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_function': function, 'default_phone': phone, 'default_mobile': mobile, 'default_fax': fax, 'default_email': email_from, 'default_user_id': user_id, 'default_team_id': team_id}"/>
|
||||
<label for="street" string="Address"/>
|
||||
|
||||
Reference in New Issue
Block a user