Italy - E-invoicing - Integrazione vendite
l10n_it_edi_extension_sale · OCA/l10n-italy
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
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 modulol10n_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_documentmodule; - set related documents on the single order lines too
(
RiferimentoNumeroLinea); - set the Admin. Ref. (
RiferimentoAmministrazione) on the order lines, as managed by thel10n_it_edi_extensionmodule.
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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
No new fields.
Public methods (1)-
unlink(self)
No new fields.
Public methods (1)-
unlink(self)
-
invoice_idMany2oneondelete='set null' -
invoice_line_idMany2oneondelete='set null' -
sale_order_idMany2one → sale.ordercomodel_name='sale.order'index=Truereadonly=Truestring='Sale order' -
sale_order_line_idMany2one → sale.order.linecomodel_name='sale.order.line'index=Truereadonly=Truestring='Sale order line'
-
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.
-
related_document_idsOne2many → account.move.related_documentcopy=Falsegroups='account.group_account_user,sales_team.group_sale_salesman'string='Related Documents' args: 'account.move.related_document', 'sale_order_id'
-
unlink(self)
-
l10n_it_edi_admin_refCharcopy=Falsesize=20string='Admin. ref.' -
related_document_idsOne2many → account.move.related_documentcopy=Falsegroups='account.group_account_user,sales_team.group_sale_salesman'string='Related Documents' args: 'account.move.related_document', 'sale_order_line_id'
-
unlink(self)