diff --git a/ecommerce_stock/__init__.py b/ecommerce_stock/__init__.py new file mode 100644 index 000000000..d5446412e --- /dev/null +++ b/ecommerce_stock/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2008-TODAY Cybrosys Technologies(). +# Author: Treesa Maria Jude() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## diff --git a/ecommerce_stock/__openerp__.py b/ecommerce_stock/__openerp__.py new file mode 100644 index 000000000..dee8063c8 --- /dev/null +++ b/ecommerce_stock/__openerp__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2014-TODAY Cybrosys Technologies(). +# Author: Treesa Maria Jude() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + +{ + 'name': 'Stock Level In E-commerce', + 'version': '9.0.1.0.0', + 'summary': 'Out of Stock/Available Stock Indication In E-commerce', + 'description': 'This module indicate stock quantity of the product to e-commerce', + 'category': 'eCommerce', + 'author': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'depends': [ + 'base', + 'website_sale', + ], + 'data': [ + 'views/templates_extend.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/ecommerce_stock/static/description/banner.jpg b/ecommerce_stock/static/description/banner.jpg new file mode 100644 index 000000000..b8b51744e Binary files /dev/null and b/ecommerce_stock/static/description/banner.jpg differ diff --git a/ecommerce_stock/static/description/cybro_logo.png b/ecommerce_stock/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/ecommerce_stock/static/description/cybro_logo.png differ diff --git a/ecommerce_stock/static/description/ec1.png b/ecommerce_stock/static/description/ec1.png new file mode 100644 index 000000000..9ae3bf4fd Binary files /dev/null and b/ecommerce_stock/static/description/ec1.png differ diff --git a/ecommerce_stock/static/description/ec3.png b/ecommerce_stock/static/description/ec3.png new file mode 100644 index 000000000..9850a3835 Binary files /dev/null and b/ecommerce_stock/static/description/ec3.png differ diff --git a/ecommerce_stock/static/description/ec4.png b/ecommerce_stock/static/description/ec4.png new file mode 100644 index 000000000..3fe0e167c Binary files /dev/null and b/ecommerce_stock/static/description/ec4.png differ diff --git a/ecommerce_stock/static/description/ec5.png b/ecommerce_stock/static/description/ec5.png new file mode 100644 index 000000000..7563f5b77 Binary files /dev/null and b/ecommerce_stock/static/description/ec5.png differ diff --git a/ecommerce_stock/static/description/icon.png b/ecommerce_stock/static/description/icon.png new file mode 100644 index 000000000..a5334ef0b Binary files /dev/null and b/ecommerce_stock/static/description/icon.png differ diff --git a/ecommerce_stock/static/description/index.html b/ecommerce_stock/static/description/index.html new file mode 100644 index 000000000..81e61c463 --- /dev/null +++ b/ecommerce_stock/static/description/index.html @@ -0,0 +1,96 @@ +
+
+

Stock Notification In E-commerce

+

Out of Stock/Available Stock Indication In E-commerce

+

Author : Cybrosys Techno Solutions , www.cybrosys.com

+
+
+ +
+
+
+

Overview

+

+ This module allows to get the product stock information to odoo website sale/e-commerce.This + E-commerce App also displays a custom message Available/Out of Stock + and the stock quantity for each product based on their Stock in the + inventory. Also disables/hides the cart button for the products which are out of stock. +

+
+
+
+ +
+
+

Product On Hand At Backend

+
+
+
+ +
+
+
+
+
+ +
+
+

Stock Indication In E-Commerce

+
+
+
+ +
+
+
+
+
+ +
+
+

Add to Cart Button

+
+
+

Disabled : When Product is Out of Stock

+
+ +
+
+
+
+
+

Enabled : When Product is Available

+
+ +
+
+
+
+
+ + +
+

Need Any Help?

+ +
diff --git a/ecommerce_stock/static/src/css/ribbon.css b/ecommerce_stock/static/src/css/ribbon.css new file mode 100644 index 000000000..e945c7dbe --- /dev/null +++ b/ecommerce_stock/static/src/css/ribbon.css @@ -0,0 +1,74 @@ +@charset "utf-8"; + +.text-stock-value-not { + color: rgb(226, 0, 0); + font-size: small; + font-family: fantasy; + font-style: italic; +} +.text-stock-value { + color: rgb(0, 88, 220); + font-size: small; + font-family: fantasy; + font-style: italic; +} + +.special-ribbon{ + display: block; + width: 85px; + height: 88px; + z-index: 5; + overflow: hidden; + position: absolute; + top: 0; + right: 0; +} + +.special-ribbon-red{ + display: block; + width: 85px; + height: 88px; + z-index: 5; + overflow: hidden; + position: absolute; + top: 0; + right: 0; +} + +.special-ribbon-banner-red { + + font: bold 14px Sans-Serif; + color: white; + text-align: center; + /* -webkit-transform: rotate(320deg); */ + -moz-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + position: relative; + padding: 6px 0; + left: 0px; + top: 0px; + width: 109px; + cursor: default; + height: 28px; + float: left; + background-color: #a94442; +} + +.special-ribbon-banner { + font: bold 14px Sans-Serif; + color: white; + text-align: center; + -webkit-transform: rotate(0deg); + -moz-transform: rotate(-53deg); + -ms-transform: rotate(45deg); + -o-transform: rotate(45deg); + position: relative; + padding: 8px 0; + left: 1px; + top: 0px; + width: 141px; + cursor: default; + height: 31px; + float: left; + background-color: #004c8e;} \ No newline at end of file diff --git a/ecommerce_stock/views/templates_extend.xml b/ecommerce_stock/views/templates_extend.xml new file mode 100644 index 000000000..db7135375 --- /dev/null +++ b/ecommerce_stock/views/templates_extend.xml @@ -0,0 +1,74 @@ + + + + + + + + + + +