Merge lp://staging/~txerpa/account-payment/7.0-account_payment-call-move-post into lp://staging/~account-payment-team/account-payment/7.0
Proposed by
Biel - txerpa.com
Status: | Merged |
---|---|
Merged at revision: | 108 |
Proposed branch: | lp://staging/~txerpa/account-payment/7.0-account_payment-call-move-post |
Merge into: | lp://staging/~account-payment-team/account-payment/7.0 |
Diff against target: |
13 lines (+1/-3) 1 file modified
account_payment_extension/account_payment.py (+1/-3) |
To merge this branch: | bzr merge lp://staging/~txerpa/account-payment/7.0-account_payment-call-move-post |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | Approve | ||
Omar (Pexego) | code review | Needs Fixing | |
xavi (community) | Approve | ||
Review via email: mp+198433@code.staging.launchpad.net |
Description of the change
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.
# Post the move
if order.mode.
move_
}, context)
It should be:
if order.mode.
move_obj.post()
To post a comment you must log in.
Thanks for the MP! In 6.1, it has been also changed in revision 111. It would be desirable to put context as a keyword argument (context=context), to avoid incompatibilities if the signature of post method changes.
Regards.