ITA - Dichiarazione di intento

l10n_it_declaration_of_intent
REPOSITORY
REPOSITORYOCA/l10n-italy
GIT
GIThttps://github.com/OCA/l10n-italy.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-italy/tree/16.0/l10n_it_declaration_of_intent
VERSION
VERSION 1.1.2
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sergio Corato, Francesco Apruzzese, Glauco Prina, Lara Baggio
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sergio Corato, Francesco Apruzzese, Glauco Prina, Lara Baggio
COMMITTERS
COMMITTERSSergio Zanchetta, tafaRU, Weblate, OCA-git-bot, Simone Rubino, oca-ci, Stefano Consolaro, matteo.tognini, Marco Colombo, odooNextev, michelerusti, Borruso
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-italy
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:11:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
**Italiano**

Questo modulo consente di gestire le dichiarazioni d'intento.

**English**

This module allows you to manage declarations of intent.

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
declaration_of_intent_account_position_form Add declaration of intent fields account.fiscal.position field Inherits account.view_account_position_form
declaration_of_intent_form Form view for declaration of intent l10n_it_declaration_of_intent.declaration form New
declaration_of_intent_invoice_form Add declaration of intent fields to invoice form account.move field Inherits account.view_move_form
declaration_of_intent_invoice_line_form Add declaration of intent fields to invoice line form account.move.line field Inherits account.view_move_line_form
declaration_of_intent_search Search view for declaration_of_intent l10n_it_declaration_of_intent.declaration search New
declaration_of_intent_tree Tree view for declaration_of_intent l10n_it_declaration_of_intent.declaration tree New
declaration_of_intent_view_company_form Add declaration of intent fields res.company xpath Inherits base.view_company_form
select_manually_declarations_wizard Select Manually Declarations l10n_it_declaration_of_intent.select_declarations form New
Models touched (9)

New fields (1)
  • valid_for_declaration_of_intent Boolean
    args: 'Valid for declaration of intent'
Public methods (0)

No public methods.

New fields (1)
  • declaration_of_intent_ids Many2many → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' string='Declarations of intent'
Public methods (9)
  • button_cancel(self)
  • check_declarations_amounts(self, declarations)
    Compare this invoice's tax amounts and `declarations` plafond. An exception is raised if the plafond of the declarations is not sufficient for this invoice's taxes.
  • get_declaration_residual_amounts(self, declarations)
    Get residual amount for every `declarations`.
  • get_declarations(self)
    Get declarations linked directly or indirectly to this invoice.
  • get_declarations_used_amounts(self, declarations)
    Get used amount by declarations for this invoice.
  • get_move_lines_by_declaration(self, lines)
    @api.model
    Get account move lines grouped by the declaration forced in each line.
  • get_type_short(self)
    Get in/out value from the invoice. This will then be matched with field l10n_it_declaration_of_intent.declaration.type. For instance: an invoice of type `in_refund` returns `in`, an invoice of type `out_refund` returns `out`, an invoice of type `entry` returns ``.
  • select_manually_declarations(self)
  • update_declarations(self, declarations_used_amounts, grouped_lines)
    Update the declarations adding a new line representing this invoice. Also add a comment in this invoice stating which declaration is into.

New fields (1)
  • force_declaration_of_intent_id Many2one → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' string='Force Declaration of Intent'
Public methods (0)

No public methods.

New fields (19)
  • available_amount Monetary
    compute='_compute_amounts' store=True
  • company_id Many2one → res.company
    default=<expr> string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    default=_default_currency string='Currency' args: 'res.currency'
  • date Date
    required=True string='Telematic Protocol Date'
  • date_end Date
    required=True
  • date_start Date
    required=True
  • fiscal_position_id Many2one → account.fiscal.position
    domain=[('valid_for_declaration_of_intent', '=', True)] required=True string='Fiscal Position' args: 'account.fiscal.position'
  • force_close Boolean
  • limit_amount Monetary
    required=True
  • line_ids One2many → l10n_it_declaration_of_intent.declaration_line
    comodel_name='l10n_it_declaration_of_intent.declaration_line' inverse_name='declaration_id' string='Lines'
  • number Char
    copy=False
  • partner_document_date Date
    help="Date of partner's document" string='Document Date'
  • partner_document_number Char
    help="Number of partner's document" string='Document Number'
  • partner_id Many2one → res.partner
    required=True string='Partner' args: 'res.partner'
  • state Selection
    compute='_compute_state' store=True args: [('valid', 'Valid'), ('expired', 'Expired'), ('close', 'Closed')]
  • taxes_ids Many2many → account.tax
    required=True string='Taxes' args: 'account.tax'
  • telematic_protocol Char
    required=True
  • type Selection
    default='in' required=True args: [('in', 'Issued from company'), ('out', 'Received from customers')]
  • used_amount Monetary
    compute='_compute_amounts' store=True
