Merge lp:~openerp-dev/openobject-addons/trunk-bug-1217779-mba into lp:openobject-addons
Proposed by
Mahendra Barad(OpenERP)
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-bug-1217779-mba | ||||
Merge into: | lp:openobject-addons | ||||
Diff against target: |
14 lines (+2/-1) 1 file modified
account/wizard/account_subscription_generate.py (+2/-1) |
||||
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1217779-mba | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nicolas Bessi - Camptocamp (community) | Disapprove | ||
Alexandre Fayolle - camptocamp (community) | code review, no test | Needs Information | |
OpenERP Core Team | Pending | ||
Review via email: mp+200769@code.launchpad.net |
Description of the change
Hello sir,
I have fix the issue the wizard that generate recurring move ignore company and breaks on security rules in multi company mode.
Thank you.
To post a comment you must log in.
Unmerged revisions
- 9038. By Mahendra Barad(OpenERP)
-
[FIX]generate recurring move ignore company issue
The way the query is written strikes me as very inefficient. Why use 2 nested subqueries instead of relational joins for which the database optimizer will be able to generate a widely more efficient execution plan?
Something along the line of
select account_ subscription_ line.id subscription_ line join account_ subscription on (subscription_ id=account_ subscription. id) join account_model on (account_ subscription. model_id= account_ model.id) subscription_ line.date< %s and account_ subscription_ line.move_ id is null model.company_ id=%s;
from account_
where account_
and account_
(not tested, maybe outer joins should be used)