Selaa lähdekoodia

commit inicial

Rodney Enciso Arias 7 vuotta sitten
commit
13fd377bb7

+ 0 - 0
.scannerwork/.sonar_lock


+ 5 - 0
.scannerwork/report-task.txt

@@ -0,0 +1,5 @@
+projectKey=stay:on:product:page
+serverUrl=http://181.40.66.126:9000
+dashboardUrl=http://181.40.66.126:9000/dashboard/index/stay:on:product:page
+ceTaskId=AV9JkWmILmS3QZZeLmtn
+ceTaskUrl=http://181.40.66.126:9000/api/ce/task?id=AV9JkWmILmS3QZZeLmtn

+ 6 - 0
__init__.py

@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+
+import models
+import controllers
+import reports
+import wizard

BIN
__init__.pyc


+ 48 - 0
__openerp__.py

@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+{
+    'name': 'Stay On Product Page',
+    'version': '1.1',
+    'category': 'eCommerce',
+    'summary': 'Visitors stay on a product page while adding to cart',
+    'description': '''
+Stay On Product Page
+====================
+Visitors stay on product pages while adding to cart
+The app is an e-shop extension, which modifies basic purchase process. Visitors would not be moved to cart while adding products. Instead they would stay on the same page.
+    ''',
+    'auto_install': False,
+    'author': 'IT Libertas',
+    'website': 'https://itlibertas.com',
+    'depends': [
+        'website_sale',
+    ],
+    'data': [
+        'data/data.xml',
+        'security/ir.model.access.csv',
+    ],
+    'qweb': [
+
+    ],
+    'js': [
+
+    ],
+    'demo': [
+
+    ],
+    'test': [
+
+    ],
+    'license': 'AGPL-3',
+    'images': [
+        'static/description/main.png',
+    ],
+    'update_xml': [
+
+    ],
+    'application': False,
+    'installable': True,
+    'private_category': False,
+    'external_dependencies': {
+    },
+
+}

+ 3 - 0
controllers/__init__.py

@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+
+import main

BIN
controllers/__init__.pyc


+ 17 - 0
controllers/main.py

@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+from openerp import http
+from openerp.http import request
+from openerp.addons.website.models.website import slug
+from openerp.addons.website_sale.controllers.main import website_sale
+
+
+class WebsiteSale(website_sale):
+
+    @http.route(['/shop/cart/update'], type='http', auth="public", methods=['POST'], website=True)
+    def cart_update(self, product_id, add_qty=1, set_qty=0, **kw):
+        cr, uid, context, registry = request.cr, request.uid, request.context, request.registry
+        res = super(WebsiteSale, self).cart_update(product_id, add_qty, set_qty, **kw)
+        product = registry.get('product.product').browse(cr, uid, int(product_id))
+        back_to_product_href = "/shop/product/" + slug(product.product_tmpl_id)
+        return request.redirect(back_to_product_href)

BIN
controllers/main.pyc


+ 7 - 0
data/data.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data noupdate="1">
+
+
+    </data>
+</openerp>

+ 3 - 0
doc/index.rst

@@ -0,0 +1,3 @@
+Requirements and exceptions
+===========================
+To start using the app it is enough to install it. No extra configuration is required

+ 1 - 0
models/__init__.py

@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-

BIN
models/__init__.pyc


+ 1 - 0
reports/__init__.py

@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-

BIN
reports/__init__.pyc


+ 1 - 0
security/ir.model.access.csv

@@ -0,0 +1 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

+ 4 - 0
sonar-project.properties

@@ -0,0 +1,4 @@
+sonar.projectKey=stay:on:product:page 
+sonar.projectName=stay_on_product_page
+sonar.projectVersion=1.0 
+sonar.sources=.

BIN
static/description/app_1.png


BIN
static/description/app_2.png


BIN
static/description/app_3.png


BIN
static/description/icon.png


+ 94 - 0
static/description/index.html

