Browse Source

[UPDT] Bug fixed

pull/195/head
Ajmal Cybro 4 years ago
parent
commit
9fd16bf8ba
  1. 2
      product_barcode/README.rst
  2. 5
      product_barcode/__manifest__.py
  3. 44
      product_barcode/static/description/index.html
  4. 50
      product_barcode/views/product_label.xml

2
product_barcode/README.rst

@ -22,7 +22,7 @@ Credits
Niyas Raphy @cybrosys, Contact: odoo@cybrosys.com
Version 13: Nimisha Murali@cybrosys,Contact: odoo@cybrosys.com
Version 14: Naveen V @cybrosys, Contact: odoo@cybrosys.com
Version 15: Noorjahan V @cybrosys, Contact: odoo@cybrosys.com
Version 15: Noorjahan N A @cybrosys, Contact: odoo@cybrosys.com
Contacts
--------

5
product_barcode/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Product Barcode Generator',
'version': '15.0.1.0.0',
'version': '15.0.1.1.1',
'summary': 'Generates EAN13 Standard Barcode for Product.',
'live_test_url': 'https://www.youtube.com/watch?v=0BrFcOEkWu4&feature=youtu.be',
'category': 'Inventory',
@ -31,9 +31,6 @@
'company': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['stock', 'product'],
'data': [
'views/product_label.xml',
],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,

44
product_barcode/static/description/index.html

@ -90,9 +90,7 @@
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
The module automatically generates EAN13 standard barcode for each product while you create it. The
module also introduces a new feature to print product variant price on the product label. Presently
Odoo doesn&apos;t have these features.</p>
The module automatically generates EAN13 standard barcode for each product while you create it.</p>
</div>
</div>
@ -119,33 +117,6 @@
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Print Variant Price</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Print Variant Price on Product Labels.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Print Variant Name</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Print Variant Name on Product Labels.</p>
</div>
</div>
</div>
@ -166,19 +137,6 @@
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Product Labels</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Variant name on label, Variant sale price on label.
</p>
<img src="assets/screenshots/screenshot2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->

50
product_barcode/views/product_label.xml

@ -1,50 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="report_simple_label" inherit_id="product.report_simple_barcode">
<xpath expr="//div" position="replace">
<div class="col-xs-4" style="padding:0;">
<table style="border-spacing:0;margin-bottom:0;height:122px;" class="table">
<thead>
<tr style="width: 3in;">
<td style="border: 2px solid black;width: 2.63in;" colspan="2" class="col-xs-8 danger">
<t t-if="product.default_code">
[<strong t-field="product.default_code"/>]
</t>
<strong t-field="product.name"/>
<strong><span t-esc="', '.join(map(lambda x: x.name, product.product_template_attribute_value_ids))"/></strong>
</td>
</tr>
</thead>
<tbody>
<tr style="width: 1in;">
<td style="border: 2px solid black;text-align: center; vertical-align: middle;" class="col-xs-5">
<img t-if="product.barcode" 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:20%;"/>
<span t-field="product.barcode"/>
</td>
<td style="border: 2px solid black; text-align: center;" class="col-xs-7">
<h4>
<strong t-field="product.lst_price" t-options="{'widget': 'monetary', 'display_currency': product.company_id.currency_id}"/>
</h4>
</td>
</tr>
</tbody>
</table>
</div>
</xpath>
</template>
<template id="report_productlabel">
<t t-call="report.html_container">
<div class="page">
<t t-foreach="docs" t-as="product">
<t t-call="product.report_simple_label">
<t t-set="product" t-value="product"/>
</t>
</t>
</div>
</t>
</template>
</data>
</odoo>
Loading…
Cancel
Save