Metadata-Version: 2.1
Name: odoo-addon-account_fiscal_position_vies_warning
Version: 18.0.1.0.1.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Account Fiscal Position Vies Warning
Home-page: https://github.com/OCA/account-fiscal-rule
License: LGPL-3
Author: Moduon, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

====================================
Account Fiscal Position Vies Warning
====================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:2e4157f18070d64e3a663d7241b6b00d1de58e49d4494ef81d23bba06c4d441d
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--fiscal--rule-lightgray.png?logo=github
    :target: https://github.com/OCA/account-fiscal-rule/tree/18.0/account_fiscal_position_vies_warning
    :alt: OCA/account-fiscal-rule
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/account-fiscal-rule-18-0/account-fiscal-rule-18-0-account_fiscal_position_vies_warning
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/account-fiscal-rule&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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).

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

This module was developed to prevent errors when setting the some Fiscal
Position (for ex. in Spain location it's Intra-community) if the
partner’s VAT number is not registered in VIES

Configuration
=============

To use this module you need:

- Go to Invoicing > Configuration > Settings and check Verify VAT
  Numbers
- Go to Invoicing > Configuration > Fiscal Position and create or select
  one
- Set a Show Vies Warning

Usage
=====

Partner

1. Create or edit a partner.
2. Enter the VAT number.
3. Set the Fiscal Position that have Show Vies Warning active.

   - If the VAT is registered in VIES, the partner form can be saved.
   - Otherwise, Odoo will display a warning message.

Invoicing

1. Create a new invoice.
2. Select a partner who is not registered in VIES.
3. Set the Fiscal Position that have Show Vies Warning active and
   confirm the invoice.

   - If the VAT is registered in VIES, the invoice can be confirmed.
   - Otherwise, Odoo will display a warning message.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-fiscal-rule/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-fiscal-rule/issues/new?body=module:%20account_fiscal_position_vies_warning%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Moduon

Contributors
------------

- Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
- Andrii Kompaniiets (`Moduon <https://www.moduon.team/>`__)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
    :target: https://github.com/rafaelbn
    :alt: rafaelbn
.. |maintainer-Andrii9090| image:: https://github.com/Andrii9090.png?size=40px
    :target: https://github.com/Andrii9090
    :alt: Andrii9090

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-rafaelbn| |maintainer-Andrii9090| 

This module is part of the `OCA/account-fiscal-rule <https://github.com/OCA/account-fiscal-rule/tree/18.0/account_fiscal_position_vies_warning>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
