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

[14.0] stock_barcodes: regression on inventory #565

Closed alexis-via closed 2 weeks ago

alexis-via commented 8 months ago

The PR https://github.com/OCA/stock-logistics-barcode/pull/560 by @dalonsod has introduced a regression: it uses the fields "user_id", "inventory_quantity_set" and "inventory_date" and on stock.quant, which exists on odoo v15 but NOT on odoo v14 !

There is the code which uses the non-existing user_id + inventory_quantity_set + fields inventory_date on stock.quant: https://github.com/OCA/stock-logistics-barcode/blob/14.0/stock_barcodes/wizard/stock_barcodes_read_inventory.py#L28

alexis-via commented 8 months ago
Traceback (most recent call last):
  File "/home/alexis/new_boite/dev/14/odoo/odoo/http.py", line 652, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/alexis/new_boite/dev/14/odoo/odoo/http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: Invalid field stock.quant.inventory_date in leaf ('inventory_date', '<=', datetime.date(2023, 12, 14))
dalonsod commented 8 months ago

Ouch. It's clear we missed reviewing that option, and tests were passed anyway.

We'll take a look and solve it ASAP.

cc @ChristianSantamaria @sergio-teruel

alexis-via commented 8 months ago

Any news ? Can I help on this regression ? I'm not very familiar with this code, but I'm ready to help !

dalonsod commented 8 months ago

We'll started with it, but not working yet 😞, so no PR is created yet. We'll continue with it...

dalonsod commented 8 months ago

@alexis-via #569

github-actions[bot] commented 1 month 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.