This module extends Cyllo functionality, allowing user to generate barcode depending on a given barcode rule for any Model.
For example, if the barcode pattern is “20…..{NNNDD}”:
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. Alternatively, you can develop a custom module for a custom model. See ‘Inheritance’ parts. If you want to generate barcode for another model, you can create a custom module that depend on ‘barcodes_generator_abstract’ and inherit your model like that: class MyModel(models.Model):
class MyModel(models.Model):
_name = 'my.model'
_inherit = ['my.model', 'barcode.generate.mixin']
class barcode_rule(models.Model):
_inherit = 'barcode.rule'
generate_model = fields.Selection(selection_add=[('my.model', 'My Model')])
With this module, it is possible to:
This module very easy to configure. We can set barcode for different models
This module helps to generate the barcode. We can generate barcode manually or automated
To configure this module, you need to:
Go to a Customer/Contact form,
Go to a Customer/Contact form,
This module use an extra python library named ‘python-barcode’ you should install to make barcode generation works properly.