GithubHelp home page GithubHelp logo

oca / stock-logistics-barcode Goto Github PK

View Code? Open in Web Editor NEW
154.0 154.0 321.0 11.22 MB

Home Page: https://odoo-community.org/psc-teams/logistics-18

License: GNU Affero General Public License v3.0

Python 28.65% HTML 71.35%
erp hacktoberfest odoo python

stock-logistics-barcode's Introduction

Runboat Pre-commit Status Build Status codecov Translation Status

stock-logistics-barcode

TODO: add repo description.

Available addons

addon version maintainers summary
barcodes_generator_abstract 16.0.3.0.4 legalsylvain Generate Barcodes for Any Models
barcodes_generator_location 16.0.1.0.0 Generate Barcodes for Stock Locations
barcodes_generator_package 16.0.1.1.0 legalsylvain Generate Barcodes for Product Packaging
barcodes_generator_product 16.0.2.1.0 legalsylvain Generate Barcodes for Products (Templates and Variants)
product_barcode_constraint_per_company 16.0.1.0.2 legalsylvain Change the product barcode constraint, allowing the same barcode for differents companies
product_multi_barcode 16.0.1.0.1 Multiple barcodes on products
product_multi_barcode_constraint_per_company 16.0.1.0.1 Glue module for product_multi_barcode andproduct_barcode_constraint_per_company
product_multi_barcode_stock_menu 16.0.1.0.0 Multiple barcodes menu
product_packaging_multi_barcode 16.0.1.1.0 Multiple barcodes on product packagings

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


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.

stock-logistics-barcode's People

Contributors

alessandro-fiorino avatar carlosroca13 avatar chienandalu avatar cvinh avatar david-s73 avatar francesco-ooops avatar hugho-ad avatar ilyasprogrammer avatar ivorra78 avatar jjscarafia avatar kevinkhao avatar lasley avatar legalsylvain avatar lestrat21 avatar liweijie0812 avatar mymage avatar nguyenminhchien avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar pedrobaeza avatar phatnguyenuit avatar santostelmo avatar sebastienbeau avatar sicursam avatar stefanrijnhart avatar sysadminmatmoz avatar vib-adhoc avatar weblate avatar zar21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stock-logistics-barcode's Issues

product_multi_ean changes column type

Module product_multi_ean in branch 7.0 and 8.0 changes a column type (product.product ean13 changes from char to m2o). This is not a nice thing to do as it breaks any module which is not depending on product_multi_ean and needs to create products with an ean13 field (in demo data or tests).

This kind of db layout changes should be avoided.

Options:

  • remove product_multi_ean from OCA
  • change the db layout for product_multi_ean to restore the ean13 field as a char field (and add another field to access the main ean13) (but this can break module depending on product_multi_ean on some installation)
  • not sure

Changing the db layout of the module in 9.0 and 10.0 is easy to do as the module has not yet been ported. The main question is for 7.0 and 8.0.

Odoo server can't start when stock_scanner is installed with queue_job.

There is a problem when stock_scanner module is installed among queue_job module. This line inspects the model and tries to get the value of each property of the class. Because of the new methods, a singleton error is raised when the server is starting.

I don't know if queue_job module should be fixed rather than stock_scanner.(https://github.com/odoo/odoo/blob/10.0/odoo/fields.py#L2445).

As @sylvain-garancher said in #117, there is a problem with compute and inverse methods.

In my opinion, we should add new Serialized fields instead of trying to work with Char fields.

How to enable barcode number auto-generation?

Firstly, I am new to Odoo and sorry for this silly question.

I've successfully installed the module onto my Odoo8 server.

Every time I create a product and its variants, I have to press "Generate the EAN13" button for each variant to generate the barcode number.

How do I set the module to have a barcode number generated automatically when a product is created? I tried to look around all over the place but couldn't find where to set this.

Thank you in advance for any help.

[RFC] pos_stock_picking: POS for carrier drivers

This module will extend v10 point of sale to provide a stock.picking delivery interface. The main goal is to provide offline access to a set of pickings for the day, aggregating all movements into a session - just like POS.

I think we will be able to reuse a lot of the existing POS assets, then we can glue in the interface from web_stock_picking. We will be rewriting web_stock_picking with this in mind in order to allow for the widget to be used in this context & searches to be localized.

