Commit Graph

6 Commits

Author SHA1 Message Date
OCA-git-bot
db4b0c21e4 stock_helper 13.0.1.1.0 2021-02-11 11:32:42 +00:00
OCA-git-bot
8cc091143a [ADD] icon.png 2021-02-11 11:32:40 +00:00
OCA-git-bot
1b422bd4e2 [UPD] README.rst 2021-02-11 11:32:39 +00:00
oca-travis
db7bfb8db3 [UPD] Update stock_helper.pot 2021-02-11 10:39:19 +00:00
Guewen Baconnier
60ed86b534 Apply suggestions from code review
Co-authored-by: Simone Orsi <simahawk@users.noreply.github.com>
2021-02-11 09:42:29 +01:00
Guewen Baconnier
90b88d1df3 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-02-09 12:15:18 +01:00