Import data when creating field

hello
is it possible when I create a field to import some datas
let me explain
I create a quote and i choose a line
in the line I add a product (coming from the product database)
and when I chose the product the system automatically import some field from the product chosen

is it possible to do this and how
Many thanks (and sorry for my english)

If I properly understood what you are meaning then yes and, in fact, it is the default behavior of Products’ GRID under Quote. It is just a matter of which additional fields would you like to auto populate on selecting a Product from Catalog.

Regards

in fact I want to auto populate some data from the product database but in my custom module
I took quote as an exemple
do you think there is an easy solution ?

You would need to inject some Javascript to do this for you. You would do it in the LineItems files, I think, it depends on the exact module where you are.

It’s not a very simple customization, I’m afraid I can’t give you a step-by-step guide…