diff --git a/odoo/Dockerfile b/odoo/Dockerfile index 5d5c068..31afc8d 100644 --- a/odoo/Dockerfile +++ b/odoo/Dockerfile @@ -9,7 +9,9 @@ RUN set -x; apt-get update \ && git clone --depth=1 -b 12.0 https://github.com/it-projects-llc/pos-addons.git \ /opt/posbox/pos-addons \ && git clone --depth=1 -b 12.0 https://github.com/camptocamp/odoo-cloud-platform.git \ - /opt/posbox/cloud-addons + /opt/posbox/cloud-addons \ + && git clone --depth=1 -b 12.0 https://github.com/CybroOdoo/CybroAddons.git \ + /opt/posbox/cybro-addons COPY odoo.conf /etc/odoo/odoo.conf COPY addons/ /opt/posbox/extra-addons diff --git a/odoo/addons/pos_product_sequence/COPYRIGHT b/odoo/addons/pos_product_sequence/COPYRIGHT new file mode 100644 index 0000000..3143258 --- /dev/null +++ b/odoo/addons/pos_product_sequence/COPYRIGHT @@ -0,0 +1,15 @@ + +Most of the files are + + Copyright (c) 2012-TODAY Kanak Infosystems LLP + +Many files also contain contributions from third +parties. In this case the original copyright of +the contributions can be traced through the +history of the source version control system. + +When that is not the case, the files contain a prominent +notice stating the original copyright and applicable +license, or come with their own dedicated COPYRIGHT +and/or LICENSE file. + diff --git a/odoo/addons/pos_product_sequence/LICENSE b/odoo/addons/pos_product_sequence/LICENSE new file mode 100644 index 0000000..b01eaf1 --- /dev/null +++ b/odoo/addons/pos_product_sequence/LICENSE @@ -0,0 +1,27 @@ +Odoo Proprietary License v1.0 + +This software and associated files (the "Software") may only be used (executed, +modified, executed after modifications) if you have purchased a valid license +from the authors, typically via Odoo Apps, or if you have received a written +agreement from the authors of the Software (see the COPYRIGHT file). + +You may develop Odoo modules that use the Software as a library (typically +by depending on it, importing it and using its resources), but without copying +any source code or material from the Software. You may distribute those +modules under the license of your choice, provided that this license is +compatible with the terms of the Odoo Proprietary License (For example: +LGPL, MIT, or proprietary licenses similar to this one). + +It is forbidden to publish, distribute, sublicense, or sell copies of the Software +or modified copies of the Software. + +The above copyright notice and this permission notice must be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/odoo/addons/pos_product_sequence/__init__.py b/odoo/addons/pos_product_sequence/__init__.py new file mode 100644 index 0000000..cde864b --- /dev/null +++ b/odoo/addons/pos_product_sequence/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/odoo/addons/pos_product_sequence/__manifest__.py b/odoo/addons/pos_product_sequence/__manifest__.py new file mode 100644 index 0000000..a13d1f6 --- /dev/null +++ b/odoo/addons/pos_product_sequence/__manifest__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +{ + 'name': 'POS Product Sequence', + 'version': '1.0', + 'summary': 'Point of Sale Product Sequence', + 'description': """ + Point of Sale Product Sequence + """, + 'license': 'OPL-1', + 'author': 'Kanak Infosystems LLP', + 'website': 'https://www.kanakinfosystems.com', + 'images': ['static/description/main_image.jpeg'], + 'category': 'Point of Sale', + 'depends': ['point_of_sale'], + 'data': [ + 'views/template.xml', + 'views/pos_product_sequence_views.xml', + ], + 'application': True, + 'price': 10, + 'currency': 'EUR', +} diff --git a/odoo/addons/pos_product_sequence/models/__init__.py b/odoo/addons/pos_product_sequence/models/__init__.py new file mode 100644 index 0000000..d7d7308 --- /dev/null +++ b/odoo/addons/pos_product_sequence/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import product diff --git a/odoo/addons/pos_product_sequence/models/product.py b/odoo/addons/pos_product_sequence/models/product.py new file mode 100644 index 0000000..9486baf --- /dev/null +++ b/odoo/addons/pos_product_sequence/models/product.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +from odoo import fields, models + + +class ProductProduct(models.Model): + _inherit = "product.product" + _order = 'pos_sequence, default_code, name, id' + + +class ProductTemplate(models.Model): + _inherit = "product.template" + _order = 'pos_sequence, name' + + pos_sequence = fields.Integer(string='POS Sequence', help='POS product display base on product sequence number') diff --git a/odoo/addons/pos_product_sequence/static/description/aftercdsequence.png b/odoo/addons/pos_product_sequence/static/description/aftercdsequence.png new file mode 100644 index 0000000..142d094 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/aftercdsequence.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/beforeposview.png b/odoo/addons/pos_product_sequence/static/description/beforeposview.png new file mode 100644 index 0000000..c68c2a7 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/beforeposview.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/beforeproduct.png b/odoo/addons/pos_product_sequence/static/description/beforeproduct.png new file mode 100644 index 0000000..5c49c51 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/beforeproduct.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/call-icon.png b/odoo/addons/pos_product_sequence/static/description/call-icon.png new file mode 100644 index 0000000..14f116d Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/call-icon.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/cdafterposview.png b/odoo/addons/pos_product_sequence/static/description/cdafterposview.png new file mode 100644 index 0000000..eb1d798 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/cdafterposview.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/features-icon.png b/odoo/addons/pos_product_sequence/static/description/features-icon.png new file mode 100644 index 0000000..8d6b2f7 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/features-icon.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon-2.png b/odoo/addons/pos_product_sequence/static/description/icon-2.png new file mode 100644 index 0000000..447419b Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon-2.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon-3.png b/odoo/addons/pos_product_sequence/static/description/icon-3.png new file mode 100644 index 0000000..87af289 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon-3.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon-4.png b/odoo/addons/pos_product_sequence/static/description/icon-4.png new file mode 100644 index 0000000..a3340a7 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon-4.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon-5.png b/odoo/addons/pos_product_sequence/static/description/icon-5.png new file mode 100644 index 0000000..65d77bd Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon-5.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon-6.png b/odoo/addons/pos_product_sequence/static/description/icon-6.png new file mode 100644 index 0000000..7a1044f Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon-6.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon.png b/odoo/addons/pos_product_sequence/static/description/icon.png new file mode 100644 index 0000000..d318f96 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/icon1.png b/odoo/addons/pos_product_sequence/static/description/icon1.png new file mode 100644 index 0000000..00b2c78 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/icon1.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/index.html b/odoo/addons/pos_product_sequence/static/description/index.html new file mode 100644 index 0000000..1fe707e --- /dev/null +++ b/odoo/addons/pos_product_sequence/static/description/index.html @@ -0,0 +1,136 @@ +
+
+
+

