frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
22.01k stars 7.38k forks source link

Unable to add multiple link fields to same DocType based on different field #32546

Open dgehriger opened 2 years ago

dgehriger commented 2 years ago

Is your feature request related to a problem? Please describe.

ERPnext v14.1.2 / Frappe v14.5.0

I have customized Sales Order with a 2nd link field named end_user_company to Customer. This allows me to record an end user company for items sold through a reseller (the latter being referenced by the customer link field).

Now I’m trying to create an Document Link (connection) from Customer to Sales Order, based on end_user_company. This works, but as soon as I do that, the original Document Link based on the customer field stops working. Even if I manually re-add it, it will not use that field, but always the one for end_user_company.

Any idea how this could be fixed ?

image

Describe the solution you'd like

I would expect two link fields from Customer to Sales Order:

  1. Based on the Sales Order's customer field
  2. Based on the Sales Order's (custom) _enduser field
Chidamparamm commented 4 months ago

unable to get solution