I envision a delivery terminal working in the exact same way a POS terminal would in a lot of cases, except we'll be using stock.picking instead of product.product for the initial scan. I'm thinking it can even go in the same "Point of Sale" top level menu, although maybe it would make sense to make a new menu "Delivery" or something.

The option to use the delivery interface for a POS terminal will be enabled in pos.config using a new is_delivery_terminal attribute. If this attribute is enabled, a warehouse can optionally be selected to indicate where the terminal is based from to provide data filtering. If a session is initiated for a delivery terminal, the delivery interface will be shown instead of the POS interface.

Instead of the approach of preloading everything, we will assume that the delivery session starts in an online setting (the warehouse). The standard stock.picking workflow will take place, with the picking agent scanning a picking barcode & scanning lots/products to fill the picking.

A new "Queue Delivery" option will be added to the picking interface. Using this option will add the stock.picking into a pos.delivery & cache the picking + related data (lot, etc). Restarting the POS session will recache the correct pos.delivery, which will allow for a reload or whatever.

A new view will be added into the picking interface to view high level info of queued deliveries. Picking barcodes may also be scanned to simply bring up the picking. A new field delivered_qty will be added to stock.picking, and scanning the products/lots associated with the current picking will add to those quantities - just like it would when you scan for pickings.

This module will also optionally gather a signature from the receiving party in order to confirm delivery. This signature will be stored with the stock.picking by using a mail.thread using jSignature from web in a similar way as website_quote. The option will be set in the delivery terminal config.

Confirming the delivery will set the pos.delivery to done.

When closing the session for a delivery terminal, the pos.delivery for the session will be displayed above the summary by payment methods. Summary by payment methods will be left for future plans of allowing CoDs via the existing pos.order. That's not coming in the first version though unfortunately.

Validating the entries will perform the changes on the associated stock.pickings (validate, add delivered qty, add signature). Undelivered items will need to be reconciled in a way similar to missing cash.

Sorry for the long RFC here, the requirements are quite dense. I can't find anything remotely like what I'm looking for, even in terms of delivery type workflows. I am also planning on splitting out some of the logic from delivery_internal to offload the requirements, but figured it was worth slight scope overlap in order to provide a complete picture.

Anyone have any thoughts?

[REF] Switching from viivakoodi lib to python-barcode (back)

Ref of this issue : this comment.

@yucer said :
Is there another project python-barcode that seems to be a fork from viivakoodi. It has additional releases and cleaner packaging.
Also it has less TODOs. One of them Improve Python 3 support seems to be done. Do you thing it can be used instead of viivakoodi ?

