OCA / stock-logistics-barcode

https://odoo-community.org/psc-teams/logistics-18
GNU Affero General Public License v3.0
158 stars 326 forks source link

[15.0]stock_barcodes defect for Exception - AttributeError: 'stock.picking' has no attribute 'put.in.pack' #492

Closed nicolas-tg closed 1 year ago

nicolas-tg commented 1 year ago

Module

The name of the module that has a bug: stock_barcodes: https://github.com/OCA/stock-logistics-barcode/tree/14.0/stock_barcodes

Describe the bug

Defect error message when we validate the Receipt Transfer after setting Done quantities from Barcode Scanner.

To Reproduce

Affected versions: 15.0, and probably earlier versions.

Steps to reproduce the behavior:

  1. Configure the Barcode Options with "Auto Put In Pack" [auto_put_in_pack] = true for Picking IN and set it for your Operation Type Receipt.
  2. Scan your Receipt using barcode scanner, to set done quantities for products
  3. Click "Validate" on the Receipt it will show the defect.

Expected behavior If this configuration is enable from the Barcode Options, but we do not use Packs or Lots, the Users should see an error message.

Additional context stock

Add any other context about the problem here. (e.g. OS, Python version, ...)

rousseldenis commented 1 year ago

@pedrobaeza

Maybe related to this ? https://github.com/OCA/stock-logistics-barcode/pull/454/

pedrobaeza commented 1 year ago

Maybe... I assign my colleague which is the father of the creature.

nicolas-tg commented 1 year ago

I edited the issue request.

rousseldenis commented 1 year ago

I edited the issue request.

@nicolas-tg Thanks, indeed, the PR pointed is solving that problem (for v14).

nicolas-tg commented 1 year ago

Thanks! Let me know if you want me to QC anything. If possible, I would like this issue to be sorted in v15.

sergio-teruel commented 1 year ago

@nicolas-tg Fixed here https://github.com/OCA/stock-logistics-barcode/pull/493