Import multi-company
Allow relating one website to one company and importing the Magento data accordingly.
Blueprint information
- Status:
- Not started
- Approver:
- Guewen Baconnier @ Camptocamp
- Priority:
- Undefined
- Drafter:
- Guewen Baconnier @ Camptocamp
- Direction:
- Needs approval
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
=== Guewen, Camp2Camp ===
* Add a 'connector_user_id' m2o on company to a user
* In the base importer, extract an '_import()' method to inherit it
* in the importers requiring to import records in the context of a company, switch to the user configured on the company (with self.session.
I think that we need to have dedicated users for the companies so we are sure that the appropriate properties, record rules and so on are applied. It needs a bit of configuration though.
To be generic, we would need to allow to have *no* connector user configured on companies, in that case it would mean that we are not in a multi-company environment (simple case).