Public methods (7)
  • change_force_close(self)
  • create(self, vals_list)
    @api.model_create_multi
  • get_all_for_partner(self, type_d=None, partner_id=False, ignore_state=False)
  • get_valid(self, type_d=None, partner_id=False, date=False)
  • name_get(self)
  • onchange_fiscal_position_id(self)
    @api.onchange('fiscal_position_id', 'type')
  • unlink(self)

New fields (9)
  • amount Monetary
  • base_amount Monetary
  • company_id Many2one → res.company
    related='declaration_id.company_id' string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    string='Currency' args: 'res.currency'
  • date_invoice Date
    related='invoice_id.invoice_date' string='Date Invoice'
  • declaration_id Many2one → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' string='Declaration'
  • invoice_id Many2one → account.move
    ondelete='cascade' string='Invoice' args: 'account.move'
  • move_line_ids Many2many → account.move.line
    comodel_name='account.move.line' ondelete='cascade' relation='move_line_declaration_line_rel' string='Move Lines'
  • taxes_ids Many2many → account.tax
    string='Taxes' args: 'account.tax'
Public methods (0)

No public methods.

New fields (1)
  • declaration_ids Many2many → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' default=_default_declaration relation='declaration_select_manually_rel' string='Declarations of Intent'
Public methods (1)
  • confirm(self)

New fields (4)
  • company_id Many2one → res.company
    string='Company' args: 'res.company'
  • limit_amount Float
  • used_amount Float
    compute='_compute_used_amount'
  • year Char
    required=True
Public methods (0)

No public methods.

New fields (1)
  • declaration_yearly_limit_ids One2many → l10n_it_declaration_of_intent.yearly_limit
    comodel_name='l10n_it_declaration_of_intent.yearly_limit' inverse_name='company_id' string='Declaration yearly limit'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • onchange_date_order(self)
    @api.onchange('date_order')
REPOSITORY
REPOSITORYOCA/l10n-italy
GIT
GIThttps://github.com/OCA/l10n-italy.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-italy/tree/14.0/l10n_it_declaration_of_intent
VERSION
VERSION 1.4.2
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Sergio Corato, Francesco Apruzzese, Glauco Prina, Lara Baggio
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Sergio Corato, Francesco Apruzzese, Glauco Prina, Lara Baggio
COMMITTERS
COMMITTERSSergio Zanchetta, tafaRU, OCA Transbot, oca-travis, Weblate, OCA-git-bot, SimoRubi, sergiocorato, Simone Rubino, Alfredo Zamora, oca-ci, Docker @ kuntrawant, Stefano Consolaro, matteoopenf, Alessandro Uffreduzzi, matteo.tognini, Marco Colombo, Borruso, daniel-chionne, SoSylwe
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-italy
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
declaration_of_intent_account_position_form Add declaration of intent fields account.fiscal.position field Inherits account.view_account_position_form
declaration_of_intent_form Form view for declaration of intent l10n_it_declaration_of_intent.declaration form New
declaration_of_intent_invoice_form Add declaration of intent fields to invoice form account.move field Inherits account.view_move_form
declaration_of_intent_invoice_line_form Add declaration of intent fields to invoice line form account.move.line field Inherits account.view_move_line_form
declaration_of_intent_search Search view for declaration_of_intent l10n_it_declaration_of_intent.declaration search New
declaration_of_intent_tree Tree view for declaration_of_intent l10n_it_declaration_of_intent.declaration tree New
declaration_of_intent_view_company_form Add declaration of intent fields res.company xpath Inherits base.view_company_form
select_manually_declarations_wizard Select Manually Declarations l10n_it_declaration_of_intent.select_declarations form New
Models touched (9)

New fields (1)
  • valid_for_declaration_of_intent Boolean
    args: 'Valid for declaration of intent'
Public methods (0)

No public methods.

New fields (1)
  • declaration_of_intent_ids Many2many → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' string='Declarations of intent'
