account_invoice_entry_date: method action_move_create: incorrect signature

Bug #1202117 reported by Leonardo Pistone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Italia
Fix Released
Undecided
Leonardo Pistone

Bug Description

The action_move_create method has the following incorrect signature:
    def action_move_create(self, cr, uid, ids, *args):

There are no keyword arguments. The effect is that if you try to pass a context to it, you get:

TypeError: action_move_create() got an unexpected keyword argument 'context'"

The original signature from addons/7.0/account/account_invoice.py is:

    def action_move_create(self, cr, uid, ids, context=None):

Same signature on v6.1.

We should use that one in account_invoice_entry_date as well.

Changed in openobject-italia:
status: New → Fix Committed
Changed in openobject-italia:
status: Fix Committed → Fix Released
assignee: nobody → Leonardo Pistone - Agile BG - Domsense (lpistone)
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.