Product sorting on POS interface base on POS sequence

+
+
+
+
+
+
+

Before POS Product Sequence

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

Before POS Product Views

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

After Product POS Sequence

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

After POS Product View. First Display of This Product

+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+ +
+
"We are groupies wrapped in Creativity, Skills and Innovation"
+

We are authorized IT company to offer advanced, hight quality and affordable IT solutions. We have years of rich experience in the field of ODOO Development, ERP Solutions, Web Development, Mobile Apps, Web Designing and Digital marketing. Around a decade are offering quality assured and 100% customer satisfaction services to global clientele.

+ +

Our highly experienced and devoted team of professionals works with there heart, passion and talent to provide the most dedicated IT Business Solutions to our valuable clients globally. Our team works on the real words "Dedication,"Timely Deliverables",And "Happy Clients"!

+
+
+
+
+

What We Do

+
+
+
+
+ +
Odoo Customization
+
+
+ +
Odoo Code Migration
+
+
+ +
Odoo Mobile App
+
+
+ +
Odoo DB Migration
+
+
+ +
Odoo Web Development
+
+
+ +
Odoo Themes
+
+
+ +
+ +
+
+
+ + Help +
+
+ + Support +
+
+ + Request New Features +
+
+
+
+
+
+
\ No newline at end of file diff --git a/odoo/addons/pos_product_sequence/static/description/logo.png b/odoo/addons/pos_product_sequence/static/description/logo.png new file mode 100644 index 0000000..78fdb08 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/logo.png differ diff --git a/odoo/addons/pos_product_sequence/static/description/main_image.jpeg b/odoo/addons/pos_product_sequence/static/description/main_image.jpeg new file mode 100644 index 0000000..a53792b Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/main_image.jpeg differ diff --git a/odoo/addons/pos_product_sequence/static/description/support-icon.png b/odoo/addons/pos_product_sequence/static/description/support-icon.png new file mode 100644 index 0000000..c169f79 Binary files /dev/null and b/odoo/addons/pos_product_sequence/static/description/support-icon.png differ diff --git a/odoo/addons/pos_product_sequence/static/src/js/models.js b/odoo/addons/pos_product_sequence/static/src/js/models.js new file mode 100644 index 0000000..056e6c2 --- /dev/null +++ b/odoo/addons/pos_product_sequence/static/src/js/models.js @@ -0,0 +1,27 @@ +odoo.define('pos_product_sequence.models', function (require) { +"use strict"; + +var models = require('point_of_sale.models'); +var core = require('web.core'); + +var QWeb = core.qweb; +var _t = core._t; +var exports = require('point_of_sale.models'); + +models.load_models({ + model: 'product.product', + fields: ['display_name', 'list_price', 'standard_price', 'categ_id', 'pos_categ_id', 'taxes_id', + 'barcode', 'default_code', 'to_weight', 'uom_id', 'description_sale', 'description', + 'product_tmpl_id','tracking'], + order: _.map(['pos_sequence','sequence','default_code','name'], function (name) { return {name: name}; }), + domain: [['sale_ok','=',true],['available_in_pos','=',true]], + context: function(self){ return { display_default_code: false }; }, + loaded: function(self, products){ + self.db.add_products(_.map(products, function (product) { + product.categ = _.findWhere(self.product_categories, {'id': product.categ_id[0]}); + return new exports.Product({}, product); + })); + }, + }); +return exports; +}); \ No newline at end of file diff --git a/odoo/addons/pos_product_sequence/views/pos_product_sequence_views.xml b/odoo/addons/pos_product_sequence/views/pos_product_sequence_views.xml new file mode 100644 index 0000000..7b714bc --- /dev/null +++ b/odoo/addons/pos_product_sequence/views/pos_product_sequence_views.xml @@ -0,0 +1,41 @@ + + + + + product.product.tree.inherit + product.product + + + + + + + + + + product.template.tree.inherit + product.template + + + + 1 + + + + + + + + + product.template.form.inherit + product.template + + + + + + + + + + diff --git a/odoo/addons/pos_product_sequence/views/template.xml b/odoo/addons/pos_product_sequence/views/template.xml new file mode 100644 index 0000000..0ee8eac --- /dev/null +++ b/odoo/addons/pos_product_sequence/views/template.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/odoo/odoo.conf b/odoo/odoo.conf index 5bd84a0..081482d 100644 --- a/odoo/odoo.conf +++ b/odoo/odoo.conf @@ -1,4 +1,4 @@ [options] -addons_path = /opt/posbox/pos-addons,/opt/posbox/extra-addons,/opt/posbox/cloud-addons +addons_path = /opt/posbox/pos-addons,/opt/posbox/extra-addons,/opt/posbox/cloud-addons,/opt/posbox/cybro-addons data_dir = /var/lib/odoo admin_passwd = S3Cur3Passw0rd