Author: |
GRAP, La Louve, LasLabs, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
10-base_gs1_barcode-ak |
Repository: |
akretion/stock-logistics-barcode |
Dependencies: |
barcodes |
Languages: |
PO File (1480, 82.1%),
Python (183, 10.2%),
XML (45, 2.5%),
and
reStructuredText (94, 5.2%) |
Other branches: |
10-barcodes_generator-improve,
10-mig-mobile_app_inventory,
10-mig-mobile_app_inventory_backport_v8,
10-mig-stock_inventory_barcode,
12-mig-stock_inventory_barcode,
14-mig-stock_inventory_barcode,
14.0-copier_upd_barcodes_generator_abstract,
14.0-imp-multi_barcodes_generation,
14.0-improve-ui,
14.0-mig-barcodes_generator_abstract,
14.0-mig-product_mult_barcode_2,
14.0-product_multi_barcode-fix-multi-company,
and
16.0-mig-product_barcode_constraint_per_company |
Other repositories: |
AMhadhbi/stock-logistics-barcode,
Abranes/stock-logistics-barcode,
Anon234/stock-logistics-barcode,
Aris7189/stock-logistics-barcode,
ChanFeei/stock-logistics-barcode,
Change2improve/stock-logistics-barcode,
ClearCorp/oca-stock-logistics-barcode,
Darknroses/stock-logistics-barcode,
Deanzou/stock-logistics-barcode,
Dobtor-OCA/stock-logistics-barcode,
Elbagoury/pos,
ForgeFlow/stock-logistics-barcode,
Gabinete-Digital/stock-logistics-barcode,
Gofekra/stock-logistics-barcode,
Guobower/stock-logistics-barcode,
Hasnur/stock-logistics-barcode,
Ingeos/stock-logistics-barcode,
Jarsa/stock-logistics-barcode,
JibenCL/stock-logistics-barcode,
JorgeJuarezM/stock-logistics-barcode,
JuanjoA/stock-logistics-barcode,
JulioSerna/stock-logistics-barcode,
KT-Thanate/stock-logistics-barcode,
LasLabs/stock-logistics-barcode,
LevelPrime/stock-logistics-barcode,
MariajMesa/stock-logistics-barcode,
MeetKD/stock-logistics-barcode,
MindAndGo/stock-logistics-barcode,
NeatNerdPrime/stock-logistics-barcode,
OCA-MUK/stock-logistics-barcode,
OCA/stock-logistics-barcode,
Olageibol/stock-logistics-barcode,
OutillageStEtienne/stock-logistics-barcode,
PESOL/stock-logistics-barcode,
QubiQ/stock-logistics-barcode,
RealSolutionsLux/stock-logistics-barcode,
SSISoftware/stock-logistics-barcode,
SetRac/pos-1,
SeuMarco/stock-logistics-barcode,
SimoRubi/stock-logistics-barcode,
StefanRijnhart/stock-logistics-barcode,
Studio73/stock-logistics-barcode,
TRESCLOUD/stock-logistics-barcode,
Tecnativa/stock-logistics-barcode,
Vauxoo/stock-logistics-barcode,
VisiionSolucionesTecnologicas/stock-logistics-barcode,
aacceess75/stock-logistics-barcode,
aaltinisik/stock-logistics-barcode,
achuthanselvaraj/pos,
acsone/stock-logistics-barcode,
agenterp/stock-logistics-barcode,
amarildogolloshi/stock-logistics-barcode,
amendoncabh/stock-logistics-barcode,
anhvu-sg/stock-logistics-barcode,
ansinaesmejor/stock-logistics-barcode,
aospub/stock-logistics-barcode,
apachesep/stock-logistics-barcode,
apertoso/stock-logistics-barcode,
apetbiz/stock-logistics-barcode,
archeti-org/stock-logistics-barcode,
aurestic/stock-logistics-barcode,
bertontin/stock-logistics-barcode,
bvkl/stock-logistics-barcode,
camptocamp/stock-logistics-barcode,
ck2001/stock-logistics-barcode,
coopiteasy/stock-logistics-barcode,
ctr-subteno-it/stock-logistics-barcode,
cvinh/stock-logistics-barcode,
dani-xtendoo/stock-logistics-barcode,
daramousk/stock-logistics-barcode,
dgrej/stock-logistics-barcode,
diagramsoftware/stock-logistics-barcode,
dion-pci/stock-logistics-barcode,
dong-z/stock-logistics-barcode,
druidoo-dev/stock-logistics-barcode,
eLBati/stock-logistics-barcode,
ecosoft-odoo/stock-logistics-barcode,
ehsu0407/stock-logistics-barcode,
emkayz/stock-logistics-barcode,
eslammohamed13/pos,
factorlibre/stock-logistics-barcode,
fauzi-tsani/stock-logistics-barcode,
fmdl/stock-logistics-barcode,
grap/stock-logistics-barcode,
gurneyalex/stock-logistics-barcode,
haroldtamo/stock-logistics-barcode,
haryoran04/stock-logistics-barcode,
heymanh/stock-logistics-barcode,
hinfo506/stock-logistics-barcode,
imranissufo/stock-logistics-barcode,
infoitservit/stock-logistics-barcode,
initOS/stock-logistics-barcode,
isoscl/stock-logistics-barcode,
izzihector/pos,
jasadmoozhiyan/stock-logistics-barcode,
jchancafe/stock-logistics-barcode,
jimhoefnagels/stock-logistics-barcode,
kevin070982/stock-logistics-barcode,
kos94ok-3D/stock-logistics-barcode,
layounisl/stock-logistics-barcode,
leangjia/stock-logistics-barcode,
legalsylvain/stock-logistics-barcode,
leolandeo/stock-logistics-barcode,
leonidasthe300/stock-logistics-barcode,
lideritjnma/stock-logistics-barcode,
lijielife/stock-logistics-barcode,
lonelyleaves/stock-logistics-barcode,
lulzzz/stock-logistics-barcode,
margibs/stock-logistics-barcode,
marionumza/pos-1,
marionumza/stock-logistics-barcode,
maurochip/stock-logistics-barcode,
mediaengagers/stock-logistics-barcode,
minhhq09/stock-logistics-barcode,
mjadily/stock-logistics-barcode,
nabiforks/stock-logistics-barcode,
nabima/stock-logistics-barcode,
ninh2k/stock-logistics-barcode,
nisheednair/stock-logistics-barcode,
niulinlnc/stock-logistics-barcode,
nuobit/stock-logistics-barcode,
nylon7/stock-logistics-barcode,
ofahd/stock-logistics-barcode,
onurugur/stock-logistics-barcode,
peterxue/stock-logistics-barcode,
phatnguyenuit/stock-logistics-barcode,
pmctire/stock-logistics-barcode,
presenceverte/stock-logistics-barcode,
pscloud/stock-logistics-barcode,
redblow/stock-logistics-barcode,
rkhalil1990/stock-logistics-barcode,
roniap/stock-logistics-barcode,
royalline1/stock-logistics-barcode,
rudisulistyo/stock-logistics-barcode,
rven/stock-logistics-barcode,
sa3m/stock-logistics-barcode,
sanube/stock-logistics-barcode,
seaalliancefood/stock-logistics-barcode,
sebalix/stock-logistics-barcode,
seffalabdelaziz/stock-logistics-barcode,
sendalpegat/stock-logistics-barcode,
sewisoft/stock-logistics-barcode,
shouyejing/stock-logistics-barcode,
simplifysolutions/stock-logistics-barcode,
subteno-it/stock-logistics-barcode,
takobi-online/stock-logistics-barcode,
unitek-solusi/OCA-stock-logistics-barcode,
valmarnet/stock-logistics-barcode,
vdedyukhin/stock-logistics-barcode,
versada/stock-logistics-barcode,
vidtsin/pos,
vidtsin/stock-logistics-barcode,
wader1990/stock-logistics-barcode,
westlyou/stock-logistics-barcode,
x0rzkov/odoo-stock-logistics-barcode,
xtendoo-corporation/stock-logistics-barcode,
xwh123807/stock-logistics-barcode,
yucer/stock-logistics-barcode,
zambee/stock-logistics-barcode,
and
zeroincombenze/stock-logistics-barcode |
<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg">
</a>
<a name="generate-barcodes-for-any-models-abstract"></a>
<h2>Generate Barcodes for any Models (Abstract)</h2>
<p>This module expends Odoo functionality, allowing user to generate barcode
depending on a given barcode rule for any Model.</p>
<p>For example, a typical pattern for products is "20.....{NNNDD}" that means
that:
* the EAN13 code will begin by '20'
* followed by 5 digits (named Barcode Base in this module)
* and after 5 others digits to define the variable price
* a 13 digit control</p>
<p>With this module, it is possible to:</p>
<ul class="simple">
<li>Affect a pattern (barcode.rule) to a model</li>
<li><dl class="first docutils">
<dt>Define a Barcode base:</dt>
<dd><ul class="first last">
<li>manually, if the base of the barcode must be set by a user. (typically an
internal code defined in your company)</li>
<li>automaticaly by a sequence, if you want to let Odoo to increment a
sequence. (typical case of a customer number incrementation)</li>
</ul>
</dd>
</dl>
</li>
<li>Generate a barcode, based on the defined pattern and the barcode base</li>
</ul>
<a name="installation"></a>
<h3>Installation</h3>
<p>This module use an extra python library named 'viivakoodi' you should install
to make barcode generation works properly. 'viivakoodi' is a more active for of
'pyBarcode'.</p>
<p><code>sudo pip install viivakoodi</code></p>
<a name="configuration"></a>
<h3>Configuration</h3>
<p>To configure this module, you need to:</p>
<ul class="simple">
<li>Go to Settings / Technical / Sequences & Identifiers / Barcode Nomenclatures</li>
<li>Select a Nomenclature</li>
<li>Create or select a rule</li>
</ul>
<img alt="/barcodes_generator_abstract/static/description/barcode_rule_tree.png" src="/barcodes_generator_abstract/static/description/barcode_rule_tree.png" />
<ul class="simple">
<li><dl class="first docutils">
<dt>For manual generation, set:</dt>
<dd><ul class="first last">
<li>'Base set Manually' in 'Generate Type'</li>
<li>Set the model</li>
</ul>
</dd>
</dl>
</li>
</ul>
<img alt="/barcodes_generator_abstract/static/description/barcode_rule_form_manual.png" src="/barcodes_generator_abstract/static/description/barcode_rule_form_manual.png" />
<ul class="simple">
<li><dl class="first docutils">
<dt>For automatic generation, set:</dt>
<dd><ul class="first last">
<li>'Base managed by Sequence' in 'Generate Type'</li>
<li>Set the model</li>
<li>Generate a new sequence by button, or affect a existing one</li>
</ul>
</dd>
</dl>
</li>
</ul>
<img alt="/barcodes_generator_abstract/static/description/barcode_rule_form_sequence.png" src="/barcodes_generator_abstract/static/description/barcode_rule_form_sequence.png" />
<p>In all cases, padding will be computed automaticaly, based on the number
of '.' in the Barcode Pattern field.</p>
<a name="usage"></a>
<h3>Usage</h3>
<p>This module is an abstract module. You can configure Barcode Rule, but to
enable this feature, you need to install an extra module for a given model.
This repository provide 'barcodes_generator_product' and
'barcodes_generator_partner' module to generate barcode for product or partner
model.</p>
<p>Alternatively, you can develop a custom module for a custom model. See
'Inheritance' parts.</p>
<p>Try this module on Runbot</p>
<a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/150/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a>
<a name="inheritance"></a>
<h3>Inheritance</h3>
<p>If you want to generate barcode for another model, you can create a custom
module that inherits on 'barcodes_generator_abstract' and inherit your model
like that:</p>
<dl class="docutils">
<dt>class MyModel(models.Model):</dt>
<dd>_name = 'my.model'
_inherit = ['my.model', 'barcode.generate.mixin']</dd>
<dt>class barcode_rule(models.Model):</dt>
<dd><p class="first">_inherit = 'barcode.rule'</p>
<p class="last">generate_model = fields.Selection(selection_add=[('my.model', 'My Model')])</p>
</dd>
</dl>
<p>Finally, you should inherit your model view adding buttons and fields.</p>
<a name="note"></a>
<h4>Note</h4>
<p>Your model should have a field 'barcode' defined.</p>
<a name="known-issues-roadmap"></a>
<h3>Known issues / Roadmap</h3>
<ol class="arabic simple">
<li>On barcode.rule model, constraint and domain system could be set between
'type' and 'generate_model' fields.</li>
</ol>
<ol class="arabic simple">
<li>Cache is being cleared in a constraint in <cite>barcode.rule</cite>. Mutating in a
constraint is bad practice & should be moved somewhere.</li>
</ol>
<a name="bug-tracker"></a>
<h3>Bug Tracker</h3>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-barcode/issues">GitHub Issues</a>. In case of trouble,
please check there if your issue has already been reported. If you spotted it
first, help us smashing it by providing a detailed and welcomed feedback.</p>
<a name="credits"></a>
<h3>Credits</h3>
<a name="images"></a>
<h4>Images</h4>
<ul class="simple">
<li>Icon of the module is based on the Oxygen Team work and is under LGPL licence:
<a class="reference external" href="http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html">http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html</a></li>
</ul>
<a name="contributors"></a>
<h4>Contributors</h4>
<ul class="simple">
<li>Sylvain LE GAL (<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>)</li>
<li>Dave Lasley <<a class="reference external" href="mailto:dave@laslabs.com">dave@laslabs.com</a>></li>
</ul>
<a name="maintainer"></a>
<h4>Maintainer</h4>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>This module is maintained by the OCA.</p>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>