And it did not work . The problem is that $object in this context refers to llx_product table, but it should refer to llx_product_fourniseur_price, since these are custom fields for provider prices tab.
I don’t know if this has to be considered as a bug or there is a way of retrieve the llx_product_fourniseur_price table fields in this context (since this extrafields are for this table, not for llx_product).
I did something similar for our company and so it’s not that difficult to develop.
But sometimes it’s trial and error and also searching the source code was helpful for me. Otherwise search here in the forum or in the wiki.
And also inserting “var_dump(…);exit;” gives a clue as to which variables are requested or returned.
The debugger is also helpful when it comes to SQL queries.