diff --git a/ssi_stock_fixed_asset/models/stock_production_lot.py b/ssi_stock_fixed_asset/models/stock_production_lot.py index 9e188cc..02f05ec 100644 --- a/ssi_stock_fixed_asset/models/stock_production_lot.py +++ b/ssi_stock_fixed_asset/models/stock_production_lot.py @@ -13,3 +13,8 @@ class StockProductionLot(models.Model): string="Fixed Assets", comodel_name="fixed.asset.asset", ) + fixed_asset_state = fields.Selection( + string="Fixed Asset State", + related="fixed_asset_id.state", + store=True, + ) diff --git a/ssi_stock_fixed_asset/views/stock_production_lot_views.xml b/ssi_stock_fixed_asset/views/stock_production_lot_views.xml index 611965a..8489301 100644 --- a/ssi_stock_fixed_asset/views/stock_production_lot_views.xml +++ b/ssi_stock_fixed_asset/views/stock_production_lot_views.xml @@ -9,8 +9,9 @@ - + + @@ -24,6 +25,32 @@ + + + + + + + + + + @@ -39,6 +66,7 @@ +