← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695409] Re: widget m2o "leave type" doesn't woth in hr_holidays

 

Hello Aline,

I checked and it works well here.
Can you describe more in detail to reproduce this error please ?

>From the widget means, I click on spyglass icon and select Leave Type
and it worked.

Thanks.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/695409

Title:
  widget m2o "leave type" doesn't woth in hr_holidays

Status in OpenObject Web Client:
  Confirmed

Bug description:
  web, trunk, firefox

install hr_holidays, go to leave requests or allocation requests -> try to enter a data in leave type field from the widget, bug (it works if you enter the data manually + tab) : 

Traceback (most recent call last):
  File "/home/aline/openerp/trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/aline/openerp/trunk/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 1619, in fields_view_get
    xml = self.__get_default_search_view(cr, user, context)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 1382, in __get_default_search_view
    form_view = self.fields_view_get(cr, uid, False, 'form', context=context)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 1589, in fields_view_get
    result['arch'] = _inherit_apply_rec(inherit_result, sql_res[3])
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 1584, in _inherit_apply_rec
    result = _inherit_apply(result, inherit, id)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 1526, in _inherit_apply
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 1440, in raise_view_error
    'model': self._name, })
AttributeError: View definition error for inherited view 'hr_payroll.view_holiday_status_form1' on 'hr.holidays.status' model: Element '<xpath expr="//group[@name='selection']">' not found in parent view 'hr_holidays.edit_holiday_status_form'





References