Module
account_payment_sale
Describe the bug
After selecting multiple sale orders and trying to generate an invoice for these orders, if at least one sale order has a payment_mode_id set and at least one other does not, we get an error message.
This is due to the fact that payment_mode_id has been added to the grouping keys. And when sorting those sale orders, a comparison will be done between an int and a NoneType.
To Reproduce
16:
Steps to reproduce the behavior:
- Create two sale orders with the same company, the same client and same currency. But set a payment_mode_id on one of those and not the other.
- Select those two sale orders and generate invoices for those sale orders
Expected behavior
An invoice should be generated and we are redirected to the view of the invoice.
Additional context
The context shouldn't have any impact.
Module
account_payment_sale
Describe the bug
After selecting multiple sale orders and trying to generate an invoice for these orders, if at least one sale order has a payment_mode_id set and at least one other does not, we get an error message.
This is due to the fact that payment_mode_id has been added to the grouping keys. And when sorting those sale orders, a comparison will be done between an int and a NoneType.
To Reproduce
16:
Steps to reproduce the behavior:
Expected behavior
An invoice should be generated and we are redirected to the view of the invoice.
Additional context
The context shouldn't have any impact.