Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] website_sale_checkout_country_vat: Migration to version 18.0 #1027

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions website_sale_checkout_country_vat/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=================================
Website Sale Checkout Country VAT
=================================

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

.. |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/licence-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%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/18.0/website_sale_checkout_country_vat
:alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_checkout_country_vat
: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/e-commerce&target_branch=18.0
:alt: Try me on Runboat

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

This module extends the functionality of website_sale module to
autocomplete VAT country code in checkout process.

**Table of contents**

.. contents::
:local:

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

The default country that will appear is the one of the current user, or
the one of the Public User assigned to the website, or the one of the
company that owns the website. Change it in the corresponding place to
get a sane default.

Usage
=====

When a customer makes a purchase and do the checkout process, the VAT
country code can be selected separated from the code itself. This is
useful in 2 ways:

- User is implicitly forced to input (select) a country with its code.
- Error in the VAT now only can be raised by an incorrect vat, not the
absence of the country code, which usually confuses users.

If you change the country for the address and the VAT is empty, the VAT
country changes automatically too.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/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/e-commerce/issues/new?body=module:%20website_sale_checkout_country_vat%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
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Sergio Teruel
- Carlos Dauden
- Pedro M. Baeza
- Jairo Llopis
- Alexandre Díaz
- Carlos Roca
- Ernesto Tejeda
- Pilar Vargas

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.

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/18.0/website_sale_checkout_country_vat>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions website_sale_checkout_country_vat/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2016 Sergio Teruel <[email protected]>
# Copyright 2016-2017 Jairo Llopis <[email protected]>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Website Sale Checkout Country VAT",
"summary": "Autocomplete VAT in checkout process",
"version": "18.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": ["base_vat", "website_sale", "website_snippet_country_dropdown"],
"data": ["views/templates.xml"],
"assets": {
"web.assets_frontend": [
"/website_sale_checkout_country_vat/static/src/js/dropdown.esm.js"
]
},
}
Empty file.
32 changes: 32 additions & 0 deletions website_sale_checkout_country_vat/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_checkout_country_vat
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-07-05 10:37+0200\n"
"PO-Revision-Date: 2016-07-05 10:38+0200\n"
"Last-Translator: Sergio Teruel <[email protected]>\n"
"Language-Team: \n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"

#~ msgid "Default country for VAT codes"
#~ msgstr "País por defecto para códigos NIF"

#~ msgid "Sale Checkout VAT"
#~ msgstr "NIF al comprar en línea"

#~ msgid "Website"
#~ msgstr "Sitio web"

#~ msgid "Default Country VAT Code"
#~ msgstr "Código de país por defecto para en NIF"

#~ msgid "vat"
#~ msgstr "NIF"
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
3 changes: 3 additions & 0 deletions website_sale_checkout_country_vat/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions website_sale_checkout_country_vat/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The default country that will appear is the one of the current user, or
the one of the Public User assigned to the website, or the one of the
company that owns the website. Change it in the corresponding place to
get a sane default.
9 changes: 9 additions & 0 deletions website_sale_checkout_country_vat/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- [Tecnativa](https://www.tecnativa.com):
- Sergio Teruel
- Carlos Dauden
- Pedro M. Baeza
- Jairo Llopis
- Alexandre Díaz
- Carlos Roca
- Ernesto Tejeda
- Pilar Vargas
2 changes: 2 additions & 0 deletions website_sale_checkout_country_vat/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of website_sale module to
autocomplete VAT country code in checkout process.
10 changes: 10 additions & 0 deletions website_sale_checkout_country_vat/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
When a customer makes a purchase and do the checkout process, the VAT
country code can be selected separated from the code itself. This is
useful in 2 ways:

- User is implicitly forced to input (select) a country with its code.
- Error in the VAT now only can be raised by an incorrect vat, not the
absence of the country code, which usually confuses users.

If you change the country for the address and the VAT is empty, the VAT
country changes automatically too.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading