From bc314392c732fa9798f1a5bb06f4ef093c1c412f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Oct 2022 00:44:50 +0200 Subject: [PATCH] Use declarative index definition for ModelSQL issue5757 review361251002 --- stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock.py b/stock.py index aabfa8d2bf..baf4718837 100644 --- a/stock.py +++ b/stock.py @@ -14,7 +14,7 @@ class Location(metaclass=PoolMeta): __name__ = 'stock.location' movable = fields.Boolean( - "Movable", select=True, + "Movable", states={ 'invisible': Eval('type') != 'storage', }) @@ -213,7 +213,7 @@ class ShipmentInternal_Location(ModelSQL): __name__ = 'stock.shipment.internal-location' shipment = fields.Many2One( - 'stock.shipment.internal', "Shipment", required=True, select=True) + 'stock.shipment.internal', "Shipment", required=True) location = fields.Many2One( 'stock.location', "Location", required=True, domain=[