The right way to edit core DocType

hello all,
i want to edit sales invoice item DocType and add new field --Expiry Date-- but the value of the Expiey date didn’t return , and i just want to make sure that’s the right way …

@saif_eldin Please mention the versions you are working with.

in case it is v11(and above), i think you need to add your batch_no.expiry_date in the fetch_from field.

refer to this PR for more details [Enhance] New DocField - 'Fetch From' by Zlash65 · Pull Request #5563 · frappe/frappe · GitHub

hi @saif_eldin, were you able to solve it? I’m having the same issue, in V11 @karthikeyan5!, I’m trying to add in at the stock entry detail form