openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #13133
[Bug 1018497] Re: broken search on fields.related for simple cases
** Changed in: openobject-server
Importance: Undecided => Low
** Changed in: openobject-server
Status: New => Confirmed
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1018497
Title:
broken search on fields.related for simple cases
Status in OpenERP Server:
Confirmed
Bug description:
Hello,
when the related field is used as an alias of another field of the same object, the search is broken.
This is with branch 6.1.
This happens with following context:
- field is "fields.related"
- store=False
- only 1 chained element (field is an alias of another field of the current model)
Example below:
(1) When using the search method with domain [('report_broken', '=', False)] it breaks
(2) with domain [('report_file', '=', False)] it succeeds
class TestRelated(osv.osv):
_name = 'test.related.bug'
_columns = {
'report_rml': fields.char('Main report file path', size=256),
'report_broken': fields.related('report_rml', type="char", size=256, string='Report file'),
'report_file': fields.related('report_rml', type="char", size=256, string='Report file', store=True),
}
TestRelated()
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1018497/+subscriptions
References