Odoo
Cyllo

Generate Barcodes (Abstract)

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}”:

  • the EAN13 code will begin with ‘20’,
  • followed by 5 digits (named Barcode Base in this module),
  • followed by 5 others digits to define the variable price with 2 decimals,
  • the last digit (the 13rd digit) is the control digit (i.e. the checksum).

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:

  • Affect a pattern (barcode.rule) to a model
  • Define a Barcode base:
    • manually, if the base of the barcode must be set by a user (typically an internal code defined in your company).
    • automatically by a sequence, if you want to let Cyllo increment a sequence (typical case of a customer number incrementation).
  • Generate a barcode, based on the defined pattern and the barcode base
Easy To Configure

This module very easy to configure. We can set barcode for different models

Easy To Generate
Barcode

This module helps to generate the barcode. We can generate barcode manually or automated

Disabled tab content

Depending Module

This module use an extra python library named ‘python-barcode’ you should install to make barcode generation works properly.


GNU Affero General Public License v3.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you comply with the terms of the GNU Affero General Public License, version 3.0, available at https://www.gnu.org/licenses/agpl-3.0.html. You may develop software that uses 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 software under the terms of the GNU Affero General Public License, version 3.0. It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software without including the complete text of the GNU Affero General Public License, version 3.0, along with any applicable additional permissions. 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.

Free
0
Technical Name barcodes_generator_abstract
License AGPL-3
Lines of Code 442
  • barcodes
You bought this module and need support? Click Here!