[IMP] account: show computed due date alongside payment term on invoices#1
Open
dnplkndll wants to merge 1 commit into
Open
[IMP] account: show computed due date alongside payment term on invoices#1dnplkndll wants to merge 1 commit into
dnplkndll wants to merge 1 commit into
Conversation
…ce form When a payment term is set on an invoice the due date field becomes invisible, because the payment term owns the date computation. This leaves the user with no visible indicator of the effective due date without opening the payment term popup or posting the invoice. This change adds a read-only greyed-out display of the computed due date (with an arrow separator) immediately to the right of the payment term field. It is visible only when a payment term is active and a due date has been computed, and is never editable in this position — the existing editable standalone due-date field continues to appear when no payment term is set. Signed-off-by: Don Kendall <dkendall@ledoweb.com>
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.
Functional description
On customer and vendor invoices, when a payment term is set, the "Due Date" field becomes invisible because the payment term controls the date computation. The user has no way to see the effective due date without opening the payment term popup or posting the invoice.
Before this PR
Setting a payment term on an invoice hides the due date field entirely. The payment term label replaces the due date label, and the computed date is not displayed anywhere on the form.
After this PR
A read-only greyed-out due date (with a small arrow separator) appears immediately to the right of the payment term field whenever a term is active and a due date has been computed. The existing editable standalone due-date field continues to appear when no payment term is set; these two displays are mutually exclusive.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr