Object linked to the document
It is possible to display a field coming from the object linked to the commercial document.
Example
*/ The field do_ref2 is the foreign key for the id of the object doc_obj.dj_numero. The field do ref2, or any other foreign key of dj_numero, must be available.
getvalue(do_ref2, 'dj_numero', 'dj_texte1', 'doc_obj')