@@ -0,0 +1,94 @@
+<!-- Description -->
+<section class="oe_container">
+    <div class="oe_row oe_spaced">
+        <div class="oe_span12">
+            <h2 class="oe_slogan" style="color:#428bca">Stay On Product Page</h2>
+            <h3 class="oe_slogan" style="color:#428bca">Visitors stay on a product page while adding to cart</h3>
+        </div>
+        <div class="oe_span12">
+            <p class="oe_mt32">
+               The app is an e-shop extension, which modifies basic purchase process. Visitors would not be moved to cart while adding products. Instead they would stay on the same product page.
+            </p>
+        </div>
+    </div>
+</section>
+<!-- Recomendations -->
+<section class='oe_container oe_dark'>
+    <div class="oe_row oe_spaced">
+        <div class="oe_span12">
+            <h4 class="oe_slogan" style="color:#428bca">Suggested Apps</h4>
+        </div>
+        <div class="oe_span4 oe_mt16">
+            <div class="oe_centeralign">
+                <h5>
+                    <big>
+                        <a href="https://apps.odoo.com/apps/modules/8.0/product_selection_wizard_sale/">
+                            Screening - the fastest tool to search and select products
+                        </a>
+                    </big>
+                </h5>
+            </div>
+            <div class="oe_demo oe_picture oe_screenshot">
+                <a href="https://apps.odoo.com/apps/modules/8.0/product_selection_wizard_sale/">
+                    <img src="product_screening.png"  alt='Odoo Product Search'>
+                </a>
+            </div>
+        </div>
+        <div class="oe_span4 oe_mt16">
+            <div class="oe_centeralign">
+                <h5>
+                    <big>
+                        <a href="https://apps.odoo.com/apps/modules/8.0/joint_calendar/">
+                            Joint Calendar
+                        </a>
+                    </big>
+                </h5>
+            </div>
+            <div class="oe_demo oe_picture oe_screenshot ">
+                <a href="https://apps.odoo.com/apps/modules/8.0/joint_calendar/">
+                    <img src="app_2.png"  alt='Odoo App IT Libertas'>
+                </a>
+            </div>
+        </div>
+        <div class="oe_span4 oe_mt16">
+            <div class="oe_centeralign">
+                <h5>
+                    <big>
+                        <a href="https://apps.odoo.com/apps/modules/8.0/product_stock_balance/">
+                           Stocks by Locations
+                        </a>
+                    </big>
+                </h5>
+            </div>
+            <div class="oe_demo oe_picture oe_screenshot ">
+                <a href="https://apps.odoo.com/apps/modules/8.0/product_stock_balance/">
+                    <img src="app_3.png"  alt='Odoo App IT Libertas'>
+                </a>
+            </div>
+        </div>
+    </div>
+</section>
+<!-- About us -->
+<section class="oe_container">
+    <div class="oe_row oe_spaced">
+        <div class="oe_span12">
+            <h4 class="oe_slogan" style="color:#428bca">Developers</h4>
+        </div>
+        <div class="oe_span6 oe_mt16 oe_centeralign">
+            <p class="">
+                <ul style='list-style:None'>
+                    <li class="oe_mt16"><big><big><a href="https://itlibertas.com/en_US/page/website.contactus"  style="color:#31708f"><i class="fa fa-bell-o"></i> Contact Us</a></big></big></li>
+                    <li class="oe_mt16"><big><big><a href="https://itlibertas.com/en_US/page/odoo-customization" style="color:#31708f"><i class="fa fa-wrench"></i> Odoo Customization</a></big></big></li>
+                    <li class="oe_mt16"><big><big><a href="https://itlibertas.com/en_US/page/odoo-support" style="color:#31708f"><i class="fa fa-life-ring"></i> Odoo Support and Maintenance</a></big></big></li>
+                </ul>
+            </p>
+        </div>
+        <div class="oe_span6 oe_mt16">
+            <div class="oe_demo oe_picture oe_screenshot ">
+                <a href="https://itlibertas.com/en_US/page/homepage">
+                    <img src="site.png"  alt='Odoo Services by IT Libertas'>
+                </a>
+            </div>
+        </div>
+    </div>
+</section>

BIN
static/description/main.png


BIN
static/description/product_screening.png


BIN
static/description/site.png


+ 1 - 0
wizard/__init__.py

@@ -0,0 +1 @@
+# -*- coding: utf-8 -*-

BIN
wizard/__init__.pyc