Skip to content

Conversation

@dalonsofl
Copy link
Contributor

Module

sale_invoice_policy

Describe the bug

The calculation of the quantity to invoice for service is different compared to other types of products, with an invoicing policy based on delivered quantities in the order and ordered quantities in the product.

This causes inconsistencies between the order and its lines and the generation of unwanted invoices.

To Reproduce

  1. Create an order with different products and invoice policy based on "Delivered quantities".

(image from runboat OCA)

imagen Selección_867 Selección_868 Selección_869 Selección_870 Selección_871 Selección_872

With this change, the calculation of quantity to invoice is always based on the invoice policy of the order in case it is filled and the configuration of "Sale Invoice Policy" is checked.

Affected versions:

16.0

Copy link
Contributor

@amarcosg amarcosg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants