mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Remove unique constraint on location's name
It prevents other addons to work properly such as the vertical lift. We remove the constraint for now, maybe to be re-introduced later in a more permissive way.
This commit is contained in:
committed by
Denis Roussel
parent
a615a7a265
commit
845267ede0
@@ -40,14 +40,6 @@ class StockLocation(models.Model):
|
||||
'* Other: any other location',
|
||||
)
|
||||
|
||||
_sql_constraints = [(
|
||||
'name_zone_unique',
|
||||
'EXCLUDE (name WITH =, zone_location_id WITH =)'
|
||||
' WHERE (zone_location_id IS NOT NULL)',
|
||||
'Another location with the same name exists in the same zone.'
|
||||
' Please rename the location.'
|
||||
)]
|
||||
|
||||
@api.depends('is_zone', 'usage', 'location_id.usage', 'zone_location_id',
|
||||
'child_ids')
|
||||
def _compute_location_kind(self):
|
||||
|
||||
Reference in New Issue
Block a user