Commit Graph

9 Commits

Author SHA1 Message Date
OCA-git-bot
5b653511e5 [UPD] README.rst 2021-03-23 09:53:43 +00:00
oca-travis
a45ee37403 [UPD] Update stock_helper.pot 2021-03-23 09:22:44 +00:00
davidborromeo
f446891ac5 [MIG] stock_helper: Migration to 14.0 2021-03-19 13:02:53 +01:00
OCA-git-bot
4f1a4709ab stock_helper 13.0.1.1.0 2021-03-19 12:51:27 +01:00
OCA-git-bot
1d1bbcb61c [ADD] icon.png 2021-03-19 12:51:27 +01:00
OCA-git-bot
f633c68662 [UPD] README.rst 2021-03-19 12:51:27 +01:00
oca-travis
e10bdadf98 [UPD] Update stock_helper.pot 2021-03-19 12:51:27 +01:00
Guewen Baconnier
24f4faf80c Apply suggestions from code review
Co-authored-by: Simone Orsi <simahawk@users.noreply.github.com>
2021-03-19 12:51:27 +01:00
Guewen Baconnier
f04c497a9e 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.
2021-03-19 12:51:27 +01:00