Public methods (9)
  • button_cancel(self)
  • check_declarations_amounts(self, declarations)
    Compare this invoice's tax amounts and `declarations` plafond. An exception is raised if the plafond of the declarations is not sufficient for this invoice's taxes.
  • get_declaration_residual_amounts(self, declarations)
    Get residual amount for every `declarations`.
  • get_declarations(self)
    Get declarations linked directly or indirectly to this invoice.
  • get_declarations_used_amounts(self, declarations)
    Get used amount by declarations for this invoice.
  • get_move_lines_by_declaration(self, lines)
    @api.model
    Get account move lines grouped by the declaration forced in each line.
  • get_type_short(self)
    Get in/out value from the invoice. This will then be matched with field l10n_it_declaration_of_intent.declaration.type. For instance: an invoice of type `in_refund` returns `in`, an invoice of type `out_refund` returns `out`, an invoice of type `entry` returns ``.
  • select_manually_declarations(self)
  • update_declarations(self, declarations_used_amounts, grouped_lines)
    Update the declarations adding a new line representing this invoice. Also add a comment in this invoice stating which declaration is into.

New fields (1)
  • force_declaration_of_intent_id Many2one → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' string='Force Declaration of Intent'
Public methods (0)

No public methods.

New fields (19)
  • available_amount Monetary
    compute='_compute_amounts' store=True
  • company_id Many2one → res.company
    default=<expr> string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    default=_default_currency string='Currency' args: 'res.currency'
  • date Date
    required=True string='Telematic Protocol Date'
  • date_end Date
    required=True
  • date_start Date
    required=True
  • fiscal_position_id Many2one → account.fiscal.position
    domain=[('valid_for_declaration_of_intent', '=', True)] required=True string='Fiscal Position' args: 'account.fiscal.position'
  • force_close Boolean
  • limit_amount Monetary
    required=True
  • line_ids One2many → l10n_it_declaration_of_intent.declaration_line
    comodel_name='l10n_it_declaration_of_intent.declaration_line' inverse_name='declaration_id' string='Lines'
  • number Char
    copy=False
  • partner_document_date Date
    help="Date of partner's document" string='Document Date'
  • partner_document_number Char
    help="Number of partner's document" string='Document Number'
  • partner_id Many2one → res.partner
    required=True string='Partner' args: 'res.partner'
  • state Selection
    compute='_compute_state' store=True args: [('valid', 'Valid'), ('expired', 'Expired'), ('close', 'Closed')]
  • taxes_ids Many2many → account.tax
    required=True string='Taxes' args: 'account.tax'
  • telematic_protocol Char
    required=True
  • type Selection
    default='in' required=True args: [('in', 'Issued from company'), ('out', 'Received from customers')]
  • used_amount Monetary
    compute='_compute_amounts' store=True
Public methods (7)
  • change_force_close(self)
  • create(self, values)
    @api.model
  • get_all_for_partner(self, type_d=None, partner_id=False, ignore_state=False)
  • get_valid(self, type_d=None, partner_id=False, date=False)
  • name_get(self)
  • onchange_fiscal_position_id(self)
    @api.onchange('fiscal_position_id', 'type')
  • unlink(self)

New fields (9)
  • amount Monetary
  • base_amount Monetary
    string='Base Amount'
  • company_id Many2one → res.company
    related='declaration_id.company_id' string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    string='Currency' args: 'res.currency'
  • date_invoice Date
    related='invoice_id.invoice_date' string='Date Invoice'
  • declaration_id Many2one → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' string='Declaration'
  • invoice_id Many2one → account.move
    ondelete='cascade' string='Invoice' args: 'account.move'
  • move_line_ids Many2many → account.move.line
    comodel_name='account.move.line' ondelete='cascade' relation='move_line_declaration_line_rel' string='Move Lines'
  • taxes_ids Many2many → account.tax
    string='Taxes' args: 'account.tax'
Public methods (0)

No public methods.

New fields (1)
  • declaration_ids Many2many → l10n_it_declaration_of_intent.declaration
    comodel_name='l10n_it_declaration_of_intent.declaration' default=_default_declaration relation='declaration_select_manually_rel' string='Declarations of Intent'
Public methods (1)
  • confirm(self)

New fields (5)
  • actual_used_amount Float
    compute='_compute_used_amount' string='Actual Used Amount'
  • company_id Many2one → res.company
    string='Company' args: 'res.company'
  • limit_amount Float
    string='Plafond'
  • used_amount Float
    compute='_compute_used_amount' string='Issued Declarations'
  • year Char
    required=True
Public methods (0)

No public methods.

New fields (1)
  • declaration_yearly_limit_ids One2many → l10n_it_declaration_of_intent.yearly_limit
    comodel_name='l10n_it_declaration_of_intent.yearly_limit' inverse_name='company_id' string='Declaration yearly limit'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • onchange_date_order(self)
    @api.onchange('date_order')
  • onchange_partner_id(self)
    @api.onchange('partner_id')