Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 5 models 1 view 0 HTTP endpoints

Description

Italiano

Questo modulo permette di impostare i documenti correlati e il riferimento amministrazione nell'ordine di vendita (o le sue righe) e propagarli alla fattura (o le sue righe) durante la creazione della fattura.

Rispetto al modulo standard l10n_it_edi_sale, che riporta in fattura solo il documento di origine indicato nella testata dell'ordine (tipo, numero, data, CIG e CUP), questo modulo permette di:

  • indicare sull'ordine un numero qualsiasi di documenti correlati (ordini, contratti, convenzioni, ricezioni, fatture collegate), gestiti dal modulo l10n_it_edi_related_document;
  • indicare documenti correlati anche sulle singole righe dell'ordine (RiferimentoNumeroLinea);
  • indicare sulle righe dell'ordine il riferimento amministrazione (RiferimentoAmministrazione), gestito dal modulo l10n_it_edi_extension.

Alla creazione della fattura i documenti correlati vengono copiati dall'ordine (e dalle sue righe) alla fattura (e alle sue righe): in caso di fatturazione parziale ogni fattura riceve la propria copia.

Gli utenti commerciali (senza permessi di contabilità) non possono modificare i documenti correlati delle fatture già emesse: la modifica è riservata agli utenti contabili.

English

This module allows to set related documents and Admin. Ref. in the sale order (or its lines) and propagate them to the invoice (or its lines) during invoice creation.

Compared to the standard l10n_it_edi_sale module, which only propagates to the invoice the origin document set in the sale order header (type, number, date, CIG and CUP), this module allows to:

  • set any number of related documents on the sale order (orders, contracts, agreements, receptions, related invoices), as managed by the l10n_it_edi_related_document module;
  • set related documents on the single order lines too (RiferimentoNumeroLinea);
  • set the Admin. Ref. (RiferimentoAmministrazione) on the order lines, as managed by the l10n_it_edi_extension module.

When the invoice is created, the related documents are copied from the sale order (and its lines) to the invoice (and its lines): with partial invoicing, each invoice gets its own copy.

Sales users (without accounting access rights) cannot change the related documents of posted invoices: changing them is reserved to accounting users.

Dependencies

Odoo dependencies
Python dependencies
openupgradelib, cryptography, codicefiscale
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
sale_order_form_related_document_inherit_view sale.order.form.related.document.inherit.view sale.order form Inherits l10n_it_edi_sale.view_order_form_inherit_l10n_it_edi_sale

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (0)

No new fields.

Public methods (1)
  • unlink(self)

New fields (0)

No new fields.

Public methods (1)
  • unlink(self)

New fields (4)
  • invoice_id Many2one
    ondelete='set null'
  • invoice_line_id Many2one
    ondelete='set null'
  • sale_order_id Many2one → sale.order
    comodel_name='sale.order' index=True readonly=True string='Sale order'
  • sale_order_line_id Many2one → sale.order.line
    comodel_name='sale.order.line' index=True readonly=True string='Sale order line'
Public methods (1)
  • check_unlink(self)
    Related documents only make sense if they are related (linked) to some other record. When this condition is no more satisfied, the document can be deleted.

New fields (1)
  • related_document_ids One2many → account.move.related_document
    copy=False groups='account.group_account_user,sales_team.group_sale_salesman' string='Related Documents' args: 'account.move.related_document', 'sale_order_id'
Public methods (1)
  • unlink(self)

New fields (2)
  • l10n_it_edi_admin_ref Char
    copy=False size=20 string='Admin. ref.'
  • related_document_ids One2many → account.move.related_document
    copy=False groups='account.group_account_user,sales_team.group_sale_salesman' string='Related Documents' args: 'account.move.related_document', 'sale_order_line_id'
Public methods (1)
  • unlink(self)