Skip to content

Commit

Permalink
[9.0] [MIG] website_sale_require_legal module
Browse files Browse the repository at this point in the history
* Updated README.rst
* Incorrect version number
* Removed empty keys and fix typo in README.rst
  • Loading branch information
cubells committed Nov 30, 2016
1 parent e3d2fea commit bf355e8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
10 changes: 4 additions & 6 deletions website_sale_require_legal/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Require accepting legal terms to checkout

This module was written to extend the functionality of your website shop to
support forcing the user to accept your legal advice, terms of use and privacy
policy, and allow you to obey some countries' laws.
policy, and allow you to comply with some countries' laws.

Installation
============
Expand All @@ -33,18 +33,15 @@ To use this module, you need to:

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/113/8.0
:target: https://runbot.odoo-community.org/runbot/113/9.0

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 `here <https://github.com/OCA/
e-commerce/issues/new?body=module:%20 website_sale_require_legal%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

providing a detailed and welcomed feedback.

Credits
=======
Expand All @@ -54,6 +51,7 @@ Contributors

* Rafael Blasco <rafaelbn@antiun.com>
* Jairo Llopis <yajo.sk8@gmail.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>

Maintainer
----------
Expand Down
3 changes: 2 additions & 1 deletion website_sale_require_legal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería, S.L. - Jairo Llopis
# Copyright 2015 Tecnativa - Jairo Llopis
# Copyright 2016 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import controllers
11 changes: 3 additions & 8 deletions website_sale_require_legal/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería, S.L. - Jairo Llopis
# Copyright 2015 Tecnativa - Jairo Llopis
# Copyright 2016 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Require accepting legal terms to checkout",
"summary": "Force the user to accept legal tems to buy in the web shop",
"version": "8.0.1.1.0",
"version": "9.0.1.0.0",
"category": "Website",
"website": "http://www.tecnativa.com",
"author": "Antiun Ingeniería S.L., "
Expand All @@ -13,17 +14,11 @@
"license": "AGPL-3",
"application": False,
"installable": True,
"external_dependencies": {
"python": [],
"bin": [],
},
"depends": [
"website_legal_page",
"website_sale",
],
"data": [
"views/website_sale.xml",
],
"demo": [
],
}
3 changes: 2 additions & 1 deletion website_sale_require_legal/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería, S.L. - Jairo Llopis
# Copyright 2015 Tecnativa - Jairo Llopis
# Copyright 2016 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import main
3 changes: 2 additions & 1 deletion website_sale_require_legal/controllers/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería, S.L. - Jairo Llopis
# Copyright 2015 Tecnativa - Jairo Llopis
# Copyright 2016 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp.http import request
Expand Down
6 changes: 2 additions & 4 deletions website_sale_require_legal/views/website_sale.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>

<template id="checkout" inherit_id="website_sale.checkout">
<xpath expr="//div[@class='js_shipping row mb16']" position="after">
Expand Down Expand Up @@ -30,5 +29,4 @@
</xpath>
</template>

</data>
</openerp>
</odoo>

0 comments on commit bf355e8

Please sign in to comment.