Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 6 Odoo series since 14.0

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

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

Description

El módulo nos divide los IVA según la prorrata de la compañía.

Dependencies

Odoo dependencies
OCA/account-financial-reporting:
OCA/l10n-spain:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
Python dependencies
unidecode
System dependencies
None
Required by
l10n_es_aeat_mod303_vat_prorate

Code analysis

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

Views touched 6

XML IDNameModelTypeStatus
account_move_form_view account.move.form (in l10n_es_vat_prorate) account.move form Inherits account.view_move_form
account_tax_form_view account.tax.form (in l10n_es_vat_prorate) account.tax form Inherits account.view_tax_form
account_update_vat_prorate_form_view account.update.vat_prorate.form account.update.vat_prorate form New
res_company_form_view res.company.form (in l10n_es_vat_prorate) res.company form Inherits base.view_company_form
res_company_vat_prorate_form_view res.company.vat.prorate.form (in l10n_es_vat_prorate) res.company.vat.prorate form New
res_company_vat_prorate_list_view res.company.vat.prorate.list (in l10n_es_vat_prorate) res.company.vat.prorate list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (2)
  • prorate_id Many2one → res.company.vat.prorate
    compute='_compute_prorate_id' copy=False store=True args: 'res.company.vat.prorate'
  • with_special_vat_prorate Boolean
    compute='_compute_prorate_id' copy=False store=True
Public methods (3)
  • button_draft(self)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (3)
  • prorate_line_ids Many2many → account.move.line
    column1='account_move_line_id' column2='prorate_move_line_id' copy=False relation='account_move_line_prorate_move_line_rel' args: 'account.move.line'
  • vat_prorate Boolean
    copy=False help='The line is a vat prorate' string='Is vat prorate'
  • with_vat_prorate Boolean
    compute='_compute_with_vat_prorate' copy=False readonly=False store=True
Public methods (0)

No public methods.

New fields (3)
  • company_with_vat_prorate Boolean
    related='company_id.with_vat_prorate' string='Company with VAT prorate'
  • prorate_account_ids Many2many → account.account
    compute='_compute_with_vat_prorate' help='Accounts to apply the recompute' readonly=True store=True args: 'account.account'
  • with_vat_prorate Boolean
    compute='_compute_with_vat_prorate' readonly=False store=True string='With VAT Prorate'
Public methods (0)

No public methods.

New fields (3)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True
  • vat_prorate_ids One2many → res.company.vat.prorate.wizard
    inverse_name='wizard_id' args: 'res.company.vat.prorate.wizard'
  • with_vat_prorate Boolean
    help='If this option is enabled, all invoice lines with VAT will be prorated' string='With VAT Prorate'
Public methods (2)
  • default_get(self, field_list)
    @api.model
  • execute(self)

New fields (2)
  • vat_prorate_ids One2many → res.company.vat.prorate
    inverse_name='company_id' args: 'res.company.vat.prorate'
  • with_vat_prorate Boolean
    help='If this option is enabled, all invoice lines with VAT will be prorated' string='With VAT Prorate'
Public methods (1)
  • get_prorate(self, date)

New fields (6)
  • account_id Many2one → account.account
    check_company=True comodel_name='account.account' domain="[('active', '=', True), ('account_type', 'not in', ['asset_receivable', 'liability_payable'])]" help='Specify which account will be used to post the prorate entries. If no account is assigned, the process will follow the standard flow.'
  • company_id Many2one → res.company
    required=True args: 'res.company'
  • date Date
    default=fields.Date.context_today required=True
  • special_vat_prorate_default Boolean
    help='If the Special VAT Prorate is enabled, this value indicates whether all the invoice lines will be prorated by default. On the other hand, all the invoice lines will be not prorated by default.' string='Special VAT Prorate Default'
  • type Selection
    default='general' help='If the general prorate is enabled, all invoice lines will be prorated. If the special prorate is enabled, you will be able to select which invoice lines will be prorated.' required=True selection=[('general', 'General'), ('special', 'Special')]
  • vat_prorate Float
Public methods (0)

No public methods.

New fields (2)
  • origin_vat_prorate_id Many2one → res.company.vat.prorate
    comodel_name='res.company.vat.prorate'
  • wizard_id Many2one → account.update.vat_prorate
    comodel_name='account.update.vat_prorate'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…