mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
When not all features are activated in inventory (locations, lots, packages and owners) selecting a quant would raise an access error. It is not possible to directly read the related fields, e.g `self.lot_id`, because they are stored fields and have a group restriction, so an access error would raise. To work around it, we should access these fields from the quant: `self.quant_id.lot_id`.