Hi @yucer,
Python-barcode is not a fork ! viivakoodi is a fork of python-barcode. (ref : #76) And we switched because python-barcode was not active anymore. (In fact Bitbucket old links are now broken)
But well, now, python-barcode seems to be more active than viivakoodi.

It seems that @lasley is now maintainer of viivakoodi. ref. @lasley : what do you think about that proposal ?

I'm personaly fully open to switch from a lib to another.

  • I have no tecnical point of view
  • regarding community activity, I'm in favor of the switch

Viivakoodi activity :

  • 7 contributors, 0 commits since 2 years.

image

Python-barcode activity :

  • 13 contributors, several commits in 2019.

image

@yucer, do you want to make the PR to switch the lib, to see if all is OK ?

regards.

Cannot install barcodes_generator_abstract in Odoo 10.0 - "No module named barcode" message

The viivakoodi library is already installed.
Tryed to install from Aplications within Odoo 10 and received the message "No module named barcode".
Tryed to install with: pip install odoo10_addon_barcodes_generator_abstract
And this is the message:

Collecting odoo10_addon_barcodes_generator_abstract
Downloading https://files.pythonhosted.org/packages/c4/c4/a3ad241476e9826d527487ccfe89cde891ad9cf07ed43d46d22a93f8e0eb/odoo10_addon_barcodes_generator_abstract-10.0.1.0.3-py2-none-any.whl (129kB)
100% |████████████████████████████████| 133kB 497kB/s
Requirement already satisfied: viivakoodi in /usr/local/lib/python2.7/dist-packages (from odoo10_addon_barcodes_generator_abstract) (0.8.0)
Collecting odoo<10.1dev,>=10.0 (from odoo10_addon_barcodes_generator_abstract)
Could not find a version that satisfies the requirement odoo<10.1dev,>=10.0 (from odoo10_addon_barcodes_generator_abstract) (from versions: )
No matching distribution found for odoo<10.1dev,>=10.0 (from odoo10_addon_barcodes_generator_abstract)

[Q][Resolved] How to activate the plugins?

So I have just installed the plugins on a fresh Odoo instance which only has the Inventory app installed.
The problem is that, when I create a new product I'm not seeing the barcode generation rule selector anywhere.

screenshot_2017-04-19_15-44-37

A little guidance with that, please? I'd be grateful :)


version Odoo Server 10.0-20170419

Generate barcodes for existing products

Barcode generator behaviour is good enough for new products, but some companies already work with odoo and have a large database of products, which would largely benefit from barcode implementation on their warehouse.

We are working on this to do a PR to generate barcodes from existing product reference (default_code), but I open this issue to ask for feedback on any issue or request that might suit community interests.

Odoo 9c Support

Well i was wondering if this module will be available for the odoo 9 community version ??
IF NOT would you recommend an other ??
Thanks in advance

pip install is broken for barcodes_generator_abstract

when running the command
pip install odoo10_addon_barcodes_generator_abstract

The command fails with the following stack trace:

Downloading/unpacking odoo10-addon-barcodes-generator-product
  Downloading odoo10_addon_barcodes_generator_product-10.0.1.0.0-py2-none-any.whl (67kB): 67kB downloaded
Downloading/unpacking odoo10-addon-barcodes-generator-abstract (from odoo10-addon-barcodes-generator-product)
  Downloading odoo10_addon_barcodes_generator_abstract-10.0.1.0.0-py2-none-any.whl (121kB): 121kB downloaded
Requirement already satisfied (use --upgrade to upgrade): odoo>=10.0,<10.1dev in /usr/lib/python2.7/dist-packages (from odoo10-addon-barcodes-generator-product)
Downloading/unpacking barcode (from odoo10-addon-barcodes-generator-abstract->odoo10-addon-barcodes-generator-product)
  Downloading barcode-0.6.0.tar.gz
  Running setup.py (path:/tmp/pip-build-Y4M0Yo/barcode/setup.py) egg_info for package barcode
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-Y4M0Yo/barcode/setup.py", line 16, in <module>
        import barcode as distmeta
      File "barcode/__init__.py", line 10, in <module>
        from .barcode import filter_distance, all_barcodes, filter_stretches
      File "barcode/barcode.py", line 1, in <module>
        import Levenshtein
    ImportError: No module named Levenshtein
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-Y4M0Yo/barcode/setup.py", line 16, in <module>

    import barcode as distmeta

  File "barcode/__init__.py", line 10, in <module>

    from .barcode import filter_distance, all_barcodes, filter_stretches

  File "barcode/barcode.py", line 1, in <module>

    import Levenshtein

ImportError: No module named Levenshtein

Wouldn't adding this to setup.py fix the issue? EDIT: I see now that this not how Odoo packaging is done

from setuptools import setup

setup(
install_requires=[
          'viivakoodi',
      ],
)

EDIT:
I see now the setuptools-odoo is generating the wheels by parsing the odoo module manifest files. I put in what I'm guessing will fix this in #101. I'll try and confirm that this fix works shortly.

Export with multiple steps/transitions with the same name

If you export a scenario with several transitions with the same name (or several steps with the same name), the exporter will generate the same XML ID for the each of the transitions/steps (as they are based on the name).

The following patch (created from V10) will add a "_2" if it's the 2nd one, a "_3" if it's the third and so on and so forth.

--- a/modules/oca/addons/stock-logistics-barcode/stock_scanner/scripts/export_scenario.py
+++ b/modules/oca/addons/stock-logistics-barcode/stock_scanner/scripts/export_scenario.py
@@ -159,6 +159,7 @@ step_obj = Object(cnx, 'scanner.scenario.step')
 step_ids = step_obj.search([
     ('scenario_id', '=', int(opts.scenario_id)),
 ], 0, None, 'name')
+step_xmlid_counters = {}
 for step_id in step_ids:
     step = step_obj.read(step_id, [])[0]
     # delete unuse key
@@ -175,6 +176,14 @@ for step_id in step_ids:
             normalize_name(scen_read['name']),
             normalize_name(step['name']),
         )
