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
Assignee:
Maxime Chambreuil (http://www.savoirfairelinux.com)
Definition:
Approved
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

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.change_user(user.id)

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).

https://gist.github.com/guewen/3528fe4be6bf527ed9d9

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.