Browse Source

[ADD] Initial Commit

pull/124/head
Ajmalcybrosys 6 years ago
parent
commit
b77c28d432
  1. 13
      customized_barcode_generator/README.rst
  2. 2
      customized_barcode_generator/__init__.py
  3. 25
      customized_barcode_generator/__manifest__.py
  4. 6
      customized_barcode_generator/doc/RELEASE_NOTES.md
  5. 1
      customized_barcode_generator/models/__init__.py
  6. 113
      customized_barcode_generator/models/barcode_generator.py
  7. 0
      customized_barcode_generator/report/__init__.py
  8. 80
      customized_barcode_generator/report/product_label_template.xml
  9. 2
      customized_barcode_generator/security/ir.model.access.csv
  10. BIN
      customized_barcode_generator/static/description/banner.jpg
  11. BIN
      customized_barcode_generator/static/description/customized-barcode-generator-barcodecodeform-cybrosys.png
  12. BIN
      customized_barcode_generator/static/description/customized-barcode-generator-barcodecodetree-cybrosys.png
  13. BIN
      customized_barcode_generator/static/description/customized-barcode-generator-productlabelpdf-cybrosys.png
  14. BIN
      customized_barcode_generator/static/description/customized-barcode-generator-productlabelprint-cybrosys.png
  15. BIN
      customized_barcode_generator/static/description/customized-barcode-generator-settings-cybrosys.png
  16. BIN
      customized_barcode_generator/static/description/icon.png
  17. 325
      customized_barcode_generator/static/description/index.html
  18. 88
      customized_barcode_generator/views/barcode_generator_view.xml

13
customized_barcode_generator/README.rst

@ -0,0 +1,13 @@
Cost Price as Code in Barcode v12
=================================
The module enables user to print customized product labels.
Installation
============
- www.odoo.com/documentation/12.0/setup/install.html
- Install our custom addon
Credits
=======
Developer: Atul Ramesh Varma @ cybrosys, Contact: odoo@cybrosys.com

2
customized_barcode_generator/__init__.py

@ -0,0 +1,2 @@
from . import report
from . import models

