diff --git a/deltatech_stock_inventory/__manifest__.py b/deltatech_stock_inventory/__manifest__.py index 9b8b3d406c..5b7bc146a6 100644 --- a/deltatech_stock_inventory/__manifest__.py +++ b/deltatech_stock_inventory/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Stock Inventory", "summary": "Inventory Old Method", - "version": "18.0.2.6.1", + "version": "18.0.2.6.2", "author": "Terrabit, Dorin Hongu", "website": "https://www.terrabit.ro", "category": "Warehouse", diff --git a/deltatech_stock_inventory/i18n/ro.po b/deltatech_stock_inventory/i18n/ro.po index 299e1cef52..c6b8caa0c8 100644 --- a/deltatech_stock_inventory/i18n/ro.po +++ b/deltatech_stock_inventory/i18n/ro.po @@ -542,7 +542,7 @@ msgstr "" #. module: deltatech_stock_inventory #: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_quant__inventory_note msgid "Inventory Note" -msgstr "" +msgstr "Notă inventar" #. module: deltatech_stock_inventory #: model:ir.model.fields,field_description:deltatech_stock_inventory.field_product_product__is_inventory_ok diff --git a/deltatech_stock_inventory/models/stock_quant.py b/deltatech_stock_inventory/models/stock_quant.py index 84c863b60e..e77f5433b6 100644 --- a/deltatech_stock_inventory/models/stock_quant.py +++ b/deltatech_stock_inventory/models/stock_quant.py @@ -92,7 +92,9 @@ def action_apply_inventory(self): values["name"] = sequence.next_by_id() inventory.write(values) - self.write({"inventory_id": False, "inventory_line_id": False}) + # Nota a fost preluata in referinta mișcării; o golim ca sa nu fie refolosita tacit + # la o ajustare ulterioara a aceluiași quant (standardul nu o curata). + self.write({"inventory_id": False, "inventory_line_id": False, "inventory_note": False}) return res def write(self, vals): diff --git a/deltatech_stock_inventory/readme/HISTORY.md b/deltatech_stock_inventory/readme/HISTORY.md index 0846155e89..9cbeb6ea49 100644 --- a/deltatech_stock_inventory/readme/HISTORY.md +++ b/deltatech_stock_inventory/readme/HISTORY.md @@ -1,3 +1,13 @@ +## 18.0.2.6.2 (2026-08-17) + +- The **Inventory Note** is cleared when the adjustment is applied, so it is not + silently reused as the reason of a later adjustment on the same quant. The + standard `action_clear_inventory_quantity` does not reset custom fields, so a + note left over from a previous count became the reference of the next stock + move without the operator noticing. +- Adds the missing Romanian translation of the column label ("Notă inventar"), + which was shown in English to operators, and tests for both behaviours. + ## 18.0.2.6.1 (2026-08-03) - The **Inventory Note** column in the inventory adjustment list is now shown by diff --git a/deltatech_stock_inventory/tests/__init__.py b/deltatech_stock_inventory/tests/__init__.py index 6f9dcd2031..bb07ea7db3 100644 --- a/deltatech_stock_inventory/tests/__init__.py +++ b/deltatech_stock_inventory/tests/__init__.py @@ -8,3 +8,4 @@ from . import test_product_methods from . import test_stock_inventory_methods_extra from . import test_compute_warehouse_stocks +from . import test_inventory_note diff --git a/deltatech_stock_inventory/tests/test_inventory_note.py b/deltatech_stock_inventory/tests/test_inventory_note.py new file mode 100644 index 0000000000..e64117aa25 --- /dev/null +++ b/deltatech_stock_inventory/tests/test_inventory_note.py @@ -0,0 +1,93 @@ +# © 2026 Deltatech +# Dorin Hongu