diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index 9b1ffdda..3ce33bc9 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -14,6 +14,7 @@ "base", "attachment_minio", "base_external_report_layout", + "canada_vat_label", "ir_attachment_access_token_portal", "lang_fr_activated", "mail_bot_no_pong", diff --git a/Dockerfile b/Dockerfile index b352abc3..8b975de7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ USER odoo COPY attachment_minio /mnt/extra-addons/attachment_minio COPY base_external_report_layout /mnt/extra-addons/base_external_report_layout +COPY canada_vat_label /mnt/extra-addons/canada_vat_label COPY ir_attachment_access_token_portal /mnt/extra-addons/ir_attachment_access_token_portal COPY lang_fr_activated /mnt/extra-addons/lang_fr_activated COPY mail_bot_no_pong /mnt/extra-addons/mail_bot_no_pong diff --git a/canada_vat_label/README.rst b/canada_vat_label/README.rst new file mode 100644 index 00000000..fe7061e3 --- /dev/null +++ b/canada_vat_label/README.rst @@ -0,0 +1,36 @@ +================ +Canada Vat Label +================ +This module customizes the ``VAT`` label for Canada. + +.. contents:: Table of Contents + +Context +------- +Each company in France has a VAT number. VAT means ``Value-Added Tax``. + +In Quebec, each company has 2 numbers: ``GST`` and ``QST``. +In Ontario, companies have a single ``HST`` number. + +In Odoo, the field ``vat_label`` of res.country allows to define the label for +the equivalent of ``VAT``. + +This mecanism does is inadequate in Canada. + +Overview +-------- +The solution for Canada is to write all numbers in the same field. + +.. image:: static/description/quebec_company.png + +The value entered in the field is displayed as is in the footer of external reports. + +.. image:: static/description/quebec_footer.png + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) + +More information +---------------- +* Meet us at https://bit.ly/numigi-com diff --git a/canada_vat_label/__init__.py b/canada_vat_label/__init__.py new file mode 100644 index 00000000..a47bc6aa --- /dev/null +++ b/canada_vat_label/__init__.py @@ -0,0 +1,2 @@ +# Copyright 2020 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/canada_vat_label/__manifest__.py b/canada_vat_label/__manifest__.py new file mode 100644 index 00000000..78b6e570 --- /dev/null +++ b/canada_vat_label/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2020 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +{ + "name": "Canada VAT Label", + "version": "16.0.1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "license": "LGPL-3", + "category": "Other", + "summary": "Customize VAT labels for Canada", + "depends": ["web", "web_custom_label", "lang_fr_activated"], + "data": ["data/web_custom_label.xml", "views/report_footer.xml"], + "installable": True, +} diff --git a/canada_vat_label/data/web_custom_label.xml b/canada_vat_label/data/web_custom_label.xml new file mode 100644 index 00000000..a0a3edcc --- /dev/null +++ b/canada_vat_label/data/web_custom_label.xml @@ -0,0 +1,22 @@ + + + + + en_US + + field + string + vat + Tax Number + + + + fr_FR + + field + string + vat + Numéro de taxe + + + diff --git a/canada_vat_label/static/description/icon.png b/canada_vat_label/static/description/icon.png new file mode 100644 index 00000000..ebbb1c38 Binary files /dev/null and b/canada_vat_label/static/description/icon.png differ diff --git a/canada_vat_label/static/description/quebec_company.png b/canada_vat_label/static/description/quebec_company.png new file mode 100644 index 00000000..98eb5052 Binary files /dev/null and b/canada_vat_label/static/description/quebec_company.png differ diff --git a/canada_vat_label/static/description/quebec_footer.png b/canada_vat_label/static/description/quebec_footer.png new file mode 100644 index 00000000..84142fde Binary files /dev/null and b/canada_vat_label/static/description/quebec_footer.png differ diff --git a/canada_vat_label/views/report_footer.xml b/canada_vat_label/views/report_footer.xml new file mode 100644 index 00000000..0ca74418 --- /dev/null +++ b/canada_vat_label/views/report_footer.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + diff --git a/gitoo.yml b/gitoo.yml index 1491109b..e9ca2e33 100644 --- a/gitoo.yml +++ b/gitoo.yml @@ -50,3 +50,8 @@ includes: - web_view_searchpanel - web_drop_target + - +- url: https://github.com/Numigi/odoo-web-addons + branch: "16.0" + includes: + - web_custom_label