Skip to content

[17.0][FIX] sale_invoice_policy: invoice policy#4145

Open
Drsmartinkus wants to merge 2 commits intoOCA:17.0from
versada:17.0-fix-sale_invoice_policy-invoice-policy-required
Open

[17.0][FIX] sale_invoice_policy: invoice policy#4145
Drsmartinkus wants to merge 2 commits intoOCA:17.0from
versada:17.0-fix-sale_invoice_policy-invoice-policy-required

Conversation

@Drsmartinkus
Copy link

Fix sale order invoice policy to work regardless of required setting.

Before this fix, the sale order invoice_policy field only affected invoicing calculations when invoice_policy_required was set to True. When invoice_policy_required was False, the invoice policy was ignored, and the system fell back to the default product level invoice policies.

This was problematic because users could set an invoice policy on sale orders, but it would not work. Now the sale order invoice policy works correctly even when the field is not marked as required, allowing optional but functional invoice policies.

Fix sale order invoice policy to work regardless of required setting.

Before this fix, the sale order invoice_policy field only affected
invoicing calculations when invoice_policy_required was set to True.
When invoice_policy_required was False, the invoice policy was ignored,
and the system fell back to the default product level invoice policies.

This was problematic because users could set an invoice policy
on sale orders, but it would not work. Now the sale order invoice
policy works correctly even when the field is not marked as required,
allowing optional but functional invoice policies.
@sebalix sebalix changed the title [FIX] sale_invoice_policy: invoice policy [17.0][FIX] sale_invoice_policy: invoice policy Feb 6, 2026
@Drsmartinkus Drsmartinkus force-pushed the 17.0-fix-sale_invoice_policy-invoice-policy-required branch from 16ded28 to c763bb8 Compare February 11, 2026 13:47
Allow empty value on invoice_policy by removing readonly option.
Without this it's not possible to select nothing which forces always to
use invoice policy from sale order level.
@Drsmartinkus Drsmartinkus force-pushed the 17.0-fix-sale_invoice_policy-invoice-policy-required branch from c763bb8 to cfe6ebe Compare February 11, 2026 13:51
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

Successfully merging this pull request may close these issues.

2 participants