Repository
OCA/l10n-spain · module folder · Try on Runboat
Module version
2.0.0
Category
Uncategorized
Folder size
0.13 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-spain
Last tracking update
2026-08-07 08:42:46
Authors
Odoo Community Association (OCA), Tecnativa, Creu Blanca
Maintainers
Odoo Community Association (OCA), Tecnativa, Creu Blanca
Committers
Pedro M. Baeza, Emilio Pascual, Weblate, Andrii Kompaniiets, OCA-git-bot, oca-ci, christian-ramos-tecnativa
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, l10n_es_aeat_mod390_vat_prorate
Description
El módulo nos divide los IVA según la prorrata de la compañía.

Code Analysis

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 string='Company'
  • 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 (5)
  • company_id Many2one → res.company
    required=True args: 'res.company'
  • date Date
    default=fields.Date.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…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
157 days ago
Last activity
156 days ago
Repository
OCA/l10n-spain
Pull request
[19.0][MIG] l10n_es_vat_prorate: Migration to 19.0 (#4907)