erpnext icon indicating copy to clipboard operation
erpnext copied to clipboard

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

Open dgehriger opened this issue 2 years ago • 1 comments

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) end_user field

dgehriger avatar Oct 10 '22 07:10 dgehriger