+    if step_xml_id in step_xmlid_counters:
+        step_xmlid_counters[step_xml_id] += 1
+        step_xml_id += '_%d' % (step_xmlid_counters[step_xml_id])
+        step_xmlid_counters[step_xml_id] = 1
+        # This prevents problems with 2 steps named 'test' [generating 'test' and 'test_2']
+        # and a third step named 'test_2' [with this code, it will generate 'test_2_2']
+    else:
+        step_xmlid_counters[step_xml_id] = 1
     step['id'] = step_xml_id
 
     resid[step_id] = step_xml_id
@@ -202,6 +211,7 @@ transition_obj = Object(cnx, 'scanner.scenario.transition')
 transition_ids = transition_obj.search([
     ('from_id.scenario_id', '=', int(opts.scenario_id)),
 ], 0, None, 'name')
+transition_xmlid_counters = {}
 for transition_id in transition_ids:
     transition = transition_obj.read(transition_id, [])[0]
     del transition['scenario_id']
@@ -210,12 +220,20 @@ for transition_id in transition_ids:
 
     # get res id
     transition_xml_id = transition_obj.get_metadata(transition_id)[0]['xmlid']
-    transition['id'] = transition_xml_id
     if not transition_xml_id:
-        transition['id'] = 'scanner_scenario_%s_%s' % (
+        transition_xml_id = 'scanner_scenario_%s_%s' % (
             normalize_name(scen_read['name']),
             normalize_name(transition['name']),
         )
+    if transition_xml_id in transition_xmlid_counters:
+        transition_xmlid_counters[transition_xml_id] += 1
+        transition_xml_id += '_%d' % (transition_xmlid_counters[transition_xml_id])
+        transition_xmlid_counters[transition_xml_id] = 1
+        # This prevents problems with 2 transitions named 'test' [generating 'test' and 'test_2']
+        # and a third transition named 'test_2' [with this code, it will generate 'test_2_2']
+    else:
+        transition_xmlid_counters[transition_xml_id] = 1
+    transition['id'] = transition_xml_id
 
     # not write False in attribute tracer
     if not transition['tracer']:

Migration to version 12.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-12.0

Modules to migrate

Blueprint: GTIN Barcode Support

GTIN is a barcode nomenclature that provides package, unit, and item references in the code + a mod10 checksum similar to EAN.

There are multiple types of GTIN - my project goal is specifically to GTIN14, but I believe I will be able to nail support for all of them because the lower ones are just zero padded. The other GTIN versions are encoded with EAN13 (GTIN13), UPC-A (GTIN12), or EAN8 (GTIN8)

Following are the high level items that need to be accomplished as part of this. It looks like we do have some logic available in base_gs1_barcode for the encoding too (GTIN14 is encoded as GS1-128).

  • Base GTIN14 validation - #36
    • Also known as EAN14. Can use similar logic to the existing EAN sums - too bad they're not more abstracted so I could just use them though 😦
  • GTIN* => GTIN14 conversions
  • Add a package reference column on product.packaging - this will need to be used to identify the quantity multiplier
  • Add company prefix model, with GS1, GS1-8, and UPC as types. M2M with vendors, allowing for relation to their company prefix codes
  • GTIN14 nomenclature type
    • First digit is indicator (how many quantity of package units)
    • Twelve digits following are GS1 company prefix and item reference
    • Last digit is check digit
  • GTIN12 nomenclature
    • Eleven digit UPC Company Prefix
    • Last digit is check digit
  • GTIN8 nomenclature type
    • Seven digit GS1-8 company prefix
    • Last digit is check digit

More info on GTIN:

Please let me know if this overlaps with anything existing, or if there are already existing strategies in existence for handling of GTIN 😄

cc @t3ddftw

Missing barcode on stock.report_lot_barcode

Barcodes are missing. Not sure where to begin. I installed reportlab and all the fonts. The serial number shows up fine but the barcode is just a small black box with an outline where the barcode should be. Is there some mroe fonts needed or something? FYI product barcode printing works fine, it's just the lot serial number that has issues.

Abstract/Product POS (Unknown Barcode)

Hi,

I have noticed when I install the two modules (Abstract and Product), they cause an error in POS, when using the barcode scanner (unknown barcode). I wonder why is that when using the generator for products barcodes.

OperationalError: Unable to use a closed cursor.

Hello, I´m in Odoo v10.0 CE, i want to autogenerate the barcode EAN-13 in the new products.
I Install barcodes_generator_abstract and barcodes_generator_product.
I generate a barcode nomenclature and barcode pattern 23...........
The first generation of barcode works well, but if i want to create a new products, this is the error:
If i update the addon barcodes_generator_product works well one more time but in the second time fail again.

Odoo Server Error
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 638, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 675, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 324, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 882, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 874, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 679, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 664, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/odoo/custom/addons/barcodes_generator_product/models/product_template.py", line 45, in create
    template = super(ProductTemplate, self).create(vals)
  File "/odoo/odoo-server/addons/product/models/product_template.py", line 267, in create
    template.create_variant_ids()
  File "/odoo/odoo-server/addons/product/models/product_template.py", line 400, in create_variant_ids
    'attribute_value_ids': [(6, 0, variant_ids.ids)]
  File "/odoo/odoo-server/addons/product/models/product.py", line 315, in create
    product = super(ProductProduct, self.with_context(create_product_product=True)).create(vals)
  File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 228, in create
    thread = super(MailThread, self).create(values)
  File "/odoo/custom/addons/barcodes_generator_abstract/models/barcode_generate_mixin.py", line 40, in create
    if barcode_rule.exists():
  File "/odoo/odoo-server/odoo/models.py", line 4406, in exists
    self._cr.execute(query, [tuple(ids)])
  File "/odoo/odoo-server/odoo/sql_db.py", line 140, in wrapper
    **raise psycopg2.OperationalError(msg)
OperationalError: Unable to use a closed cursor.**

The explication of the error:
exception psycopg2.OperationalError
Exception raised for errors that are related to the database’s operation and not necessarily under the control of the programmer, e.g. an unexpected disconnect occurs, the data source name is not found, a transaction could not be processed, a memory allocation error occurred during processing, etc. It is a subclass of DatabaseError.

[11.0] AttributeError: module 'odoo.fields' has no attribute 'Serialized'

I catch this error after last update, may you help me?

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/odoo/odoo/service/server.py", line 250, in app
return self.app(e, s)
File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/opt/odoo/odoo/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/opt/odoo/odoo/odoo/http.py", line 1317, in call
self.load_addons()
File "/opt/odoo/odoo/odoo/http.py", line 1349, in load_addons
m = import('odoo.addons.' + module)
File "", line 971, in _find_and_load

File "", line 955, in _find_and_load_unlocked

File "", line 656, in _load_unlocked

File "", line 626, in _load_backward_compatible

File "/opt/odoo/odoo/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 6, in

File "/opt/odoo/community_addons/bundles/stock-logistics-barcode/stock_scanner/models/init.py", line 8, in
from . import scanner_hardware
File "/opt/odoo/community_addons/bundles/stock-logistics-barcode/stock_scanner/models/scanner_hardware.py", line 37, in
class ScannerHardware(models.Model):
File "/opt/odoo/community_addons/bundles/stock-logistics-barcode/stock_scanner/models/scanner_hardware.py", line 152, in ScannerHardware
tmp_values = fields.Serialized(
AttributeError: module 'odoo.fields' has no attribute 'Serialized'

Migration to version 11.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

Modules to migrate

[BUG] stock_scanner: unable to install stock_scanner in demo mode

Reproducible in V11. Not checked whether it occurs in other versions.

Steps to reproduce:

  • Create a fresh database in Demo mode (Load demonstration data = True)
  • Rename the company name "YourCompany" to something else, for example: "HappyCompany"
  • install stock_scanner

Actual behavior:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 650, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 692, in dispatch
    result = self._call_function(**self.params)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 335, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 936, in __call__
    return self.method(*args, **kw)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/addons/web/controllers/main.py", line 935, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/addons/web/controllers/main.py", line 923, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-41>", line 2, in button_immediate_install
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/addons/base/module/module.py", line 71, in check_and_log
    return method(self, *args, **kwargs)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/addons/base/module/module.py", line 448, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/addons/base/module/module.py", line 541, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/modules/loading.py", line 380, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/modules/loading.py", line 274, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/modules/loading.py", line 184, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='demo')
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/odoo-11.0/odoo/modules/loading.py", line 95, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/oca/stock_scanner/load_scenario.py", line 223, in scenario_convert_file
    import_scenario(env, module, fp, mode, directory, filename)
  File "/home/onestein/Pycharm/Gitlab/odoo-11.0/src/oca/stock_scanner/load_scenario.py", line 111, in import_scenario
    'Company not found: %s' % scenario_values['company_id'])
ValueError: Company not found: False

Help, how install on windows 10?

Hi, I'm new Odoo user, I'm try it on localhost windows 10. I've learn how install external modules, but I can't install this module, don't work.
I've unzip file and put it in addons folder.
I've odoo in developer mode, I've restarted odoo and postgree service, and i've update modules list.
But when I search module, I don't find it!
Anyone can help me?
Thanks

installing module Generate Barcodes for Stock Production Lots

Hi @lasley
When I try to install the module Generate Barcodes for Stock Production Lots I get an error in this line

The traceback:

File "/home/odoo10/odoo-dev/odoo/extra-addons/barcodes_generator_abstract/models/barcode_generate_mixin.py", line 70, in generate_barcode
barcode_class = item.get_barcode_class(
ParseError: "'stock.production.lot' object has no attribute 'get_barcode_class'" while parsing /home/odoo10/odoo-dev/odoo/extra-addons/barcodes_generator_lot/demo/function.xml:15, near

Thank you

Update form with UOM and Quantity

Hi,

the app is great. Very helpful, but maybe you can add 2 functions?:

  1. display the UOM ... when counting it is important to know the UOM
  2. Jump with the cursor in the "add_qty" field .. so you can add the Quantity and just press Enter to Update

Thank you and happy new year

edit: I use odoo8

[9.0][BUG] Error "IllegalCharacterError: EAN code can only contain numbers." when generating a new barcode



Odoo Server Error

Traceback (most recent call last):
  File "/.repo_requirements/odoo/openerp/http.py", line 648, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/.repo_requirements/odoo/openerp/http.py", line 685, in dispatch
    result = self._call_function(**self.params)
  File "/.repo_requirements/odoo/openerp/http.py", line 321, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/.repo_requirements/odoo/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/.repo_requirements/odoo/openerp/http.py", line 314, in checked_call
    result = self.endpoint(*a, **kw)
  File "/.repo_requirements/odoo/openerp/http.py", line 964, in __call__
    return self.method(*args, **kw)
  File "/.repo_requirements/odoo/openerp/http.py", line 514, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/odoo-9.0/addons/web/controllers/main.py", line 899, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/odoo/odoo-9.0/addons/web/controllers/main.py", line 887, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/.repo_requirements/odoo/openerp/api.py", line 250, in wrapper
    return old_api(self, *args, **kwargs)
  File "/.repo_requirements/odoo/openerp/api.py", line 381, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/odoo/build/OCA/stock-logistics-barcode/barcodes_generator_product/models/product_template.py", line 36, in generate_barcode
    self.product_variant_ids.generate_barcode()
  File "/.repo_requirements/odoo/openerp/api.py", line 248, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/odoo/build/OCA/stock-logistics-barcode/barcodes_generator_abstract/models/barcode_generate_mixin.py", line 57, in generate_barcode
    item.barcode = barcode_class(custom_code)
  File "/.repo_requirements/virtualenv/python2.7/local/lib/python2.7/site-packages/barcode/ean.py", line 42, in __init__
    raise IllegalCharacterError('EAN code can only contain numbers.')
IllegalCharacterError: EAN code can only contain numbers.

@legalsylvain do you have any idea please?

How to install Product_barcode_generator? Barcode Generator Error

Greetings Odoo enthusiasts...

I'm pretty new to Odoo but i like the system very well so far. I only have one problem when trying to install apps/modules from third party's to Odoo, every time i do this the installation gives a trace back call error, odoo server error or openerp error. With some apps it won't give an error but it won't install.

The apps i tried to install are:

Product_barcode_generator from https://github.com/OCA/stock-logistics-barcode
Product_barcode_generator_custom from https://github.com/it-projects-llc/pos-addons#9.0
Mass label reporting from https://github.com/JayVora-SerpentCS/SerpentCS_Contributions-v8/tree/9.0

My installation is V9.0 community edition and i'm running it on Ubuntu server 16.04 LTS.

I hope someone can help me with this issue. Greetings and allready thanks for the help

CLA for kos94ok-3D

I sent email with signed pdf file on 4 July 2019. But I did not have response.

[10.0] Barcode in Product Packaging

Hi all,

I need to reimplement barcodes in packagings (apart of barcode packaging generator existing module).

Am I in the right way to do so ? Just to have some advice.

tr_barcode_on_picking, error in create picking v7

I'm getting this error on picking creation. The module is recently download from github. Thanks in advance

Client Traceback (most recent call last):
File "/opt/odoo/odoo-server/addons/web/http.py", line 204, in dispatch
response["result"] = method(self, *_self.params)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 1137, in call_button
action = self._call_kw(req, model, method, args, {})
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 1125, in _call_kw
return getattr(req.session.model(model), method)(_args, **kwargs)
File "/opt/odoo/odoo-server/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/odoo/odoo-server/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/odoo/odoo-server/addons/web/session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
File "/opt/odoo/odoo-server/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/odoo/odoo-server/openerp/netsvc.py", line 306, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/odoo/odoo-server/openerp/service/web_services.py", line 632, in dispatch
res = fn(db, uid, _params)
File "/opt/odoo/odoo-server/openerp/osv/osv.py", line 193, in execute_kw
return self.execute(db, uid, obj, method, *args, *_kw or {})
File "/opt/odoo/odoo-server/openerp/osv/osv.py", line 133, in wrapper
return f(self, dbname, _args, *_kwargs)
File "/opt/odoo/odoo-server/openerp/osv/osv.py", line 202, in execute
res = self.execute_cr(cr, uid, obj, method, _args, *_kw)
File "/opt/odoo/odoo-server/openerp/osv/osv.py", line 190, in execute_cr
return getattr(object, method)(cr, uid, _args, *_kw)
File "/opt/odoo/custom/addons/magento/sale-wkfl/sale_exceptions/sale.py", line 159, in action_button_confirm
cr, uid, ids, context=context)
File "/opt/odoo/odoo-server/addons/sale/sale.py", line 581, in action_button_confirm
wf_service.trg_validate(uid, 'sale.order', ids[0], 'order_confirm', cr)
File "/opt/odoo/odoo-server/openerp/workflow/wkf_service.py", line 119, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/opt/odoo/odoo-server/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 106, in _execute
returned_action = wkf_expr.execute(cr, ident, workitem, activity)
File "/opt/odoo/odoo-server/openerp/workflow/wkf_expr.py", line 67, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/opt/odoo/odoo-server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/opt/odoo/odoo-server/openerp/tools/safe_eval.py", line 288, in safe_eval
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in
File "/opt/odoo/odoo-server/openerp/osv/orm.py", line 378, in function_proxy
return attr(self._cr, self._uid, [self._id], _args, *_kwargs)
File "/opt/odoo/odoo-server/addons/sale_stock/sale_stock.py", line 455, in action_ship_create
self._create_pickings_and_procurements(cr, uid, order, order.order_line, None, context=context)
File "/opt/odoo/odoo-server/addons/sale_stock/sale_stock.py", line 423, in _create_pickings_and_procurements
picking_id = picking_obj.create(cr, uid, self._prepare_order_picking(cr, uid, order, context=context))
File "/opt/odoo/custom/addons/extras/stock-logistics-barcode/tr_barcode_config/barcode/barcode_osv.py", line 123, in create
self._name, context=context)
File "/opt/odoo/custom/addons/extras/stock-logistics-barcode/tr_barcode_config/barcode/barcode_osv.py", line 67, in create_barcode
if not context.get('__copy_data_seen'):
AttributeError: 'NoneType' object has no attribute 'get'

