Hi,
By default, when you set a reference for a customer in the Contacts module under Sales & Purchases, this reference does not automatically appear in the quotation creation form.
If you want to display this field, you need to enable developer mode and manually add it to the quotation and invoice forms.
Steps to follow:
- Enable developer mode.
- Open the Quotation or Invoice model, then click on the bug icon (edit mode).
- Click on the "View Fields" menu.
- Create a "Customer Reference" field, which should be a related field linked to the contact.
- After creating the field, go back to edit mode by clicking the bug icon again, then select "Edit View: Form".
- Instead of modifying the main view directly, create an inherited view. This is important because any direct modification to the main view will be lost after an update.
- In the Architecture section of the inherited view, you can use the sample code I provided in the screenshots. However, in the field name, you will need to enter the technical name of your custom field.
I will illustrate these steps with screenshots to make them clearer.
However, even after this modification, the reference will only appear in the quotation and invoice forms. If you also want it to be displayed on the generated PDF documents (quotation and invoice), you will need to modify the corresponding reports to include this field.
Hope this helps!









Hello Abdoul,
this helps a lot.
Your steps are working perfectly.
Now I will try to add this field to the pdf.
I wrote an own template for sales orders and invoice's, so this must work ;-)