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

16.0 mig website sale suggest create account #828

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9d99ecf
[MIG] website_sale_suggest_create_account: Migration to 10.0 (#172)
ovnicraft Apr 25, 2017
e2d4a19
Update __manifest__.py
pedrobaeza May 29, 2017
c3043f6
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
6d64811
[REF] use variables to make it more readable and compatible
KolushovAlexandr Dec 8, 2017
66dbe3b
[MIG] website_sale_suggest_create_account: basic migration v10 to v11
oscarolar Dec 21, 2017
76ece3e
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
18e9b55
Added translation using Weblate (German)
Aug 27, 2018
f30e231
Translated using Weblate (German)
Aug 27, 2018
9405206
porting website_sale_suggest_create_account to 12.0
eLBati Oct 1, 2018
f93f8d4
IMP website_sale_suggest_create_account buttons cleanup:
eLBati Oct 1, 2018
f0f0b07
Added translation using Weblate (Catalan)
CarlesAntoli Jan 6, 2020
847aa9b
Added translation using Weblate (Catalan)
CarlesAntoli Jan 6, 2020
260ad1f
Translated using Weblate (Spanish)
CarlesAntoli Jan 6, 2020
5780830
Translated using Weblate (Catalan)
CarlesAntoli Jan 6, 2020
0f248b9
[IMP] website_sale_suggest_create_account: black, isort
Tardo Feb 2, 2020
46dabff
[MIG] website_sale_suggested_create_account: Migration to 13.0
Tardo Feb 3, 2020
c9413e3
[IMP] website_sale_suggest_create_account: unit test compatibility
Oct 16, 2020
1092644
Added translation using Weblate (Dutch)
Dec 14, 2020
5dde2a4
Translated using Weblate (Dutch)
Dec 14, 2020
b8d415f
[IMP] Update dotfiles + switch to GH actions
pedrobaeza May 13, 2022
f222b1e
[IMP] website_sale_suggest_create_account: black, isort, prettier
CarlosRoca13 May 23, 2022
68d1ed3
[MIG] website_sale_suggest_create_account: Migration to 15.0
Feb 25, 2022
8fa7c37
[FIX] website_sale_suggest_create_account: Recover and fix original t…
CarlosRoca13 May 24, 2022
68b5851
[UPD] Update website_sale_suggest_create_account.pot
Jul 28, 2022
75106d1
[UPD] README.rst
OCA-git-bot Jul 28, 2022
2440db5
[IMP] website_sale_suggest_create_account: Avoid deprecation warning …
victoralmau Nov 29, 2022
1018081
website_sale_suggest_create_account 15.0.1.0.1
OCA-git-bot Nov 29, 2022
fd3a880
[IMP] website_sale_suggest_create_account: pre-commit execution
lav-adhoc Jul 20, 2023
e50a2c1
[MIG] website_sale_suggest_create_account: Migration to 16.0
lav-adhoc Jul 20, 2023
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
6 changes: 6 additions & 0 deletions setup/website_sale_suggest_create_account/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
102 changes: 102 additions & 0 deletions website_sale_suggest_create_account/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
==========================================
Suggest to create user account when buying
==========================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/15.0/website_sale_suggest_create_account
: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-15-0/e-commerce-15-0-website_sale_suggest_create_account
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/113/15.0
:alt: Try me on Runbot

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

This module extends the functionality of e-Commerce to suggest
the buyer to log in or create an account, but without forcing him to do it.

This way you can avoid duplication of partners in your database and offer your
users a better experience without blocking 1-time buyers.

However, the *Process Checkout* button is not highlighted, to
implicitly encourage users to create the account or log in.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

* Log out.
* Buy something from your website.
* Go to your cart.

There you will see the new options.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_suggest_create_account%0Aversion:%2015.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
* LasLabs

Contributors
~~~~~~~~~~~~

* Rafael Blasco <rafabn@antiun.com>
* Jairo Llopis <yajo.sk8@gmail.com>
* Dave Lasley <dave@laslabs.com>
* Oscar Alcala <oscar@vauxoo.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* `Tecnativa <https://www.tecnativa.com>`_:

* Alexandre Díaz
* Carlos Roca
* Dhara Solanki <dhara.solanki@initos.com> (http://www.initos.com)
* Reinier Quevedo <reinier@mykubux.com> (http://www.mykubux.com)

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/15.0/website_sale_suggest_create_account>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions website_sale_suggest_create_account/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .hooks import post_init_hook
20 changes: 20 additions & 0 deletions website_sale_suggest_create_account/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2015 Antiun Ingeniería, S.L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Suggest to create user account when buying",
"summary": "Suggest users to create an account when buying in the website",
"version": "16.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "Tecnativa, LasLabs, Odoo Community Association (OCA)",
"license": "LGPL-3",
"installable": True,
"depends": ["website_sale"],
"data": ["views/website_sale.xml"],
"assets": {
"web.assets_tests": [
"website_sale_suggest_create_account/static/tests/tours/checkout.js",
],
},
"post_init_hook": "post_init_hook",
}
19 changes: 19 additions & 0 deletions website_sale_suggest_create_account/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2020 Alexandre Díaz - Tecnativa S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID, api
from odoo.tools import config


def post_init_hook(cr, registry):
# This is here to not broke the tests. The idea:
# - XML changes in website are made using 'customize_show=True'
# - When Odoo is running in testing mode, we disable our changes
# - When run our test, we enable the changes and test it. (see test file)
#
# For the user it has no impact (only more customizable options in the website)
# For CI/CD avoids problems testing modules that removes/positioning elements
# that other modules uses in their tests.
if config["test_enable"] or config["test_file"]:
env = api.Environment(cr, SUPERUSER_ID, {})
env.ref("website_sale_suggest_create_account.cart").active = False
env.ref("website_sale_suggest_create_account.short_cart_summary").active = False
43 changes: 43 additions & 0 deletions website_sale_suggest_create_account/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_suggest_create_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-01-06 21:13+0000\n"
"Last-Translator: Carles Antoli <carlesantoli@hotmail.com>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Log in and checkout</span>"
msgstr "<span>Iniciar la sessió i comprar</span>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid "<span>Log in and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
"<span>Accedir al seu compte i comprar</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Sign up and checkout</span>"
msgstr "<span>Registrar-se i comprar</span>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid "<span>Sign up and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
"<span>Registrar-se i comprar</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
37 changes: 37 additions & 0 deletions website_sale_suggest_create_account/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_suggest_create_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ca_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Log in and checkout</span>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid "<span>Log in and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Sign up and checkout</span>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid "<span>Sign up and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
48 changes: 48 additions & 0 deletions website_sale_suggest_create_account/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_suggest_create_account
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2018-08-27 19:24+0000\n"
"Last-Translator: Axel-G <git@r5d.de>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.1.1\n"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Log in and checkout</span>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid ""
"<span>Log in and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
"<span>Mit Login zur Kasse</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Sign up and checkout</span>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid ""
"<span>Sign up and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
"<span>Mit Registrierung zur Kasse</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"

#~ msgid "<span>Checkout without sign up</span>"
#~ msgstr "<span>Zur Kasse ohne Registrierung</span>"
51 changes: 51 additions & 0 deletions website_sale_suggest_create_account/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_suggest_create_account
#
# Translators:
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-29 01:20+0000\n"
"PO-Revision-Date: 2020-01-06 21:13+0000\n"
"Last-Translator: Carles Antoli <carlesantoli@hotmail.com>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Log in and checkout</span>"
msgstr "<span>Iniciar sesión y comprar</span>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid ""
"<span>Log in and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
"<span>Acceder a su cuenta y comprar</span>\n"
"<span class=\"fa fa-long-arrow-right\"/>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Sign up and checkout</span>"
msgstr "<span>Registrarse y comprar</span>"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid ""
"<span>Sign up and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr ""
"<span>Registrarse y comprar</span>\n"
"<span class=\"fa fa-long-arrow-right\"/>"

#~ msgid "<span>Checkout without sign up</span>"
#~ msgstr "<span>Comprar sin registrarse</span>"
48 changes: 48 additions & 0 deletions website_sale_suggest_create_account/i18n/es_CO.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_suggest_create_account
#
# Translators:
# JOSE ALEJANDRO ECHEVERRI VALENCIA <josealejandroeche@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-02 03:46+0000\n"
"PO-Revision-Date: 2018-02-02 03:46+0000\n"
"Last-Translator: JOSE ALEJANDRO ECHEVERRI VALENCIA <josealejandroeche@gmail."
"com>, 2018\n"
"Language-Team: Spanish (Colombia) (https://www.transifex.com/oca/teams/23907/"
"es_CO/)\n"
"Language: es_CO\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Log in and checkout</span>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid ""
"<span>Log in and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr "Ingresar y pagar"

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.short_cart_summary
msgid "<span>Sign up and checkout</span>"
msgstr ""

#. module: website_sale_suggest_create_account
#: model_terms:ir.ui.view,arch_db:website_sale_suggest_create_account.cart
msgid ""
"<span>Sign up and checkout</span>\n"
" <span class=\"fa fa-long-arrow-right\"/>"
msgstr "Resgistrarse y pagar"

#~ msgid "<span>Checkout without sign up</span>"
#~ msgstr "Pago sin registro"
Loading
Loading