Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] sale_automatic_workflow_payment_mode: propagating wrong payment method to payments. #3286

Open
amkarthik opened this issue Aug 28, 2024 · 0 comments
Labels

Comments

@amkarthik
Copy link
Member

Module

sale_automatic_workflow_payment_mode

Describe the bug

Wrong payment method is propagated to automatic workflow created payment despite the payment method set on the Payment Modes

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. Create a new payment method named electronic and add it in the last line of the Bank Journal as in the below images.
    image

  2. Create a new Payment Mode with the payment method we created in the step 1. Example below.
    image

  3. Created an Sales Order with that Payment Mode and choose an Automatic Workflow to process further. Example below.
    image

  4. You can see that the final payment created using the workflow with wrong payment method.
    image

Expected behavior
The payment method should be from the Payment Mode that we setup on the sales order.

Additional context
The payment method (payment.method) on the payments is now a new object (payment.method.line).
This breaks the propagation, as a result it is fetching the first method on the inbound payment of a journal
We need to change our app accordingly.
Proposed a fix OCA/bank-payment#1196

@amkarthik amkarthik added the bug label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant