Commit Graph

4 Commits

Author SHA1 Message Date
Guewen Baconnier
630ebc609f stock_reserve_rule: add dependency on stock_helper
To remove the duplicate implementation of
StockLocation.is_sublocation_of()
2021-08-11 11:55:48 +02:00
Guewen Baconnier
df56837fdd Change picking type to many2many in reserve rules 2021-08-11 11:55:48 +02:00
Guewen Baconnier
4ae12c21ce Fix application of removal rules too broad
Example of configuration:

Rule location: Stock
Removal rule 1: Stock/Zone1
Removal rule 2: Stock/Zone2

Reservation of a stock move with Stock/Zone2 as source location.

Previously, it would reserve in Stock/Zone1.
Now, it will never be allowed to reserve in Stock/Zone1.

A warning message was added previously to warn the user about potential
issues, which is now obsolete so I removed it.
2021-08-11 11:55:48 +02:00
Guewen Baconnier
fdab54b432 Add stock_reserve_rule 2021-08-11 11:55:48 +02:00