openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #01669
[Bug 892804] Re: on_change for search field not working
Hello ,
Currently we have not implemented on change in search view fields for
working on search view field you can pass context on
field of search view means that context you can get on
search method of object.so this is not a bug and I am consider
this as feature.
That's way I am setting this as wish list.
Thanks for reporting.
** Changed in: openobject-server
Importance: Undecided => Wishlist
** Changed in: openobject-server
Status: New => Confirmed
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
** Project changed: openobject-server => openobject-client
** Changed in: openobject-client
Assignee: OpenERP's Framework R&D (openerp-dev-framework) => OpenERP sa GTK client R&D (openerp-dev-gtk)
** Also affects: openerp-web
Importance: Undecided
Status: New
** Changed in: openerp-web
Importance: Undecided => Wishlist
** Changed in: openerp-web
Status: New => Confirmed
** Changed in: openerp-web
Assignee: (unassigned) => OpenERP R&D Web Team (openerp-dev-web)
--
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/892804
Title:
on_change for search field not working
Status in OpenERP Web:
Confirmed
Status in OpenERP GTK Client:
Confirmed
Bug description:
the code for the view:
<record id="view_employee_filter" model="ir.ui.view">
<field name="name">Employees</field>
<field name="model">hr.employee</field>
<field name="type">search</field>
<field name="inherit_id" ref="hr.view_employee_filter"/>
<field name="arch" type="xml">
<field name="name" position="before">
<field name="id_search" on_change="search_id_change(id_search)"/>
</field>
<field name="parent_id" position="after">
<button name="attendance_action_change" states="present" string="Sign Out" type="object" icon="gtk-go-forward" context="{'type':'sign_out'}" groups="base.group_hr_user"/>
<button name="attendance_action_change" states="absent" string="Sign In" type="object" icon="gtk-go-back" context="{'type':'sign_in'}" groups="base.group_hr_user"/>
<field name="state"/>
</field>
</field>
</record>
and the code for the controller:
def search_id_change(self, cr, uid, ids, idsearch, context=None):
print idsearch
result = {}
return result
the on_change is never called.
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/892804/+subscriptions
References