[barcodes_generator] Limited barcode sequence

Companies usually purchase a limited number of segment of UPC's. Would be interesting to pre-allocate the segment into the rule, and ensure that the user gets a proper error message when all UPC's have been allocated.

Perhaps this would require adding a 'Max Number' field in ir.sequence, and triggering an error message when the max is going to be exceeded.

Migration to version 10.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-10.0

Modules to migrate

  • barcode_link
  • base_gs1_barcode
  • product_barcode_generator - By @JosDeGraeve - #63 Deprecated
  • barcodes_generator_abstract - #65
  • barcodes_generator_product - #66
  • barcodes_generator_partner - #67
  • mobile_app_inventory - By @abondis - #174
  • product_multi_ean
  • stock_inventory_barcode - By @gurneyalex - #129
  • stock_scanner - By @sylvain-garancher - #46
  • stock_scanner_receipt By @misern2 - #146
  • tr_barcode Removed as obsolete
  • tr_barcode_config Removed as obsolete
  • tr_barcode_field Removed as obsolete
  • tr_barcode_on_picking Removed as obsolete
  • tr_barcode_on_prodlots Removed as obsolete
  • tr_barcode_on_product Removed as obsolete
  • tr_barcode_on_tracking Removed as obsolete

[11.0] stock_scanner: singleton error

