OCA / stock-logistics-barcode

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

barcodes_generator_abstract: 'barcode' value not respected in create() of 'barcode.generate.mixin' #538

Closed carmenbianca closed 2 months ago

carmenbianca commented 10 months ago

Module

barcodes_generator_abstract (in combination with barcodes_generator_product).

Describe the bug

When creating a product and manually typing in the barcode, that barcode is not saved to the product if barcode automation is active.

To Reproduce

Affected versions: 12, probably later.

Steps to reproduce the behavior:

  1. Install barcodes_generator_product
  2. Enable automation (with sequence) on the product barcode.rule.
  3. Install pos_price_to_weight, which has a demo product with a defined barcode.
  4. Error during installation.

Expected behavior If a barcode is defined during creation, we probably shouldn't override it with automation.

Additional context I'm working on seeing if the module is compatible with pos_price_to_weight.

github-actions[bot] commented 4 months ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.