Update action_invoice_create signature in picking_invoice_rel

Bug #1282236 reported by cubells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Camptocamp R&D Addons
Fix Released
Undecided
Unassigned

Bug Description

Openerp v7

action_invoice_signature in sale order module has changed.

However inherited action_invoice_signature in your picking_invoice_rel module has the old signature yet.

The correct signature has to have date_invoice instead of date_inv.

This is the log:

2014-02-19 19:14:34,502 5712 ERROR database openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp70/src/addons/sale/wizard/sale_make_invoice.py", line 57, in make_invoices
    order_obj.action_invoice_create(cr, uid, context.get(('active_ids'), []), data['grouped'], states=None, date_invoice=data['invoice_date'])
TypeError: action_invoice_create() got an unexpected keyword argument 'date_invoice'
2014-02-19 19:14:34,503 5712 ERROR database openerp.netsvc: action_invoice_create() got an unexpected keyword argument 'date_invoice'
Traceback (most recent call last):
  File "/home/openerp70/src/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/openerp70/src/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp70/src/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp70/src/addons/sale/wizard/sale_make_invoice.py", line 57, in make_invoices
    order_obj.action_invoice_create(cr, uid, context.get(('active_ids'), []), data['grouped'], states=None, date_invoice=data['invoice_date'])
TypeError: action_invoice_create() got an unexpected keyword argument 'date_invoice'

Revision history for this message
Ferdinand (office-chricar) wrote :

Hello

I have change the code according to our suggestion

please test and let me know if it works

Revision history for this message
cubells (cubells) wrote :

Now It works.

Thanks a lot.

Changed in c2c-rd-addons:
status: New → 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.