OCA / multi-company

GNU Affero General Public License v3.0
98 stars 280 forks source link

[16.0][ADD] sale_stock_warehouse_multicompany #577

Closed santostelmo closed 4 months ago

santostelmo commented 6 months ago

Allow multiple companies to sell the stock of a shared warehouse.

The sales order will belong to the company making the sale. As such, the taxes and related invoices will also belong to that selling company. The generated stock moves will belong to the company owning the stock and defined on the warehouse.

This approach also allows to use any route (like cross-docking or drop-shipment) on the sales order line.

PR superseded https://github.com/OCA/multi-company/pull/573

santostelmo commented 5 months ago

LG. You also need to adapt SO line _prepare_procurement_values to set company of the warehouse and not of the SO

Done. Indeed we need to create procurements in the warehouse company and not sale order company.

sebalix commented 5 months ago

Please rename the module sale_stock_warehouse_multicompany in the PR title

OCA-git-bot commented 5 months ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

dreispt commented 4 months ago

/ocabot merge nobump

cyrilmanuel commented 4 months ago

hiii @pedrobaeza can you merge this PR please ?

dreispt commented 4 months ago

/ocabot merge nobump

OCA-git-bot commented 4 months ago

This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-577-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot commented 4 months ago

Congratulations, your PR was merged at 249949a5b94d635d6feda69d346ada0b9724b202. Thanks a lot for contributing to OCA. ❤️