Skip to content

Commit

Permalink
Merge 03c13d3 into efd1658
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Feb 3, 2020
2 parents efd1658 + 03c13d3 commit dbcf19e
Show file tree
Hide file tree
Showing 25 changed files with 1,256 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .isort.cfg
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
known_third_party=setuptools
97 changes: 97 additions & 0 deletions website_sale_suggest_create_account/README.rst
@@ -0,0 +1,97 @@
==========================================
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/13.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-13-0/e-commerce-13-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/13.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:%2013.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>
* Alexandre Díaz <alexandre.diaz@tecnativa.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/13.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
@@ -0,0 +1 @@
from .hooks import post_init_hook
15 changes: 15 additions & 0 deletions website_sale_suggest_create_account/__manifest__.py
@@ -0,0 +1,15 @@
# 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": "13.0.1.0.0",
"category": "Website",
"website": "https://www.tecnativa.com",
"author": "Tecnativa, " "LasLabs, " "Odoo Community Association (OCA)",
"license": "LGPL-3",
"installable": True,
"depends": ["website_sale"],
"data": ["views/website_sale.xml", "views/assets.xml"],
"post_init_hook": "post_init_hook",
}
14 changes: 14 additions & 0 deletions website_sale_suggest_create_account/hooks.py
@@ -0,0 +1,14 @@
# 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):
if config["test_enable"] or config["test_file"]:
with api.Environment.manage():
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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"

0 comments on commit dbcf19e

Please sign in to comment.