Merge lp:~openerp-dev/openobject-server/6.0-bug-745679-xrg into lp:openobject-server/6.0
Proposed by
xrg
Status: | Rejected |
---|---|
Rejected by: | Vo Minh Thu |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-bug-745679-xrg |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
25 lines (+11/-2) 1 file modified
bin/osv/orm.py (+11/-2) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-bug-745679-xrg |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+55890@code.launchpad.net |
To post a comment you must log in.
Unmerged revisions
- 3387. By xrg
-
ORM: fix function field computation when records are missing
[Bug 745679], reported by: Marco Dieckhoff
When the get() method of some function field fails to return data (in
our case, because active=False prevents search()ing some accounts),
that part of logic for function fields was broken.Still, we have to decide if missing that data shall be tolerated.
Thanks for the patch.
Actually if res2 is None, we should throw a nice exception saying that a particular function field doesn't return the expected result type.
So in the case of the linked bug report, it is really a bug in account.account, not in the orm.
I will reject this patch.