Skip to content

Commit 5ecb2da

Browse files
committed
[17.0][MIG] account_fiscal_position_vat_check: Migrate to 17.0
[FIX] #MIGRATION | account_fiscal_position_vat_check: Added missing contributor [FIX] account_fiscal_position_vat_check: Added line at EOF [FIX] account_fiscal_position_vat_check: Executed pre-commit to pass a build [FIX] account_fiscal_position_vat_check: Executed pre-commit to pass a build, modified pys and views [FIX] account_fiscal_position_vat_check: Executed pre-commit to pass a build, modified pys [IMP] account_fiscal_position_vat_check: Rename xml files with *_views.xml [FIX] account_fiscal_position_vat_check: Removed deprecated lines from index [FIX] account_fiscal_position_vat_check: Fixed flake8 errors [FIX] account_fiscal_position_vat_check: Fixed flake8 errors [FIX] account_fiscal_position_vat_check: Fixed flake8 errors
1 parent e60aed4 commit 5ecb2da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4083
-0
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
=================================
2+
Account Fiscal Position VAT Check
3+
=================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:991ebe0b923c590f8e158bd00b87482b223e84bd35e6db85bec68ba205974f6d
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github
20+
:target: https://github.com/OCA/account-financial-tools/tree/17.0/account_fiscal_position_vat_check
21+
:alt: OCA/account-financial-tools
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_fiscal_position_vat_check
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
With this module, when a user tries to validate a customer invoice or
32+
refund with a fiscal position that requires VAT, Odoo blocks the
33+
validation of the invoice if the customer doesn't have a VAT number in
34+
Odoo.
35+
36+
|image1|
37+
38+
In the European Union (EU), when an EU company sends an invoice to
39+
another EU company in another country, it can invoice without VAT (most
40+
of the time) but the VAT number of the customer must be displayed on the
41+
invoice.
42+
43+
.. |image1| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/17.0/account_fiscal_position_vat_check/static/description/vat_check_invoice_validation.png
44+
45+
**Table of contents**
46+
47+
.. contents::
48+
:local:
49+
50+
Configuration
51+
=============
52+
53+
To configure this module, go to the menu *Invoicing > Configuration >
54+
Accounting > Fiscal Positions* and enable the option **VAT Required** on
55+
the relevant fiscal positions.
56+
57+
|image1|
58+
59+
.. |image1| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/17.0/account_fiscal_position_vat_check/static/description/fiscal_position_form.png
60+
61+
Usage
62+
=====
63+
64+
On the partner form view, Odoo will display a yellow warning banner when
65+
the partner has a fiscal position that has the option **VAT Required**
66+
but its VAT number is not set.
67+
68+
|image1|
69+
70+
.. |image1| image:: https://raw.githubusercontent.com/OCA/account-financial-tools/17.0/account_fiscal_position_vat_check/static/description/warning_banner_vat_required.png
71+
72+
Bug Tracker
73+
===========
74+
75+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
76+
In case of trouble, please check there if your issue has already been reported.
77+
If you spotted it first, help us to smash it by providing a detailed and welcomed
78+
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_fiscal_position_vat_check%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
79+
80+
Do not contact contributors directly about support or help with technical issues.
81+
82+
Credits
83+
=======
84+
85+
Authors
86+
-------
87+
88+
* Akretion
89+
90+
Contributors
91+
------------
92+
93+
- Alexis de Lattre <[email protected]>
94+
- Christian Mahlich <[email protected]>
95+
- Aktiv Software <[email protected]>
96+
97+
Maintainers
98+
-----------
99+
100+
This module is maintained by the OCA.
101+
102+
.. image:: https://odoo-community.org/logo.png
103+
:alt: Odoo Community Association
104+
:target: https://odoo-community.org
105+
106+
OCA, or the Odoo Community Association, is a nonprofit organization whose
107+
mission is to support the collaborative development of Odoo features and
108+
promote its widespread use.
109+
110+
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/17.0/account_fiscal_position_vat_check>`_ project on GitHub.
111+
112+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2013-2020 Akretion France (https://akretion.com/)
2+
# @author: Alexis de Lattre <[email protected]>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
'name': 'Account Fiscal Position VAT Check',
7+
'version': '17.0.1.0.1',
8+
'category': 'Invoices & Payments',
9+
'license': 'AGPL-3',
10+
'summary': 'Check VAT on invoice validation',
11+
'author': 'Akretion,Odoo Community Association (OCA)',
12+
'website': 'https://github.com/OCA/account-financial-tools',
13+
'depends': ['account', 'base_vat'],
14+
'data': [
15+
'views/account_fiscal_position_views.xml',
16+
'views/res_partner_views.xml',
17+
],
18+
'installable': True,
19+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_fiscal_position_vat_check
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: account_fiscal_position_vat_check
17+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
18+
msgid "<b>Missing VAT number</b>: this partner has the fiscal position"
19+
msgstr ""
20+
21+
#. module: account_fiscal_position_vat_check
22+
#: model:ir.model,name:account_fiscal_position_vat_check.model_res_partner
23+
msgid "Contact"
24+
msgstr ""
25+
26+
#. module: account_fiscal_position_vat_check
27+
#: model:ir.model,name:account_fiscal_position_vat_check.model_account_move
28+
msgid "Journal Entry"
29+
msgstr ""
30+
31+
#. module: account_fiscal_position_vat_check
32+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_partner__show_warning_vat_required
33+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_users__show_warning_vat_required
34+
msgid "Show Warning Vat Required"
35+
msgstr ""
36+
37+
#. module: account_fiscal_position_vat_check
38+
#. odoo-python
39+
#: code:addons/account_fiscal_position_vat_check/models/account_move.py:0
40+
#, python-format
41+
msgid ""
42+
"You are trying to validate a customer invoice/refund with the fiscal "
43+
"position '%(fp)s' that require the customer to have a VAT number. But the "
44+
"Customer '%(rp)s' doesn't have a VAT number in Odoo. Please add the VAT "
45+
"number of this Customer in Odoo and try to validate again."
46+
msgstr ""
47+
48+
#. module: account_fiscal_position_vat_check
49+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
50+
msgid "that require to know the VAT number of the partner."
51+
msgstr ""
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_fiscal_position_vat_check
4+
#
5+
# Translators:
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: account-financial-tools (8.0)\n"
9+
"Report-Msgid-Bugs-To: \n"
10+
"POT-Creation-Date: 2015-07-01 13:25+0000\n"
11+
"PO-Revision-Date: 2015-06-03 15:57+0000\n"
12+
"Last-Translator: <>\n"
13+
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-account-financial-"
14+
"tools-8-0/language/ar/)\n"
15+
"Language: ar\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
20+
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
21+
22+
#. module: account_fiscal_position_vat_check
23+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
24+
msgid "<b>Missing VAT number</b>: this partner has the fiscal position"
25+
msgstr ""
26+
27+
#. module: account_fiscal_position_vat_check
28+
#: model:ir.model,name:account_fiscal_position_vat_check.model_res_partner
29+
msgid "Contact"
30+
msgstr ""
31+
32+
#. module: account_fiscal_position_vat_check
33+
#: model:ir.model,name:account_fiscal_position_vat_check.model_account_move
34+
msgid "Journal Entry"
35+
msgstr ""
36+
37+
#. module: account_fiscal_position_vat_check
38+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_partner__show_warning_vat_required
39+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_users__show_warning_vat_required
40+
msgid "Show Warning Vat Required"
41+
msgstr ""
42+
43+
#. module: account_fiscal_position_vat_check
44+
#. odoo-python
45+
#: code:addons/account_fiscal_position_vat_check/models/account_move.py:0
46+
#, python-format
47+
msgid ""
48+
"You are trying to validate a customer invoice/refund with the fiscal "
49+
"position '%(fp)s' that require the customer to have a VAT number. But the "
50+
"Customer '%(rp)s' doesn't have a VAT number in Odoo. Please add the VAT "
51+
"number of this Customer in Odoo and try to validate again."
52+
msgstr ""
53+
54+
#. module: account_fiscal_position_vat_check
55+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
56+
msgid "that require to know the VAT number of the partner."
57+
msgstr ""
58+
59+
#~ msgid "Invoice"
60+
#~ msgstr "فاتورة"
61+
62+
#~ msgid "Partner"
63+
#~ msgstr "الشريك"
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_fiscal_position_vat_check
4+
#
5+
# Translators:
6+
# OCA Transbot <[email protected]>, 2017
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2017-12-22 03:41+0000\n"
12+
"PO-Revision-Date: 2017-12-22 03:41+0000\n"
13+
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
14+
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
15+
"Language: bg\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20+
21+
#. module: account_fiscal_position_vat_check
22+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
23+
msgid "<b>Missing VAT number</b>: this partner has the fiscal position"
24+
msgstr ""
25+
26+
#. module: account_fiscal_position_vat_check
27+
#: model:ir.model,name:account_fiscal_position_vat_check.model_res_partner
28+
msgid "Contact"
29+
msgstr ""
30+
31+
#. module: account_fiscal_position_vat_check
32+
#: model:ir.model,name:account_fiscal_position_vat_check.model_account_move
33+
msgid "Journal Entry"
34+
msgstr ""
35+
36+
#. module: account_fiscal_position_vat_check
37+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_partner__show_warning_vat_required
38+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_users__show_warning_vat_required
39+
msgid "Show Warning Vat Required"
40+
msgstr ""
41+
42+
#. module: account_fiscal_position_vat_check
43+
#. odoo-python
44+
#: code:addons/account_fiscal_position_vat_check/models/account_move.py:0
45+
#, python-format
46+
msgid ""
47+
"You are trying to validate a customer invoice/refund with the fiscal "
48+
"position '%(fp)s' that require the customer to have a VAT number. But the "
49+
"Customer '%(rp)s' doesn't have a VAT number in Odoo. Please add the VAT "
50+
"number of this Customer in Odoo and try to validate again."
51+
msgstr ""
52+
53+
#. module: account_fiscal_position_vat_check
54+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
55+
msgid "that require to know the VAT number of the partner."
56+
msgstr ""
57+
58+
#~ msgid "Invoice"
59+
#~ msgstr "Фактура"
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_fiscal_position_vat_check
4+
#
5+
# Translators:
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: account-financial-tools (8.0)\n"
9+
"Report-Msgid-Bugs-To: \n"
10+
"POT-Creation-Date: 2015-07-01 13:25+0000\n"
11+
"PO-Revision-Date: 2015-06-03 15:57+0000\n"
12+
"Last-Translator: <>\n"
13+
"Language-Team: Bosnian (http://www.transifex.com/oca/OCA-account-financial-"
14+
"tools-8-0/language/bs/)\n"
15+
"Language: bs\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
21+
22+
#. module: account_fiscal_position_vat_check
23+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
24+
msgid "<b>Missing VAT number</b>: this partner has the fiscal position"
25+
msgstr ""
26+
27+
#. module: account_fiscal_position_vat_check
28+
#: model:ir.model,name:account_fiscal_position_vat_check.model_res_partner
29+
msgid "Contact"
30+
msgstr ""
31+
32+
#. module: account_fiscal_position_vat_check
33+
#: model:ir.model,name:account_fiscal_position_vat_check.model_account_move
34+
msgid "Journal Entry"
35+
msgstr ""
36+
37+
#. module: account_fiscal_position_vat_check
38+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_partner__show_warning_vat_required
39+
#: model:ir.model.fields,field_description:account_fiscal_position_vat_check.field_res_users__show_warning_vat_required
40+
msgid "Show Warning Vat Required"
41+
msgstr ""
42+
43+
#. module: account_fiscal_position_vat_check
44+
#. odoo-python
45+
#: code:addons/account_fiscal_position_vat_check/models/account_move.py:0
46+
#, python-format
47+
msgid ""
48+
"You are trying to validate a customer invoice/refund with the fiscal "
49+
"position '%(fp)s' that require the customer to have a VAT number. But the "
50+
"Customer '%(rp)s' doesn't have a VAT number in Odoo. Please add the VAT "
51+
"number of this Customer in Odoo and try to validate again."
52+
msgstr ""
53+
54+
#. module: account_fiscal_position_vat_check
55+
#: model_terms:ir.ui.view,arch_db:account_fiscal_position_vat_check.view_partner_property_form
56+
msgid "that require to know the VAT number of the partner."
57+
msgstr ""
58+
59+
#~ msgid "Invoice"
60+
#~ msgstr "Faktura"
61+
62+
#~ msgid "Partner"
63+
#~ msgstr "Partner"

0 commit comments

Comments
 (0)