@@ -209,9 +209,89 @@ steps:
209209 identification.
210210#. Click :guilabel: `Save `.
211211
212- Then, open the Document app, navigate to the appropriate folder, select the relevant vendor bills,
212+ Then, open the Documents app, navigate to the appropriate folder, select the relevant vendor bills,
213213and click :guilabel: `Create Vendor Bill `. The corresponding vendor bill is then created.
214214
215+ .. _accounting/e-invoicing/extra-fields :
216+
217+ Add extra fields
218+ ----------------
219+
220+ .. important ::
221+ Adding fields requires the :doc: `Studio <../../../studio >` app.
222+
223+ Odoo supports the most common Peppol fields by default, but additional Peppol data can be included
224+ when sending e-invoices via Peppol by :ref: `adding extra fields <studio/fields/add >` to the invoice
225+ using Studio.
226+
227+ The table below shows:
228+
229+ - the extra Peppol fields that can be added. Fields in the:
230+
231+ - :guilabel: `Main invoice ` section are added to the :ref: `form view <studio/views/general/form >`
232+ of the invoice
233+ - :guilabel: `Invoice lines ` section are added to the :ref: `list view
234+ <studio/views/multiple-records/list>` of the invoice line
235+
236+ - the data type, which *must * match the :ref: `field type <studio/fields/field-types >` when adding
237+ the field using Studio
238+ - the exact field label that *must * be entered when adding the field using Studio
239+
240+ .. important ::
241+ Odoo uses a new field's label to automatically generate the technical name of the field. To
242+ ensure the field's technical name is formatted correctly, it is crucial to use the exact text
243+ from the :guilabel: `Studio field label ` column below.
244+
245+ +-------------------+-------------------------------+-----------+-----------------------------------------+
246+ | | Peppol technical name (XML) | Data type | Studio field label |
247+ +===================+===============================+===========+=========================================+
248+ | **Main invoice ** | TaxPointDate | Date | `Peppol tax point date ` |
249+ | +-------------------------------+-----------+-----------------------------------------+
250+ | | ContractDocumentReference.ID | Text | `Peppol contract document reference ID ` |
251+ | +-------------------------------+-----------+-----------------------------------------+
252+ | | DespatchDocumentReference.ID | Text | `Peppol despatch document reference ID ` |
253+ | +-------------------------------+-----------+-----------------------------------------+
254+ | | AccountingCost | Text | `Peppol accounting cost ` |
255+ | +-------------------------------+-----------+-----------------------------------------+
256+ | | ProjectReference.ID | Text | `Peppol project reference ID ` |
257+ | +-------------------------------+-----------+-----------------------------------------+
258+ | | InvoicePeriodStartDate | Date | `Peppol Invoice period Start Date ` |
259+ | +-------------------------------+-----------+-----------------------------------------+
260+ | | InvoicePeriodEndDate | Date | `Peppol Invoice period End Date ` |
261+ | +-------------------------------+-----------+-----------------------------------------+
262+ | | OrderReference.ID | Text | `Peppol Order Reference ID ` |
263+ +-------------------+-------------------------------+-----------+-----------------------------------------+
264+ | **Invoice lines ** | OrderLineReference/LineID | Text | `Peppol order line reference ID ` |
265+ | +-------------------------------+-----------+-----------------------------------------+
266+ | | item.buyersItemIdentification | Text | `Peppol buyers item ID ` |
267+ +-------------------+-------------------------------+-----------+-----------------------------------------+
268+
269+ To add a new field to the invoice form view or invoice line list view, as relevant, follow these
270+ steps:
271+
272+ #. Activate :ref: `developer mode <developer-mode >`.
273+ #. Navigate to :menuselection: `Accounting --> Customers --> Invoices ` (or :menuselection: `Invoicing
274+ --> Customers --> Invoices ` for Invoicing users).
275+ #. Open an existing invoice, or click :guilabel: `New `.
276+ #. Open Studio by clicking the :icon: `oi-studio ` (:guilabel: `Toggle Studio `) icon.
277+ #. If adding a field to invoice line list view, click in the :guilabel: `Invoice Lines ` tab and click
278+ :guilabel: `Edit List view `.
279+ #. Click and drag a :guilabel: `Text ` or :guilabel: `Date ` field from the panel on the left to the
280+ desired location in the view on the right.
281+ #. Enter the :guilabel: `Label ` exactly as it appears in the :guilabel: `Studio field label ` column in
282+ the table above, then click outside the field label to see the :guilabel: `Technical Name ` update
283+ automatically.
284+ #. Click :guilabel: `Close ` to save all changes.
285+
286+ .. note ::
287+ The :guilabel: `Technical Name ` in Odoo should match the format of
288+ `x_studio_peppol_tax_point_date `. If a mistake is made and the technical name is incorrect,
289+ :ref: `edit the technical name <studio/fields/properties-technical-name-change >`.
290+
291+ .. tip ::
292+ After a new field has been created as explained above, it can be :ref: `added to other views
293+ <studio/fields/add-existing>` such as the invoice list view.
294+
215295.. _accounting/e-invoicing/peppol-deregister :
216296
217297Peppol deregistration from Odoo
0 commit comments