Related Documents for EDI

l10n_it_edi_related_document
REPOSITORY
REPOSITORYOCA/l10n-italy
GIT
GIThttps://github.com/OCA/l10n-italy.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-italy/tree/18.0/l10n_it_edi_related_document
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYLocalization/Italy
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Nextev Srl
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Nextev Srl
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Rubino, micheledic, oca-ci, matteo.tognini, Marco Colombo, grosso-k-stesi
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-italy
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - l10n_it_edi
    - l10n_it
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_iban
    - base_vat
    - account_edi_proxy_client
    - certificate
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cryptography
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
**English**

Module for managing the types of documents linked to invoices.
The data related to the linked documents is then exported in 
the electronic invoice XML or imported during the creation of 
an invoice from an XML file.
If a related document has 0 as the line reference, it means that 
it refers to the entire document and not to a specific 
invoice line.

**Italiano**

Modulo per la gestione dei tipi di documenti collegati alle fatture.
I dati relativi ai documenti collegati vengono poi esportati nell'XML
della fattura elettronica oppure importati durante la creazione di una
fattura da XML.
Nel caso in cui un documento collegato abbia 0 come riferimento linea, 
significa che è riferito all’intero documento e non ad una specifica
linea della fattura.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
account_invoice_form_related_document account.move.form.related.document account.move xpath Inherits l10n_it_edi.account_invoice_form_l10n_it
account_invoice_it_FatturaPA_export_inherit account_invoice_it_FatturaPA_export_inherit ir.ui.view qweb Inherits l10n_it_edi.account_invoice_it_FatturaPA_export
account_invoice_it_dati_documenti_correlati account_invoice_it_dati_documenti_correlati ir.ui.view qweb New
account_invoice_it_dati_documento_correlato account_invoice_it_dati_documento_correlato ir.ui.view qweb New
account_move_related_document_view_form Form view for related_document account.move.related_document form New
account_move_related_document_view_list Tree view for related_document account.move.related_document list New
Models touched (3)

New fields (7)
  • l10n_it_cig Char
    inverse='_inverse_original_related_document_fields'
  • l10n_it_cup Char
    inverse='_inverse_original_related_document_fields'
  • l10n_it_origin_document_date Date
    inverse='_inverse_original_related_document_fields'
  • l10n_it_origin_document_name Char
    inverse='_inverse_original_related_document_fields'
  • l10n_it_origin_document_type Selection
    inverse='_inverse_original_related_document_fields'
  • related_document_ids One2many → account.move.related_document
    copy=False args: 'account.move.related_document', 'invoice_id'
  • standard_related_document_id Many2one → account.move.related_document
    comodel_name='account.move.related_document' help='Technical field to store the document corresponding to standard fields' string='Standard Related Document'
Public methods (2)
  • create_related_document(self, invoice, rel_docs_dict)
  • remove_redundant_values(self, values)

New fields (1)
  • related_document_ids One2many → account.move.related_document
    copy=False args: 'account.move.related_document', 'invoice_line_id', 'Related Documents'
Public methods (0)

No public methods.

New fields (10)
  • cig Char
    size=15 args: 'CIG Code'
  • code Char
    size=100 args: 'Order Agreement Code'
  • cup Char
    size=15 args: 'CUP Code'
  • date Date
  • invoice_id Many2one → account.move
    index=True ondelete='cascade' readonly=True args: 'account.move', 'Related Invoice'
  • invoice_line_id Many2one → account.move.line
    index=True ondelete='cascade' readonly=True args: 'account.move.line', 'Related Invoice Line'
  • lineRef Integer
    args: 'Line Ref.'
  • name Char
    required=True size=20 args: 'Document ID'
  • numitem Char
    size=20 args: 'Item Num.'
  • type Selection
    required=True args: [('order', 'Order'), ('contract', 'Contract'), ('agreement', 'Agreement'), ('reception', 'Reception'), ('invoice', 'Related Invoice')], 'Document'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-italy
PULL REQUEST
PULL REQUEST[19.0][MIG] l10n_it_edi_related_document: Migration to 19.0 (#5084)