Expected singleton: scanner.hardware(1, 2)" while evaluating 'model.timeout_session()
Reproduce:
Create more than one scanner.hardware records
Use odoo-sentinel for login scenario or set manual for scanner.hardware records Last call
Run cron "Remove the current user_id and scenario values on session timeout"

[v10,v11][stock_scanner] The sentinel session session not started

Hi all,
I have read line by line the configuration and how to use guide but can not get the point to start the sentinel session with the scanner device

already install odoo-sentinel with pip3 install odoo-sentinel, and success (inside the same odoo virtual environment)

I have successfully installed stock_scanner module on Odoo V11 fresh install, with demo data loaded. sentinel technical user is there, and have enabled login in setting-->warehouse-->setting

I have one SMART SCANNER DEVICE (android os), and have installed SSH client
Scanner device and odoo-server in the same local network (wifi)
I have login to odoo-server using ssh-client (juice ssh client), success
But nothing happen to the smart barcode screen

Tried to create .odoo-sentinelrpc file and placed inside user directory
Have tried to use sentinel user in scanner hardware record file (default was empty, the sentinel user put in there)

But still, no any sentinel session seem to start

Please help, what step is missed or wrong here. Thank you.

[11.0][Multi Ean]Support different barcodes format

A big part of the products we manage are referenced by multiple barcodes (same product, many barcodes during the years) and with barcodes like UPC-A or, in some case, other strange formats.
Is it possibile to adapt the product_multi_ean module to accept different types of barcodes? Could be enough (or safe) to remove the ean13 validation within the ProductEan13 class?
I tried to find other modules to store multi barcodes for the same product, but i didn't find anything else better than this one.