25
customized_barcode_generator/__manifest__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
{
'name': 'Cost Price as Code in Barcode',
'version': '12.0.1.0.0',
'summary': """Print user defined product labels.""",
'description': """The module enables user to print customized product labels.
""",
'category': 'Tools',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'depends': ['base', 'web', 'product','account'],
'website': 'https://www.cybrosys.com',
'data': [
'report/product_label_template.xml',
'views/barcode_generator_view.xml',
'security/ir.model.access.csv'
],
'qweb': [],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

6
customized_barcode_generator/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <customized_barcode_generator>
#### 13.02.2019
#### Version 12.0.1.0.0
##### ADD
- Initial commit for Customized Barcode Generator

1
customized_barcode_generator/models/__init__.py

@ -0,0 +1 @@
from . import barcode_generator

113
customized_barcode_generator/models/barcode_generator.py

@ -0,0 +1,113 @@
from odoo import api, fields, models, _
import datetime
from odoo.exceptions import UserError
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
active_standard_price = fields.Boolean(string='Standard price as a code',
help="check this box to show cost on the product labels as code")
active_ref = fields.Boolean(string='Show product reference ',
help="check this box to show product reference as in product labels")
@api.model
def get_values(self):
res = super(ResConfigSettings, self).get_values()
params = self.env['ir.config_parameter'].sudo()
active_standard_price = params.get_param('active_standard_price', default=False)
active_ref = params.get_param('active_ref', default=False)
res.update(
active_standard_price=bool(active_standard_price),
active_ref=bool(active_ref),
)
return res
@api.multi
def set_values(self):
super(ResConfigSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param("active_standard_price",
self.active_standard_price)
self.env['ir.config_parameter'].sudo().set_param("active_ref",
self.active_ref)
class CustomizeBarcodeGenerator(models.Model):
_name = 'barcode.code'
name = fields.Char(default='Numeric Code')
code_for_zero = fields.Char(string=' 0 ', required=True, limit=1, size=1,
default='a', help="insert substitute code ")
code_for_one = fields.Char(string='1 ', required=True, limit=1, size=1,
default='b', help="insert substitute code ")
code_for_two = fields.Char(string='2 ', required=True, limit=1, size=1,
default='c', help="insert substitute code ")
code_for_three = fields.Char(string='3 ', required=True, limit=1, size=1,
default='d', help="insert substitute code ")
code_for_four = fields.Char(string='4 ', required=True, limit=1, size=1,
default='e', help="insert substitute code ")
code_for_five = fields.Char(string='5 ', required=True, limit=1, size=1,
default='f', help="insert substitute code ")
code_for_six = fields.Char(string='6 ', required=True, limit=1, size=1,
default='g', help="insert substitute code ")
code_for_seven = fields.Char(string='7 ', required=True, limit=1, size=1,
default='h', help="insert substitute code ")
code_for_eight = fields.Char(string='8 ', required=True, limit=1, size=1,
default='i', help="insert substitute code ")
code_for_nine = fields.Char(string='9 ', required=True, limit=1, size=1,
default='j', help="insert substitute code ")
active_check = fields.Boolean(string="Active", default=False)
date_check = fields.Datetime(default=datetime.datetime.today(), string="Date")
@api.multi
@api.onchange('active_check')
def onchange_active_check(self):
for i in self.search([]):
if i.active_check == self.active_check and self.active_check:
self.active_check = False
raise UserError(_("Only one rule for code can be active at a time"))
class CostToCode(models.Model):
_inherit = 'product.product'
cost_in_code = fields.Char(string='Cost in code', compute='get_cost_in_code')
@api.multi
def get_cost_in_code(self):
code = self.env['barcode.code'].sudo().search([('active_check', '=', True)])
active_check = self.env['ir.config_parameter'].sudo().search([('key','=','active_standard_price'),('value','=',True)])
if active_check:
if code:
real = str(self.standard_price).split('.')[0]
for i in real:
if i == '0':
real = real.replace('0', code.code_for_zero)
elif i == '1':
real = real.replace('1', code.code_for_one)
elif i == '2':
real = real.replace('2', code.code_for_two)
elif i == '3':
real = real.replace('3', code.code_for_three)
elif i == '4':
real = real.replace('4', code.code_for_four)
elif i == '5':
real = real.replace('5', code.code_for_five)
elif i == '6':
real = real.replace('6', code.code_for_six)
elif i == '7':
real = real.replace('7', code.code_for_seven)
elif i == '8':
real = real.replace('8', code.code_for_eight)
else:
real = real.replace('9', code.code_for_nine)
return real
else:
return " "
else:
return " "
def get_product_ref(self):
active_check = self.env['ir.config_parameter'].sudo().search([('key','=','active_ref'),('value','=',True)])
if active_check:
return self.default_code
else:
return " "

0
customized_barcode_generator/report/__init__.py

80
customized_barcode_generator/report/product_label_template.xml

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="report_template_inherit" inherit_id="product.report_simple_label">
<xpath expr="//div" position="replace">
<div style="width: 32%; display: inline-table; height:14rem;">
<table class="table" style="border: 2px solid black;">
<tr style="border:0;">
<td colspan="2" class="text-center" style="border:0; margin:0;">
<strong t-field="product.name"/>
</td>
</tr>
<tr style="border:0;">
<td colspan="2" class="text-center align-middle" style="border:0; margin:0;">
<t t-if="product.barcode">
<img alt="Barcode" t-if="len(product.barcode) == 13" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.barcode, 600, 150)" style="width:100%;height::4rem;"/>
<img alt="Barcode" t-elif="len(product.barcode) == 8" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN8', product.barcode, 600, 150)" style="width:100%;height::4rem;"/>
<img alt="Barcode" t-else="" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product.barcode, 600, 150)" style="width:100%;height::4rem;"/>
<span t-field="product.barcode"/>
</t>
<t t-else=""><span class="text-muted">No barcode available</span></t>
</td>
</tr>
<tr style="border:0;">
<td style="border:0; margin:0; padding-left:35px; font-size:9px; text-align:left" >
<t t-esc="product.get_product_ref()" />
</td>
<td style="border:0; margin:0; padding-right:35px; font-size:9px; text-align:right" >
<t t-esc="product.get_cost_in_code()"/>
</td>
</tr>
<tr style="border:0;">
<td colspan="2" style="text-align:center; border:0; margin:0;" >
<strong>Price:</strong>
<strong t-field="product.lst_price" t-options="{'widget': 'monetary', 'display_currency': product.company_id.currency_id}"/>
</td>
</tr>
</table>
</div>
<!--<div class="row">-->
<!--<div class="col-4" style="padding:0;">-->
<!--<table style="border-spacing:0;margin-bottom:0;height:122px;" class="table">-->
<!--<tbody style="border: 2px solid black;width: 2.63in; padding-top:5px; padding-bottom:5px" class="col-md-4">-->
<!--<tr style="text-align:center; border:0; margin:0; padding:0;">-->
<!--<td colspan="2" style="border:0; margin:0; padding:0;">-->
<!--<strong t-field="product.name" />-->
<!--</td>-->
<!--</tr>-->
<!--<tr style="border:0; margin:0; padding:0;">-->
<!--<td colspan="2" style="border:0; margin:0; padding:0;" align="center">-->
<!--<img t-if="product.barcode and len(product.barcode) == 13" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.barcode, 800, 250)" style="width:100%;height:20%;"/>-->
<!--<img t-elif="product.barcode and len(product.barcode) == 8" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN8', product.barcode, 800, 250)" style="width:100%;height:20%;"/>-->
<!--<img t-else="" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', product.barcode, 800, 250)" style="width:100%;height:20%;"/>-->
<!--<span t-field="product.barcode"/>-->
<!--</td>-->
<!--</tr>-->
<!--<tr style="border:0; margin:0; padding:0;">-->
<!--<td style="border:0; margin:0; padding-left:45px; font-size:9px;">-->
<!--<t t-esc="product.get_product_ref()" />-->
<!--</td>-->
<!--<td style="border:0; margin:0; padding-right:45px; font-size:9px; text-align:right">-->
<!--<t t-esc="product.get_cost_in_code()"/>-->
<!--</td>-->
<!--</tr>-->
<!--<tr style="text-align:center; border:0; margin:0; padding:0;">-->
<!--<td colspan="2" style="border:0; margin:0; padding:0;">-->
<!--<h4>-->
<!--<strong t-field="product.company_id.currency_id.symbol"/>-->
<!--<strong t-field="product.list_price"/>-->
<!--</h4>-->
<!--</td>-->
<!--</tr>-->
<!--</tbody>-->
<!--</table>-->
<!--</div>-->
<!--</div>-->
</xpath>
</template>
</data>
</odoo>

