diff --git a/stock_cycle_count/models/stock_cycle_count.py b/stock_cycle_count/models/stock_cycle_count.py index 99f646d93..57e0484c8 100644 --- a/stock_cycle_count/models/stock_cycle_count.py +++ b/stock_cycle_count/models/stock_cycle_count.py @@ -82,6 +82,7 @@ class StockCycleCount(models.Model): "cycle_count_id": self.id, "location_ids": [(4, self.location_id.id)], "exclude_sublocation": True, + "responsible_id": self.responsible_id.id, } @api.model diff --git a/stock_cycle_count/models/stock_inventory.py b/stock_cycle_count/models/stock_inventory.py index cfe9c9328..b0b804246 100644 --- a/stock_cycle_count/models/stock_inventory.py +++ b/stock_cycle_count/models/stock_inventory.py @@ -36,6 +36,11 @@ class StockInventory(models.Model): store=True, group_operator="avg", ) + responsible_id = fields.Many2one( + comodel_name="res.users", + tracking=True, + help="Specific responsible of Inventory Adjustment.", + ) def _get_default_counted_quantitites(self): company_id = self.env.context.get("default_company_id", self.env.company) diff --git a/stock_cycle_count/views/stock_inventory_view.xml b/stock_cycle_count/views/stock_inventory_view.xml index 75c39ff4c..69a804d2e 100644 --- a/stock_cycle_count/views/stock_inventory_view.xml +++ b/stock_cycle_count/views/stock_inventory_view.xml @@ -9,6 +9,7 @@ + @@ -21,6 +22,7 @@ +