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