2
customized_barcode_generator/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_customized_barcode_generator,customized.barcode.generator.user,model_barcode_code,account.group_account_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_customized_barcode_generator customized.barcode.generator.user model_barcode_code account.group_account_manager 1 1 1 1

BIN
customized_barcode_generator/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
customized_barcode_generator/static/description/customized-barcode-generator-barcodecodeform-cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
customized_barcode_generator/static/description/customized-barcode-generator-barcodecodetree-cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
customized_barcode_generator/static/description/customized-barcode-generator-productlabelpdf-cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
customized_barcode_generator/static/description/customized-barcode-generator-productlabelprint-cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
customized_barcode_generator/static/description/customized-barcode-generator-settings-cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
customized_barcode_generator/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

325
customized_barcode_generator/static/description/index.html

@ -0,0 +1,325 @@
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-header-banner.png);background-repeat:no-repeat;background-size:100%;padding: 4% 0% 2% 15%;background-position-y: -107px;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="font-size: 35px;color: #fff;font-weight: 900;text-transform: uppercase;text-align: left;margin: 0;margin-bottom: 16px;">
Customized Barcode Generator
</h2>
<h3 class="oe_slogan" style="font-size: 25px;color: #fff;font-weight: 600;text-align: left;opacity: 1;margin: 0 !important;">
Print user defined product labels.
</h3>
<h5 class="oe_slogan" style="text-align: left;background: #fff;width: 293px;padding: 10px;color: #080808 !important;opacity: 1 !important;font-weight: 600;font-size: 20px;">
<a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">Cybrosys Technologies</a>
</h5>
<a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">
<div style="width: 215px;margin-left: 57%;text-align: center;background: #ffffff;height: 215px;border-radius: 100%;display: flex;justify-content: center;align-items: center;box-shadow: 0 0 12px 4px #00000059;">
<img src="https://www.cybrosys.com/images/cybro-logo-oca.png" alt="cybrosys technologies" style="width: 136px;"/> </div>
</a>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 3% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Overview
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
The module enables user to print customized product labels.
</h3>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-banner1.png); background-repeat:no-repeat; background-size:cover;padding: 5% 0% 10% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Features
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Create custom code for printing standard price on product labels.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Show/hide product reference on product labels.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Show/hide cost price as a code on product labels.
</h3>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Screenshots
</h2>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Go to <b>Invoicing </b> --><b> Settings</b>.<br>
&nbsp; &nbsp; &nbsp;Select whether to show/hide <b>standard price as code</b> or <b>product reference</b> on product labels and click Save.<br>
</h3>
<div class="oe_row oe_spaced">
<img src="customized-barcode-generator-settings-cybrosys.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Go to <b>Invoicing</b> --><b> Settings</b> --><b> Product Labels</b>. Click on <b>barcode code</b> to create a new rules.<br>
</h3>
<div class="oe_row oe_spaced">
<img src="customized-barcode-generator-barcodecodetree-cybrosys.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
In the form view, you can set the code for each digit. Click on the active button to use this rule on the product label.
</h3>
<div class="oe_row oe_spaced">
<img src="customized-barcode-generator-barcodecodeform-cybrosys.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
Go to <b>Products view</b> select products and print product labels as shown below<br>
</h3>
<div class="oe_row oe_spaced">
<img src="customized-barcode-generator-productlabelprint-cybrosys.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<i class="fa fa-check" aria-hidden="true" style="color: #cd2d47;font-size: 15px;"></i>
You can see the standard price of products on the bottom right of product label as code using the active rule, and at the bottom left you can see the product reference.
</h3>
<div class="oe_row oe_spaced">
<img src="customized-barcode-generator-productlabelpdf-cybrosys.png" alt="" style="width: 95%;"/>
</div>
</div>
</section>
<section class="oe_container" style="padding: 7px 0% 0% 3%;">
<div class="oe_row oe_spaced">
<a style="color: #080808 !important;" href="https://apps.odoo.com/apps/modules/browse?search=cybrosys" target="_blank"><img src="https://www.cybrosys.com/images/view-more-apps.jpg" alt="cybrosys technologies" style="width: 100%;margin-bottom: 50px;"/></a>
</div>
</section>
<section class="oe_container" style="padding: 0% 0% 0% 3%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Our Services
</h2>
<div style="display:flex;padding-top: 20px;justify-content: space-between;">
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-customization.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
Odoo Customization
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-implementation.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
Odoo Implementation
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-integration.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
Odoo Integration
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-support.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
Odoo Support
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
<img src="https://www.cybrosys.com/images/hire-odoo-developer.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
Hire Odoo Developers
</h3>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 7px 0% 0% 3%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Our Industries
</h2>
<div style="display:flex;justify-content: space-between;flex-wrap:wrap;">
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
Trading
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Easily procure and sell your products.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-2.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
Manufacturing
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Plan, track and schedule your operations.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
Restaurant
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Run your bar or restaurant methodical.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
POS
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Easy configuring and convivial selling.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;">
E-commerce & Website
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Mobile friendly, awe-inspiring product pages.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
Hotel Management
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
An all-inclusive hotel management application.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
Education
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
A Collaborative platform for educational management.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:600;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
Service Management
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Keep track of services and invoice accordingly.
</h3>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-footer-bg.png); background-repeat:no-repeat; background-size:100%;padding: 13% 0% 6% 0%;">
<div class="oe_slogan" style="margin-top:10px !important;margin-bottom: 0px;">
<div>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i class="fa fa-envelope"></i> Email us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-phone"></i> Contact Us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/odoo-customization-and-installation/"><i class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px; ;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
</div>
</div>
</section>

