connector-magento
connector-magento copied to clipboard
8.0 Add support for multi company
The goal of this PR is to add the ability to support multi companies with the connector Magento. This PR follows the same idea as the one expressed in the blueprint of @guewen https://blueprints.launchpad.net/openerp-connector-magento/+spec/import-multi-company multi company imp At this stage multi company is supported for
- [X] sale.order: the sale.order are created by company
- [X] res.partner: the re.partner are created without company if the backend is configured in multi company mode.
In our case, we don't need to import the products from magento, therefore, nothing has been modified to support the mutli company on products.
- [ ] product.product
By default nothing is provided by magento to support different warehouses by website/store/storeview. In our case we use a specific addon for magento (from smile) and we have developped a specialized odoo addon to export the product qty by warehouse.
- [ ] stock???
Hi @lmignon, @laetitia-gangloff, is this perhaps ready for review?
@StefanRijnhart This PR provides a partial solution to support multi companies with magento. This code is used in production. IMO it's ready for review...
We have been testing this (we can live with the limitations). :+1: and thanks!
@StefanRijnhart Indeed, we only use this information to compute the stock for a specific warehouse into magento (custom module in magento)
@lmignon How about https://github.com/acsone/connector-magento/pull/1?
@susport those errors are unrelated to this change and can be fixed separately.
@guewen Can you consider this PR in your V10 migration ?