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

account_payment_partner: partner_bank_id should not be set to False if payment_mode is not set #1290

Open
PNurm opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@PNurm
Copy link

PNurm commented Jun 13, 2024

Module

account_payment_partner

Describe the bug

This module as of 16.0 overrides the default behavior, and previous behavior of this module in 14.0.

  • Invoices without payment_mode_id are created without a partner_bank_id

  • When creating a sales invoice through sales order without a payment_mode_id, it will create invoice without partner_bank_id. This module overrides _compute_partner_bank_id and changes the behavior so if payment_mode_id is not set, it will not assign partner_bank_id.

  • From users point of view and from configuration standpoint, users should not be forced to configure a otherwise useless payment_mode_id and set that by hand on sales order. For a lot of our customers, payment_mode_id is never used for sales, and mostly used for bills and payment orders. For sales it is unnecessary step to fill out just to get bank account to compute properly.

To Reproduce

Affected versions:
16.0

Steps to reproduce the behavior:

  1. Create sales order without setting payment_mode_id
  2. Create invoice from sales order, it will not have bank account, therefore printing invoice will not have necessary payment related information.

Expected behavior

  • partner_bank_id should still be computed regardless if payment_mode_id is undefined.

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

@PNurm PNurm added the bug label Jun 13, 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