odoo/odoo#110686

Created by Industry, Vallaeys Valentin (vava)
Merged at 404a0835747ca27353fc2fb166dfb5e450190617

Statuses:

label
odoo-dev:master-delivery_split_from_sale_and_stock-vava
head
28799be00dad6767e8a2b07ce82bdc16c4d2553d
merged
2 years ago by Sales, Victor Feyens (vfe)
odoo/odoo odoo/enterprise odoo/upgrade
master #110686 #36609 #4362

[MERGE][REF] delivery: extract stock logic in separate module

It's currently impossible to set fixed delivery costs in eCommerce without installing Inventory. This is a problem for one-app free instances on our SaaS, which would need to pay for a feature that should be part of the basic eCommerce features bundle.

Delivery is now split from inventory/stock module to allow for a soft free integration into website_sale. This PR makes it possible to define fixed-cost delivery methods in eCommerce without installing Inventory by adding a direct dependency of website_sale on delivery. The bridge between those two modules is therefore included in the former.

Steps are:
- extract the Inventory logic from the delivery module into a new stock_delivery module;
- move website_sale_delivery into website_sale;
- adapt dependencies to delivery and website_sale_delivery;
- remove bridge module with loyalty directly in website_sale_loyalty;
- move website_sale_delivery_mondialrelay to website_sale_mondialrelay.

task-3074497
task-3203210

See also:
- odoo/enterprise#36609
- odoo/upgrade#4362