ITA - Dichiarazione di intento
l10n_it_declaration_of_intent · OCA/l10n-italy
Replaces
l10n_it_dichiarazione_intento (14.0) Health
72/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.15 MB
Module directory on disk
Code analysis
4 migration notes
9 models
8 views
0 HTTP endpoints
Migration considerations
DeclarationOfIntent— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourcedeclaration_of_intent_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcedeclaration_of_intent_invoice_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcedeclaration_of_intent_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Italiano
Questo modulo consente di gestire le dichiarazioni d'intento.
English
This module allows you to manage declarations of intent.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
declaration_of_intent_account_position_form |
Add declaration of intent fields | account.fiscal.position | form | 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 | form | Inherits account.view_move_form |
declaration_of_intent_invoice_line_form |
Add declaration of intent fields to invoice line form | account.move.line | form | 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 | form | Inherits base.view_company_form |
select_manually_declarations_wizard |
Select Manually Declarations | l10n_it_declaration_of_intent.select_declarations | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
New fields (1)
-
valid_for_declaration_of_intentBooleanargs: 'Valid for declaration of intent'
No public methods.
New fields (1)
-
declaration_of_intent_idsMany2many → l10n_it_declaration_of_intent.declarationcomodel_name='l10n_it_declaration_of_intent.declaration'string='Declarations of intent'
-
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.modelGet 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_idMany2one → l10n_it_declaration_of_intent.declarationcomodel_name='l10n_it_declaration_of_intent.declaration'string='Force Declaration of Intent'
No public methods.
New fields (19)
-
available_amountMonetarycompute='_compute_amounts'store=True -
company_idMany2one → res.companydefault=<expr>string='Company' args: 'res.company' -
currency_idMany2one → res.currencydefault=_default_currencystring='Currency' args: 'res.currency' -
dateDaterequired=Truestring='Telematic Protocol Date' -
date_endDaterequired=True -
date_startDaterequired=True -
fiscal_position_idMany2one → account.fiscal.positiondomain=[('valid_for_declaration_of_intent', '=', True)]required=Truestring='Fiscal Position' args: 'account.fiscal.position' -
force_closeBoolean -
limit_amountMonetaryrequired=True -
line_idsOne2many → l10n_it_declaration_of_intent.declaration_linecomodel_name='l10n_it_declaration_of_intent.declaration_line'inverse_name='declaration_id'string='Lines' -
numberCharcopy=False -
partner_document_dateDatehelp="Date of partner's document"string='Document Date' -
partner_document_numberCharhelp="Number of partner's document"string='Document Number' -
partner_idMany2one → res.partnerrequired=Truestring='Partner' args: 'res.partner' -
stateSelectioncompute='_compute_state'store=True args: [('valid', 'Valid'), ('expired', 'Expired'), ('close', 'Closed')] -
taxes_idsMany2many → account.taxrequired=Truestring='Taxes' args: 'account.tax' -
telematic_protocolCharrequired=True -
typeSelectiondefault='in'required=True args: [('in', 'Issued from company'), ('out', 'Received from customers')] -
used_amountMonetarycompute='_compute_amounts'store=True
-
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)
-
amountMonetary -
base_amountMonetary -
company_idMany2one → res.companyrelated='declaration_id.company_id'string='Company' args: 'res.company' -
currency_idMany2one → res.currencystring='Currency' args: 'res.currency' -
date_invoiceDaterelated='invoice_id.invoice_date'string='Date Invoice' -
declaration_idMany2one → l10n_it_declaration_of_intent.declarationcomodel_name='l10n_it_declaration_of_intent.declaration'string='Declaration' -
invoice_idMany2one → account.moveondelete='cascade'string='Invoice' args: 'account.move' -
move_line_idsMany2many → account.move.linecomodel_name='account.move.line'ondelete='cascade'relation='move_line_declaration_line_rel'string='Move Lines' -
taxes_idsMany2many → account.taxstring='Taxes' args: 'account.tax'
No public methods.
New fields (1)
-
declaration_idsMany2many → l10n_it_declaration_of_intent.declarationcomodel_name='l10n_it_declaration_of_intent.declaration'default=_default_declarationrelation='declaration_select_manually_rel'string='Declarations of Intent'
-
confirm(self)
New fields (4)
-
company_idMany2one → res.companystring='Company' args: 'res.company' -
limit_amountFloat -
used_amountFloatcompute='_compute_used_amount' -
yearCharrequired=True
No public methods.
New fields (1)
-
declaration_yearly_limit_idsOne2many → l10n_it_declaration_of_intent.yearly_limitcomodel_name='l10n_it_declaration_of_intent.yearly_limit'inverse_name='company_id'string='Declaration yearly limit'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
onchange_date_order(self)@api.onchange('date_order')
Loading…