The set_done method changes status to 'posted' instead of calling the post() method

Bug #1259484 reported by xavi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Additional payment, bank statement and voucher addons for OpenERP
Undecided
Unassigned

Bug Description

When creating an order with the direct payment option and the entry_posted option of the journal is chosen, it changes the status to posted of the move when it should call the post method.

http://bazaar.launchpad.net/~account-payment-team/account-payment/7.0/view/head:/account_payment_extension/account_payment.py#L317

 # Post the move
 if order.mode.journal.entry_posted:
     move_obj.write(cr, uid, [move_id], {
        'state':'posted',
        }, context)

It should be:
if order.mode.journal.entry_posted:
    move_obj.post()

Changed in account-payment:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers