Account Fiscal Position Vies Warning

account_fiscal_position_vies_warning
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/19.0/account_fiscal_position_vies_warning
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSJairo Llopis, Weblate, OCA-git-bot, oca-ci, Emilio Pascual
WEBSITE
WEBSITEhttps://github.com/OCA/account-fiscal-rule
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - contacts
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - base_vat
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds a verification on `res.partner` and `account.move` models 
ensuring that Fiscal positions with check Show Vies Warning can only be assigned to partners who have 
successfully passed VIES validation (vies_valid = True).

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_position_form_inherit_vies_warning account.fiscal.position.form account.fiscal.position field Inherits account.view_account_position_form
Models touched (3)

New fields (2)
  • is_show_vies_warning Boolean
    help='If this field is checked and the partner does not pass VIES validation, the partner record cannot be saved, and any invoices for this partner cannot be confirmed if this fiscal position is selected in the Partner form or on an Invoice' args: 'Show Vies Warning'
  • is_visible_show_vies_warning Boolean
    compute='_compute_visible_vies_warning' args: 'Visible Show Vies Warning'
Public methods (1)
  • raise_vies_warning(self, partner_name)

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)

New fields (0)

No new fields.

Public methods (1)
  • check_fiscal_position_and_vies_valid(self)
    @api.constrains('property_account_position_id')
REPOSITORY
REPOSITORYOCA/account-fiscal-rule
GIT
GIThttps://github.com/OCA/account-fiscal-rule.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-fiscal-rule/tree/18.0/account_fiscal_position_vies_warning
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Sabrina Martín, Andrii Kompaniiets
WEBSITE
WEBSITEhttps://github.com/OCA/account-fiscal-rule
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - contacts
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - base_vat
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds a verification on `res.partner` and `account.move` models 
ensuring that Fiscal positions with check Show Vies Warning can only be assigned to partners who have 
successfully passed VIES validation (vies_valid = True).

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_position_form_inherit_vies_warning account.fiscal.position.form account.fiscal.position field Inherits account.view_account_position_form
Models touched (3)

New fields (2)
  • is_show_vies_warning Boolean
    help='If this field is checked and the partner does not pass VIES validation, the partner record cannot be saved, and any invoices for this partner cannot be confirmed if this fiscal position is selected in the Partner form or on an Invoice' args: 'Show Vies Warning'
  • is_visible_show_vies_warning Boolean
    compute='_compute_visible_vies_warning' args: 'Visible Show Vies Warning'
Public methods (1)
  • raise_vies_warning(self, partner_name)

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)

New fields (0)

No new fields.

Public methods (1)
  • check_fiscal_position_and_vies_valid(self)
    @api.constrains('property_account_position_id')