Commit Graph

4 Commits

Author SHA1 Message Date
Guewen Baconnier
4ebd66455d stock_reserve_rule: add dependency on stock_helper
To remove the duplicate implementation of
StockLocation.is_sublocation_of()
2021-02-09 12:15:32 +01:00
Guewen Baconnier
59a5f951b1 Change picking type to many2many in reserve rules 2020-11-17 11:00:05 +01:00
Guewen Baconnier
89e4ea230f 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.
2020-05-15 08:03:12 +02:00
Guewen Baconnier
3494c2671d Add stock_reserve_rule 2020-03-17 10:39:10 +01:00