Skip to content

[IMP] account_customer_early_payment_discount: readme mentions the base module task#30881 - #14

Closed
alan196 wants to merge 5 commits into
Jarsa:19.0from
Jarsa-dev:19.0-imp-account_customer_early_payment_discount-readme
Closed

alan196 wants to merge 5 commits into
Jarsa:19.0from
Jarsa-dev:19.0-imp-account_customer_early_payment_discount-readme

Conversation

@alan196

@alan196 alan196 commented Sep 18, 2026

Copy link
Copy Markdown

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

alan196 and others added 5 commits September 17, 2026 13:47
… 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>
@jarsabot

Copy link
Copy Markdown

Linked to Odoo task #30881

@alan196 alan196 closed this Sep 18, 2026
@alan196
alan196 deleted the 19.0-imp-account_customer_early_payment_discount-readme branch September 18, 2026 15:32
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