439
edits
(→Linking Dolibarr objects from two different modules: added llx_element_contact) |
|||
| Line 244: | Line 244: | ||
In this case, you might want in your templates to fetch the custom fields of the linked object. Eg: you generate a PDF from the Invoice, but you want to get the custom fields from the Intervention that was converted into the Invoice. | In this case, you might want in your templates to fetch the custom fields of the linked object. Eg: you generate a PDF from the Invoice, but you want to get the custom fields from the Intervention that was converted into the Invoice. | ||
The key here is to use the '''llx_element_element''': this is a standard Dolibarr table that stores all links between objects of two different modules. | The key here is to use the '''llx_element_element''' or '''llx_element_*''' (eg: llx_element_contact): this is a standard Dolibarr table that stores all links between objects of two different modules. | ||
Here is the structure: | Here is the structure: | ||
edits