-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[IMP] sale_invoice_policy: Several improvements #3376
base: 16.0
Are you sure you want to change the base?
Commits on Oct 24, 2024
-
[FIX] sale_invoice_policy: Don't use the 'required' parameter
Don't use the 'required' parameter to compute the quantities to invoice or not. In fact, this should only depends on the invoice policy itself.
Configuration menu - View commit details
-
Copy full SHA for a05ed41 - Browse repository at this point
Copy the full SHA a05ed41View commit details -
[IMP] sale_invoice_policy: Don't reuse fields in depends
As ORM appends new depends() parameters to existing ones, simplify the writing
Configuration menu - View commit details
-
Copy full SHA for 7b26e33 - Browse repository at this point
Copy the full SHA 7b26e33View commit details -
[IMP] sale_invoice_policy: Don't rely on required option to compute t…
…he amount As for the 'qty_to_invoice' field, the 'untaxed_amount_to_invoice' field should not depends on the required option to compute its value
Configuration menu - View commit details
-
Copy full SHA for ddb9087 - Browse repository at this point
Copy the full SHA ddb9087View commit details -
[IMP] sale_invoice_policy: Don't rewrite Odoo core compute method
As we don't want to rewrite Odoo core method inside this module, we should not rewrite the method to compute the untaxed amount to invoice. Instead, save the product invoice policy, change it to sale order one without recomputing context, call the super() method and then, restore its former value.
Configuration menu - View commit details
-
Copy full SHA for 269a033 - Browse repository at this point
Copy the full SHA 269a033View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5db9c78 - Browse repository at this point
Copy the full SHA 5db9c78View commit details -
[IMP] sale_invoice_policy: Add the default behavior as sale invoice p…
…olicy With default behavior in Odoo, the invoicing policy depends on products configuration. So, include this as possible value for sale order invoicing policy. Possible values are so: - Products Invoice Policy: each product applies its invoicing policy (by sale line) - Ordered quantities: the whole sale order will apply the invoicing policy on ordered quantities - Delivered Quantities: the whole sale order will apply the invoicing policy on delivered quantities That said, the 'required' configuration is no more useful as the invoicing policy is now required on sale order level.
Configuration menu - View commit details
-
Copy full SHA for f3af918 - Browse repository at this point
Copy the full SHA f3af918View commit details
Commits on Oct 25, 2024
-
[IMP] sale_invoice_policy: Use protecting() instead of deprecated nor…
…ecompute() To avoid marking 'invoice_policy' product field as dirty for products temporary value, use the working context manager 'protecting()' instead of deprecated 'norecompute() one. Put the whole process in its own contextmanager.
Configuration menu - View commit details
-
Copy full SHA for f8ec895 - Browse repository at this point
Copy the full SHA f8ec895View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd6f488 - Browse repository at this point
Copy the full SHA dd6f488View commit details