Error with operator =?

Bug #1095635 reported by Corentin Pouhet-Brunerie - http://www.Smile.fr
72
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Server Revno: 4763

Error with operator "=?" used for example on prodlot_id in stock move form view.

Traceback
  File "server/openerp/osv/expression.py", line 1156, in __leaf_to_sql
    query, params = self.__leaf_to_sql((left, '=', right), model)
TypeError: __leaf_to_sql() takes exactly 2 arguments (3 given)

Tags: needs-test
Revision history for this message
Corentin Pouhet-Brunerie - http://www.Smile.fr (copou) wrote :
Revision history for this message
hifly (csnlca) wrote :

Yes, I have the same problem, OpenERP 1221 revision.

tags: added: expression hifly
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Turkesh Patel (openERP) (turkesh-tinyerp) wrote :

Hello,

It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-1095635-tpa

revision-id: <email address hidden>

revno: 4763

Thanks,
Turkesh Patel

Changed in openobject-server:
status: In Progress → Fix Committed
Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

Hi,

2 months passed, could somebody merge it to 7.0? Such bug breaking stock.

tags: added: needs-test
removed: expression hifly
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hi Corentin, thanks for reporting and providing a patch!

Your patch was not fully working (see my review on the corresponding merge proposal[1]), so a modified fix was finally merged[2], and a test was also added to make sure the '=?' operator is covered by our test suite.

Thanks for your patience!

[1] https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-1095635-tpa/+merge/143474
[2] server 7.0 revision 4905 rev-id: <email address hidden>

Changed in openobject-server:
milestone: none → 7.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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