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