Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3431 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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

Tác giả

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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