Commit Graph

729 Commits

Author SHA1 Message Date
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
hveficent
592eb6961b [FIX] stock_request_*: add expected_date implicit on tests to avoid errors 2019-08-28 10:42:29 +02:00
hveficent
39f7ab0e88 [FIX] stock_request: add expected_date implicit on tests to avoid errors 2019-08-28 09:30:54 +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
Rodrigo Macedo
5004050219 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (19 of 19 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_preparation_filter
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_preparation_filter/pt_BR/
2019-08-26 16:01:25 +00:00
OCA Transbot
25b67cd7d2 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_mts_mto_rule/
2019-08-26 13:08:00 +00:00
OCA Transbot
1f55851e90 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_request
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request/
2019-08-26 13:07:55 +00:00
OCA-git-bot
62ce66cf96 Merge PR #680 into 12.0
Signed-off-by lreficent
2019-08-26 13:07:44 +00:00
OCA-git-bot
22f8a46a17 stock_orderpoint_move_link 12.0.1.1.0 2019-08-26 13:07:42 +00:00
OCA-git-bot
f91714e40b [UPD] README.rst 2019-08-26 13:07:41 +00:00
oca-travis
dd217f995d [UPD] Update stock_orderpoint_move_link.pot 2019-08-26 11:03:38 +00:00
hveficent
37e7275c28 [12.0][IMP] stock_orderpoint_move_link: View transfers on orderpoint 2019-08-26 09:52:34 +00:00
OCA-git-bot
b114fa2357 Merge PR #686 into 12.0
Signed-off-by max3903
2019-08-21 15:15:34 +00:00
Maxime Chambreuil
f3521109dc [FIX] stock_request: Unable to activate the virtual location 2019-08-20 11:55:02 -05:00
Jacques-Etienne Baudoux
d9527d6e3c Refactoring 2019-08-15 09:57:10 +02:00
OCA-git-bot
806fe71ccf Merge PR #606 into 12.0
Signed-off-by max3903
2019-08-13 15:49:57 +00:00
OCA-git-bot
5918fa8c7c [UPD] README.rst 2019-08-13 15:49:56 +00:00
oca-travis
e383a35f4d [UPD] Update stock_request_picking_type.pot 2019-08-13 14:55:42 +00:00
Maxime Chambreuil
dbf3b362f6 [FIX] stock_request_picking_type: Depends on stock_request_submit 2019-08-13 09:51:33 +05:30
Maxime Chambreuil
b08f7b3c91 [REN] stock_request_picking_type: migration script 2019-08-13 09:51:33 +05:30
Maxime Chambreuil
20f404421c [FIX] stock_request_picking_type 2019-08-13 09:51:33 +05:30
Maxime Chambreuil
4fc65724b7 [IMP] Bump version 2019-08-13 09:51:33 +05:30
Maxime Chambreuil
4567887907 [IMP] stock_request_picking_type: Use Submitted state 2019-08-13 09:51:33 +05:30
OCA-git-bot
f925ae2594 Merge PR #675 into 12.0
Signed-off-by max3903
2019-08-12 18:38:38 +00:00
OCA-git-bot
972182d640 [ADD] setup.py 2019-08-12 18:38:38 +00:00
OCA-git-bot
a96ce57b06 [UPD] README.rst 2019-08-12 18:38:38 +00:00
oca-travis
adf575a457 [UPD] Update stock_request_submit.pot 2019-08-12 17:45:00 +00:00
oca-travis
cfad47f34d [UPD] Update stock_request.pot 2019-08-12 17:44:57 +00:00
mreficent
24594882f7 [FIX] Dependencies 2019-08-12 17:35:17 +00:00
mreficent
1a3cfcbcbe [IMP] Simplify inheritance of states 2019-08-12 17:35:17 +00:00
mreficent
5d75c1566f [IMP] Add uninstall_hook 2019-08-12 17:35:17 +00:00
hveficent
65b85f37df Allow stock_request_submit to be installed from stock_request 2019-08-12 17:35:17 +00:00
hveficent
da53ad8245 [12.0][ADD] stock_request_submit 2019-08-12 17:35:17 +00:00
hveficent
8b755039d0 [12.0][IMP] stock_request:
* Add readme autogenerated
* Add some hooks
* Improve test inheritance (reduce testing time)
* Don't allow qty <= 0
* SR expected_date = order expected_date if SRO
2019-08-12 17:35:17 +00:00
OCA-git-bot
8ed6582a26 Merge PR #679 into 12.0
Signed-off-by max3903
2019-08-10 20:06:46 +00:00
OCA-git-bot
c2e8e96c75 stock_request_direction 12.0.1.0.1 2019-08-10 20:06:44 +00:00
scampbell
6a56e63cca [FIX] Method Name 2019-08-06 11:32:57 -07:00
Alexandre Fayolle
eb96a8519a Translated using Weblate (French)
Currently translated at 100.0% (4 of 4 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-procurement_auto_create_group
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-procurement_auto_create_group/fr/
2019-08-06 14:44:13 +00:00
Alexandre Fayolle
ea06445d7c Translated using Weblate (French)
Currently translated at 100.0% (8 of 8 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_removal_location_by_priority
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_removal_location_by_priority/fr/
2019-08-06 14:44:13 +00:00
Alexandre Fayolle
8207112da1 Translated using Weblate (French)
Currently translated at 96.2% (25 of 26 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_change_qty_reason
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_change_qty_reason/fr/
2019-08-06 14:44:12 +00:00
Alexandre Fayolle
f6dcb4ca75 Translated using Weblate (French)
Currently translated at 100.0% (50 of 50 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_demand_estimate
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_demand_estimate/fr/
2019-08-06 14:44:12 +00:00
Alexandre Fayolle
f320432dc7 Translated using Weblate (French)
Currently translated at 100.0% (16 of 16 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_inventory_chatter
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_chatter/fr/
2019-08-06 14:44:11 +00:00
OCA-git-bot
8360094b4a Merge PR #673 into 12.0
Signed-off-by lreficent
2019-08-05 12:28:44 +00:00
OCA-git-bot
41e583d271 stock_warehouse_calendar 12.0.1.0.1 2019-08-05 12:28:42 +00:00
OCA-git-bot
3d699930f9 [UPD] README.rst 2019-08-05 12:28:41 +00:00
Lois Rilo
9d241c71c8 [12.0][REW] stock_warehouse_calendar: add plan days helper method
the method `wh_plan_days` can be used in any place where planning
or scheduling needs to be done in a given warehouse context,
considering the working days if set.
2019-08-05 11:35:10 +00:00
OCA-git-bot
b9005a5ebd Merge PR #672 into 12.0
Signed-off-by max3903
2019-08-02 16:41:38 +00:00
OCA-git-bot
311ac50c67 [ADD] setup.py 2019-08-02 16:41:37 +00:00