diff --git a/stock_inventory_revaluation/models/stock_inventory_revaluation.py b/stock_inventory_revaluation/models/stock_inventory_revaluation.py index c3e40c93d..559244737 100644 --- a/stock_inventory_revaluation/models/stock_inventory_revaluation.py +++ b/stock_inventory_revaluation/models/stock_inventory_revaluation.py @@ -98,6 +98,11 @@ class StockInventoryRevaluation(models.Model): default=lambda self: fields.Date.context_today(self), states={'draft': [('readonly', False)]}) + user_id = fields.Many2one('res.users', 'Created by', + readonly=True, + states={'draft': [('readonly', False)]}, + default=lambda self: self.env.user) + journal_id = fields.Many2one('account.journal', 'Journal', default=_default_journal, readonly=True, diff --git a/stock_inventory_revaluation/views/stock_inventory_revaluation_view.xml b/stock_inventory_revaluation/views/stock_inventory_revaluation_view.xml index e3f16924f..a4113444c 100644 --- a/stock_inventory_revaluation/views/stock_inventory_revaluation_view.xml +++ b/stock_inventory_revaluation/views/stock_inventory_revaluation_view.xml @@ -32,6 +32,7 @@ + @@ -107,6 +108,7 @@ +