cancelling MO given - given arguments wrong

Bug #709065 reported by Steffi Frank (Bremskerl, DE)
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP Publisher's Warranty Team

Bug Description

Hi!

error when cancelling a MO.

Steps: enter a MO (directly through 'New' in 'Manufacturing Orders') -> confirm -> cancel

Environment Information :
System : Windows-2003Server-5.2.3790-SP2
OS Name : nt
Operating System Release : 2003Server
Operating System Version : 5.2.3790
Operating System Architecture : 32bit
Operating System Locale : de_DE.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.0-rc2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
TypeError: action_cancel() takes exactly 4 arguments (5 given)

Related branches

Revision history for this message
Steffi Frank (Bremskerl, DE) (steffi-frank) wrote :

openobject-addons revno 4436
openobject-server revno 3310
openobject-client-web revno4430

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

Hello Steffie,

I have tested your scenario with the stable v6 at my end.
But all are working fine.

Would you please try with the Stable version of 6.0 instead of RC2. So i am closing this bug.
If you still face the problem then you can reopen it.

Thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Marco Dieckhoff (dieck) wrote :

Please look at the revisions Steffi provided:

The revisions marked as "6.0" are

openobject-addons rev. 4334
openobject-server rev. 3310
openobject-client-web rev. 4430

So we ARE using stable, except 2 addon revisions newer:
[FIX] sale: prevent writing on sale.shop on editing a sale order line with multi company group
[IMP] sale: removed company_id field from sale.order.line form view (embedded in sale.order form view)
which should have no impact on the problem.

The gtk client was still RC2, though.

The bug still applies after we updated the client to 6.0.1 the server to trunk.
/launchpad-openerp/openobject-addons revno: 4388
/launchpad-openerp/openobject-server revno: 3331
/launchpad-openerp/openobject-client-web revno: 4482

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Steffi Frank (Bremskerl, DE) (steffi-frank) wrote :

same error in web client....

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
TypeError: action_cancel() takes exactly 4 arguments (5 given)

Revision history for this message
Open Net Sàrl (openerp-open-net) wrote :

This isn't solved by 6.0.1

Revision history for this message
Steffi Frank (Bremskerl, DE) (steffi-frank) wrote :

Found out how I'm able to cancel a MO:

cancel all 'Products to Consume' first, afterwards 'Cancel' MO works....... not very comfortable

Revision history for this message
Kyle Waid (midwest) wrote :

I confirm this bug. When the MO is created, it can not be canceled. You must first reserve the products and then you can cancel. Definitely a bug. And not with RC2. Havent used that code in some time.

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 → Medium
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Revision history for this message
Rohan Nayani(Open ERP) (ron-tinyerp) wrote :

Hello,

Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/ron-dev-addons2
Revision ID: <email address hidden>
Revision num:5141.

It will be available in trunk soon,

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP Publisher's Warranty Team (openerp-opw)
milestone: none → 6.0.2
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.