Skip to Content
Menu
This question has been flagged
2 Replies
3427 Rodiniai

Hi,

In lead menu, website fiedl doesn't exist. So,In crm_lead , I created a new field about website . this name is "x_website". I can create a customer and to fill website field. But, once I create a lead and I choose a company, website field don't follow.

Part of crm_lead form: <field name="partner_id" string="Customer" on_change="on_change_partner(partner_id)" options="{"create_name_field": "name"}" context="{'default_name': contact_name, 'default_street': street, 'default_street2': street2 ,'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_section_id': section_id, 'default_website' : x_website}"/>

Do you have a solution to propose me?

Thanks in advance.

Portretas
Atmesti

you have to do code in .py file in on_change_partner function and from there returh website alos

Autorius

Ok, thanks for your answer :) i going to do it

Autorius

Thanks, It's working !!!!! :)

Best Answer

Have you read this :

How to add a new field into Leads and pass it to Opportunity and then to Sale Quotation? [closed]

(Please, first search the forum before asking questions.)

Portretas
Atmesti
Autorius

It's not really the same. My problem is when I create a customer and I fill website fill, I would like this field follow when I create a lead. I can use your link to solve my problem

Autorius Best Answer

Thanks, It's working !!!!! :)

Portretas
Atmesti

This is not a answer, its a comment --> please edit