1
0
Fork 0

add more pos addons

This commit is contained in:
Tobias Brunner 2019-08-24 17:55:36 +02:00
parent 8679c69b66
commit e3995e364c
28 changed files with 303 additions and 2 deletions

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import models

View File

@ -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',
}

View File

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import product

View File

@ -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')

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,136 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Product sorting on POS interface base on POS sequence</h2>
</div>
</div>
</section>
<section class="oe_container" style="background-color: #eeeeee;">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Before POS Product Sequence</h2>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img src="beforeproduct.png" class="oe_screenshot oe_centered" style="max-height: 400px;width:100%">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Before POS Product Views</h2>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img src="beforeposview.png" class="oe_screenshot oe_centered" style="max-height: 400px;width:100%">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark" style="background-color: #eeeeee;">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">After Product POS Sequence</h2>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img src="aftercdsequence.png" class="oe_screenshot oe_centered" style="max-height: 400px;width:100%">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">After POS Product View. First Display of This Product</h2>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img src="cdafterposview.png" class="oe_screenshot oe_centered" style="max-height: 400px;width:100%">
</div>
</div>
</div>
</section>
<section>
<div class="oe_row">
<div class="container-fluid">
<div class="oe_row">
<div class="col-md-12 col-xs-12 col-sm-12 mt32 mb32 text-center">
<img src="logo.png" style="height:100px;">
</div>
</div>
<div class="oe_row oe_screenshot" style="box-shadow: 3px 4px 25px 6px rgba(0, 0, 0, 0.2);;border-radius: 8px; background: #ECEDF0;">
<div class="col-sm-12">
<div class="text-center">
<a href="https://kanakinfosystems.com/kanak_aboutus"><h3 class="oe_slogan" style="border-bottom: 1px solid #123246; margin-top: 8px; font-size:33px; color:#123246; opacity:1; font-family:segoeuib">About kanak Infosystems</h3></a>
</div>
</div>
<div class="col-sm-12">
<h5 class="oe_slogan" style="margin-top: -9px; color:#123246;margin-bottom: 12px; opacity: 0.6; font-family:segoeuiz;"><i><b>"We are groupies wrapped in Creativity, Skills and Innovation"</b></i></h5>
<p style="font-family:segoeui">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.</p>
<p style="font-family:segoeui">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"!</p>
</div>
</div>
<div class="oe_row col-md-12 col-sm-12">
<div class="text-center">
<h2 style="color:#123246;font-family:segoeuib"> What We Do</h2>
</div>
</div>
<div class="row">
<div class="col-md-2 col-sm-2">
<img src="icon1.png">
<h6 style="margin-top: -10px;font-size: 9px;color:#123246;font-family:">Odoo Customization</h6>
</div>
<div class="col-md-2 col-sm-2">
<img src="icon-2.png">
<h6 style="margin-top: -1px;font-size: 9px;color:#123246;font-family:">Odoo Code Migration</h6>
</div>
<div class="col-md-2 col-sm-2">
<img src="icon-3.png">
<h6 style="margin-top: -1px;font-size: 9px;color:#123246;font-family:">Odoo Mobile App</h6>
</div>
<div class="col-md-2 col-sm-2">
<img src="icon-4.png">
<h6 style="margin-top: -1px;font-size: 9px;color:#123246;font-family:">Odoo DB Migration</h6>
</div>
<div class="col-md-2 col-sm-2">
<img src="icon-5.png">
<h6 style="margin-top: -1px;font-size: 9px;color:#123246;font-family:">Odoo Web Development</h6>
</div>
<div class="col-md-2 col-sm-2">
<img src="icon-6.png">
<h6 style="margin-top: -1px;font-size: 9px;color:#123246;font-family:">Odoo Themes</h6>
</div>
</div>
<div class="oe_row">
<div class="text-center" style="text-align: center;">
<a style="color:#dc1d1d; border:1px solid #dc1d1d; width:170px;" class="btn btn-lg" rel="nofollow" href="https://kanakinfosystems.com/contactus" target="_blank">
Contact Us
</a>
</div>
</div>
<div class="oe_row" style="box-shadow: 3px 5px 18px 6px rgba(0, 0, 0, 0.2);;border-radius: 8px; background: #ECEDF0; height:50px">
<div class="oe_row">
<div class="col-md-12 col-sm-12" style="padding-top: 10px;padding-left: 40px;">
<div class="col-md-4 col-sm-4" style="float: left; text-align: center;">
<span><img src="call-icon.png"/></span>
<span>Help</span>
</div>
<div class="col-md-4 col-sm-4" style="float: left; text-align: center;">
<span><img src="support-icon.png"/></span>
<span>Support</span>
</div>
<div class="col-md-4 col-sm-4" style="float: left; text-align: center;">
<span><img src="support-icon.png"/></span>
<span>Request New Features</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 B

View File

@ -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;
});

View File

@ -0,0 +1,41 @@
<?xml version="1.0"?>
<odoo>
<data>
<record id="pos_product_product_tree_view" model="ir.ui.view">
<field name="name">product.product.tree.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<field name="default_code" position="before">
<field name="pos_sequence" widget="handle"/>
</field>
</field>
</record>
<record id="pos_product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.tree.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<field name="sequence" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="default_code" position="before">
<field name="pos_sequence" widget="handle"/>
</field>
</field>
</record>
<record id="pos_product_template_form_view" model="ir.ui.view">
<field name="name">product.template.form.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="point_of_sale.product_template_form_view"/>
<field name="arch" type="xml">
<field name="available_in_pos" position="after">
<field name="pos_sequence"/>
</field>
</field>
</record>
</data>
</odoo>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pos_product_sequence/static/src/js/models.js"></script>
</xpath>
</template>
</data>
</odoo>

View File

@ -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