base_contact firstname typo

Bug #908698 reported by Ferdinand
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 1

Bug Description

the field is "first_name" not firstname

File "/home/srv/openerp/instances/trunk/openobject-server/openerp/service/netrpc_server.py", line 62, in run
    result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/srv/openerp/instances/trunk/openobject-addons/audittrail/audittrail.py", line 495, in execute_cr
    return fct_src(cr, uid, model, method, *args)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 2225, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 4528, in _search
    query = self._where_calc(cr, user, args, context=context)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/orm.py", line 4377, in _where_calc
    e = expression.expression(cr, user, domain, self, context)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/expression.py", line 358, in __init__
    self.parse(cr, uid, distribute_not(normalize(exp)), table, context)
  File "/home/srv/openerp/instances/trunk/openobject-server/openerp/osv/expression.py", line 454, in parse
    raise ValueError("Invalid field %r in domain expression %r" % (left, exp))
ValueError: Invalid field 'firstname' in domain expression ['&', ('active', '=', 1), '|', ('firstname', 'ilike', 'gas'), ('lastname', 'ilike', 'gas')]

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Dr Ferdinand,

I have read you bur report's description but I did not totally get you, at where you have faced the problem.

So would you please elaborate more information on this or provide a precious steps to us which is better to reproduce it.

Thanks and waiting for your reply!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

underscore is missing !

Changed in openobject-addons:
status: Incomplete → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Dr Ferdinand,

I have checked this on base_contact with trunk as well as stable-6.

At there already first_name not the first name.

Please look into line# 40 on trunk's base_contact.py and in stable-6 line#53.

May be it's your end problem, So I am closing this issue.

Thanks for reply!

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Ferdinand (office-chricar) wrote :

the problem is here
./openobject-addons/base_contact/base_contact_view.xml:94:

filter_domain="['|', ('firstname','ilike', self), ('lastname','ilike',self)]"/>

same problem for
./base_contact.py:39: 'last_name': fields.char('Last Name', size=64, required=True),

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Faced a similar error while trying to search contacts a different way.
https://bugs.launchpad.net/openobject-addons/+bug/909147

The attached merge fixes the problem.

Thanks,
Serpent Consulting Services.

Changed in openobject-addons:
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Changed in openobject-addons:
status: Confirmed → Fix Released
Changed in openobject-addons:
milestone: none → 6.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.