Multiple doctype on a link

Is it possible to have multiple doctype link on a single field?

I have created a doctype that holds subsidiaries for customer. It contains the name of the subsidiary customer and the parent customer, as well as the subsidiary’s address.
Now in the billing and shipping field on Quotation/Order/Invoice. I want to combine the parent customer ang the subsidiary address on these fields.

I am at lost with this one as I am new to Frappe.

You can achieve this using a dynamic link field. For reference, you can see the Payment Entry doctype, ‘Party Type’ and ‘Pary’ fields

I am really grateful for the reply. I tried what you suggested, How can I limit the doctype that are showing?

1 Like

I did not understand what you mean. Did you mean the dropdown list limitation?

I did follow the structure of party type and party, as I noticed. Party type only holds Customer, Employee, Shareholder and Supplier. Where in my case, all doctypes are shown.
MyDoctype

This photo is from the party type
partyType

select party type first. Based on your party type party list will show in dropdown.

I follow the structure of the party type. Where the field Party has a type of Dynamic Link and a party_type in the Options. I just wonder how did Party Type field only has 4 Filters while my Customer level field has all the doctype available.

Look at the filter, please. You can read the payment_entry.js file

1 Like