Fetch field from other field automatically

I create new doctype with 2 field / name and code /
when i enter the code in sales invoice I want the name field to fill out automatically…
this is a screen shot of what i have try to do

Hi @yara,

Please replace code in fetch from
airline_code.airline_company -> code.airline_company

Thank You!

1 Like