diff --git a/stock_location_last_inventory_date/__manifest__.py b/stock_location_last_inventory_date/__manifest__.py index 51ee8ff81..9422a8e19 100644 --- a/stock_location_last_inventory_date/__manifest__.py +++ b/stock_location_last_inventory_date/__manifest__.py @@ -5,7 +5,7 @@ "summary": "Show the last inventory date for a leaf location", "version": "13.0.1.0.0", "development_status": "Alpha", - "category": "Warehouse Management", + "category": "Warehouse", "website": "https://github.com/OCA/stock-logistics-warehouse", "author": "Camptocamp, Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/stock_location_last_inventory_date/i18n/stock_location_last_inventory_date.pot b/stock_location_last_inventory_date/i18n/stock_location_last_inventory_date.pot index f11de4a08..ca61e2a30 100644 --- a/stock_location_last_inventory_date/i18n/stock_location_last_inventory_date.pot +++ b/stock_location_last_inventory_date/i18n/stock_location_last_inventory_date.pot @@ -4,10 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0+e\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-01-25 15:06+0000\n" -"PO-Revision-Date: 2021-01-25 15:06+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" diff --git a/stock_location_last_inventory_date/models/stock_location.py b/stock_location_last_inventory_date/models/stock_location.py index 9e6dbde8f..a086b8612 100644 --- a/stock_location_last_inventory_date/models/stock_location.py +++ b/stock_location_last_inventory_date/models/stock_location.py @@ -29,10 +29,13 @@ class StockLocation(models.Model): ) @api.depends( + "usage", + "child_ids", "validated_inventory_ids", "validated_inventory_ids.date", - "validated_inventory_ids.usage", - "validated_inventory_ids.child_ids", + "validated_inventory_ids.state", + "validated_inventory_ids.location_ids.usage", + "validated_inventory_ids.location_ids.child_ids", ) def _compute_last_inventory_date(self): """Store date of the last inventory for each leaf location""" diff --git a/stock_location_last_inventory_date/static/description/index.html b/stock_location_last_inventory_date/static/description/index.html index 1e297f02f..839fe9026 100644 --- a/stock_location_last_inventory_date/static/description/index.html +++ b/stock_location_last_inventory_date/static/description/index.html @@ -3,7 +3,7 @@ - + Stock Location Last Inventory Date