[7.0] l10n_be_coda: SQL searching sidesteps the ORM ir.rule on res.partner.bank
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
The code that tries to match the Coda account number in
http://
uses plain old SQL searching, when there is a multicompany configuration, it is sidestepping the orm and gives an error when trying to browse the found partner record with an Access Denied on res.partner if the first record happens to point to a partner which is from another company. (The related partner banking information has to be created multiple times in different companies to trigger this error.)
The easiest to implement solution we have found is simply doing another search after the sql search to make sure any ir.rule domains are applied to the search result. (See attached patch)
Related branches
- Martin Trigaux (OpenERP) (community): Approve
- Naresh(OpenERP) (community): Approve
- Niels Huylebroeck (community): Approve
-
Diff: 12 lines (+2/-0)1 file modifiedl10n_be_coda/wizard/account_coda_import.py (+2/-0)
- Martin Trigaux (OpenERP): Pending requested
-
Diff: 129 lines (+26/-8)6 files modifiedaccount/project/wizard/account_analytic_chart_view.xml (+5/-5)
account/report/account_financial_report.py (+1/-0)
account/report/account_financial_report.rml (+6/-1)
account/wizard/account_financial_report.py (+3/-2)
account/wizard/account_report_common.py (+1/-0)
project/project.py (+10/-0)
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
status: | Confirmed → In Progress |
Committed above fix in lp:~openerp-dev/openobject-addons/7.0-opw-586330-rha,
r8747, <email address hidden>
Thank you Neils,
Rifakat Haradwala