External field from Item DocType

I am making one app that has 5 different fields about Items:

  1. Item Code
  2. Simplified Chinese Description
  3. Traditional Chinese Description
  4. Italian Description
  5. French Description

I would select the Item Code from existing Item Codes, or create a new Item code
How can I link it from Item DocType to my custom DocType in my app?

It should be also the primary key of this custom DocType.

Must be done through a custom script or is it possible also doing through the simpler form customization?

Add Link Type field called Item Code and write Item in Options. This will let you select the existing items.

Use Edit Doctype, and in the Naming section write this:

image

assuming you use item_code as the field for Item Code.

Remember to use Edit Doctype for your custom docs.

1 Like