88
customized_barcode_generator/views/barcode_generator_view.xml

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="barcode_code_form">
<field name="name">barcode.code.form.view</field>
<field name="model">barcode.code</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Barcode code" create="false" delete="false">
<sheet>
<label for="active_check"/>
<field name="active_check"/>
<group>
<group>
<field name="code_for_zero"/>
<field name="code_for_one"/>
<field name="code_for_two"/>
<field name="code_for_three" />
<field name="code_for_four"/>
<field name="code_for_five"/>
<field name="code_for_six"/>
<field name="code_for_seven"/>
<field name="code_for_eight"/>
<field name="code_for_nine"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="barcode_code_tree">
<field name="name">barcode.code.tree.view</field>
<field name="model">barcode.code</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Barcode code">
<field name="name"/>
<field name="date_check"/>
<field name="active_check"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_barcode_code_view">
<field name="name">Barcode Code</field>
<field name="res_model">barcode.code</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Create new code
</p>
</field>
</record>
<record id="res_config_settings_view_customize_barcode" model="ir.ui.view">
<field name="name">res.config.settings.view.form.customize.barcode</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="100"/>
<field name="inherit_id" ref="account.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='has_chart_of_accounts']" position="before">
<h2>Product Labels</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="active_standard_price"/>
</div>
<div class="o_setting_right_pane">
<label for="active_standard_price"/>
<div>
<button name="%(customized_barcode_generator.action_barcode_code_view)d" icon="fa-arrow-right"
type="action" string="Barcode code " class="btn-link"
attrs="{'invisible': [('active_standard_price', '=', False)]}"/>
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="active_ref"/>
</div>
<div class="o_setting_right_pane">
<label for="active_ref"/>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save