-
-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
26 changed files
with
1,362 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
setup/website_sale_suggest_create_account/odoo/addons/website_sale_suggest_create_account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../website_sale_suggest_create_account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> | ||
* Jairo Llopis <[email protected]> | ||
* Dave Lasley <[email protected]> | ||
* Oscar Alcala <[email protected]> | ||
* Lorenzo Battistini <[email protected]> | ||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Alexandre Díaz | ||
* Carlos Roca | ||
* Dhara Solanki <[email protected]> (http://www.initos.com) | ||
* Reinier Quevedo <[email protected]> (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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .hooks import post_init_hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.1", | ||
"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", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>\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\"/>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>\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>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>, 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 <[email protected]>\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>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>, 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" |
Oops, something went wrong.