Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3430 Näkymät

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.

Avatar
Hylkää

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

Tekijä

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

Tekijä

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

Paras vastaus

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.)

Avatar
Hylkää
Tekijä

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

Tekijä Paras vastaus

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

Avatar
Hylkää

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