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

[14.0+] Option "Get warnings when invoicing specific customers" don't work correctly #92434

Open
rafagf1 opened this issue May 30, 2022 · 0 comments

Comments

@rafagf1
Copy link

rafagf1 commented May 30, 2022

Impacted versions
14.0, 15.0

Steps to reproduce

  • Go to menu: Settings/Invoicing
  • We mark the option: Warnings "Get warnings when invoicing specific customers"
  • Edit "partner_1": in the "Internal Notes" tab we select the "Warning" or "Blocking Message" option in "Warning on the Invoice" combo and write a message.
  • We create a purchase order or a sales order for that partner and press "Create Bill" (purchase order) or "Create Invoice" (sales order)

Current behavior

  • It don't show the message and allows us to invoice even if we have selected the "Blocking Message" option.

Expected behavior

  • It should show the warning message and if it's a blocking message, it should not allow the invoice to be made.

The "onchange" method of "account_move.partner_id" is executed:

def _onchange_partner_id(self):

, but the dictionary that it returns with the warning isn't shown.

It only works if we create an invoice that don't come from a purchase or sale order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant