Commit Graph

11 Commits

Author SHA1 Message Date
OCA-git-bot
c6117d5e77 [ADD] icon.png 2019-09-11 08:46:25 +00:00
OCA-git-bot
c8d05b6fed [UPD] README.rst 2019-09-11 08:46:25 +00:00
oca-travis
4e8e0a1ef3 [UPD] Update stock_location_zone.pot 2019-09-11 07:51:30 +00:00
Guewen Baconnier
a6998d67a6 Set Alpha development status
* Add copyright header
* Add myself as contributor of stock_location_zone
* Fix lint
2019-08-28 15:03:23 +02:00
Guewen Baconnier
508519aa98 Use unique index for unique location name per zone
The python one was much too slow with large datasets. Here we only
check one level (only when the zone is directly assigned), the previous
SQL constraint was checking the locations of the same level only anyway.
2019-08-28 13:46:05 +02:00
Guewen Baconnier
dd28e0e022 Replace SQL unique constraint by a python one
The new constraints prevents having 2 locations with the same name in
the same zone. The SQL UNIQUE constraint was blocking the installation
of some addons due to demo data creating, by default, some locations
with the same name for the warehouses' locations.

Alternative: we could create an INDEX UNIQUE (name, location_id) WHERE
picking_zone_id IS NOT NULL
But it depends if we want to check the whole tree or not.
2019-08-27 13:59:46 +02:00
Guewen Baconnier
00dd81476e fixup! Add corrections to stock_location_zone 2019-08-27 11:36:37 +02:00
Guewen Baconnier
545a8b4299 Add corrections to stock_location_zone
* Allow copy of stock locations (was blocked by constraint on unique name)
* Correct loop in _compute_name returning too early if a record had no
parent with a 'location_name_format'
* Rename field pick_type_id to picking_type_id for coherency
* Add missing _description on stock.picking.zone
* Correct location_name_format format when the record is a NewId
2019-08-27 11:22:50 +02:00
Jacques-Etienne Baudoux
d9527d6e3c Refactoring 2019-08-15 09:57:10 +02:00
Jacques-Etienne Baudoux
33067e816f [ADD] stock_location_zone 2019-07-15 10:07:45 +02:00
Jacques-Etienne Baudoux
3f4f54090f [ADD] stock_location_zone 2019-07-12 16:46:17 +02:00