Conversation
… of the supplier settled by a credit note Up to two chained discounts on the supplier, days counted from the invoice or from the receipt, the last day to pay and the discount on the vendor bill, an internal credit note reconciled with the bill when the discount is taken, and a to-do for the follow-up team until the credit note of the supplier arrives. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U2vJWgfX8LRMaFnszPEhC5
…discounts settled by a credit note Both account_supplier_early_payment_discount and the new customer side need the same fields on account.move (last day to pay, discount amount, credit note), the same Apply Early Payment button and the business day helpers of res.company. Defined twice they override each other, so they move here and the extending modules override _get_early_payment_values, _early_payment_can_apply and _early_payment_adjust_credit_note for the move types they handle. A credit note flagged is_early_payment_refund is reconciled with its invoice when posted. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…_payment_base The fields, the button and the business day helpers now come from the base module; this module keeps the supplier terms, the base date on the receipt, the pay date, the posted internal credit note and the follow-up activity. Behaviour unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… granted to customers settled by a credit note The native early payment discount writes the discount off when the payment is registered, counts calendar days and applies to the whole invoice. This module keeps the percentage and days of the payment terms and settles the discount with a credit note issued once the customer pays in time, optionally counting business days on the working calendar of the company and leaving the services (freight, insurance) out of the discount base. The credit note is created in draft so any approval flow of the company can gate it, and it is reconciled with the invoice when posted. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…se module Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Linked to Odoo task #30881 |
alan196
deleted the
19.0-imp-account_customer_early_payment_discount-readme
branch
September 18, 2026 15:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same readme as OCA#977: the description says the fields, the button and the business day helpers come from account_early_payment_base.
🤖 Generated with Claude Code