Thanks

[RFC] Contributing an open source Android app for stock moving with barcode scanning to OCA

Hello,

I have been working on an Android application which at some point I would like to push to OCA https://github.com/daramousk/android-odoo-delivery.

The use case for such an application would be to perform stock moves on the go.

At this stage this is heavily beta and possible you will experience a lot of crashes. Basically at this stage there is a primitive UI that you can use to synchronize to your server, use the phone's camera to scan for stuff, search etc.

What I would like from this ticket is to do some proper requirements gathering as to what do we need from such an application, and what a proper interface would look like.

Your contributions are greatly appreciated.

Thanks

Android mobile as scanner hardware?

Hi,
I'm trying to setup my android mobile phone as hardware scanner. Currently I'm planning to host sentinel.py on my VPS and use JuiceSSH or any other SSH app to connect to VPS and run sentinel.py inside.
I was wondering is there any other open sourced implementation which is more native for android? Like running sentinel directly in android as an app?

Also I noticed there's two types of transition_type: keyboard and scanner. Is there any difference if I use sentinel.py on SSH connection? I think like it can call barcode scanner on native application and I currently using android keyboard with barcode scanner who works like keyboard typing.

I have no experience how professional barcode readers works and what software they use.

It would be nice if someone share their experience with android scanners.

Thank you

[9.0] Need help. barcodes_generator_product issue, me or everyone?

Hi
Please help,
I Have installed barcodes_generator_product and barcodes_generator_abstract in V 9.0. Followed the instruction and setup "auto generating" and manual once at a time for products. Barcode are not generated automatically either manually ( no buttons in product template).

pyBarcode installed.

Thanks

Dev branch on OCA repo

Hi @legalsylvain - Looks like we have one of your branches on OCA side. I ❤️ your naming schema btw, people trying to find me based on my branch names would be screwed 😆

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.