Commit Graph

2 Commits

Author SHA1 Message Date
Michael Tietz
d0e6c29927 [IMP] stock_helper: add location._get_source_location_from_route
returns the next source location of a location by the given route and procure_method
2023-04-25 14:45:50 +02:00
Guewen Baconnier
1e6f433922 Add stock_helper: share common code used by stock modules
The first method is: StockLocation.is_sublocation_of()

This method is currently used in:

* wms/stock_dynamic_routing
* wms/shopfloor
* wms/stock_move_source_relocate
* stock-logistics-warehouse/stock_reserve_rule
* ddmrp/ddmrp

The goal will be to use this module as dependency instead of
reimplementing the method in each.

Other methods should follow in "stock_helper".

Note: I opened https://github.com/odoo/odoo/pull/53866 to propose a
generic version of this method, expecting odoo's opinion, but got no
answer.
2022-11-07 13:35:50 +01:00