Merge lp:~acsone-openerp/openerp-connector/multi-company-job into lp:~openerp-connector-core-editors/openerp-connector/7.0
Proposed by
Laurent Mignon (Acsone)
| Status: | Merged |
|---|---|
| Approved by: | Guewen Baconnier @ Camptocamp |
| Approved revision: | 624 |
| Merged at revision: | 628 |
| Proposed branch: | lp:~acsone-openerp/openerp-connector/multi-company-job |
| Merge into: | lp:~openerp-connector-core-editors/openerp-connector/7.0 |
| Diff against target: |
276 lines (+155/-2) 5 files modified
connector/queue/job.py (+12/-0) connector/queue/model.py (+6/-1) connector/queue/model_view.xml (+3/-0) connector/security/connector_security.xml (+12/-0) connector/tests/test_job.py (+122/-1) |
| To merge this branch: | bzr merge lp:~acsone-openerp/openerp-connector/multi-company-job |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Guewen Baconnier @ Camptocamp | code review, launched unit test | Approve | |
|
Review via email:
|
|||
Description of the change
Here is the proposed changes to support multi companies by the connector.
Summary of changes:
-------------------
* add a new field company_id on the queue_job model (optional)
* modify the method OpenERPJobStora
* add a record rule on queue.job to restrict the visibility by company
* modify the method QueueJob.
Motivations and details:
-------
Motivations and details of the changes were discussed in https:/
To post a comment you must log in.
Hi,
This is a really good work. Thanks
I'm wondering, when 'company_id' is not in the context, the job will be assigned to the default company (by a rule or the user's one), so it will never be empty, could it be a problem? Also, it seems to me that the column could be 'not null'.