Skip to content

[IMP] account: show computed due date alongside payment term on invoices#1

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-imp-account-show-computed-due-date-alongside-payment
Open

[IMP] account: show computed due date alongside payment term on invoices#1
dnplkndll wants to merge 1 commit into
19.0from
19.0-imp-account-show-computed-due-date-alongside-payment

Conversation

@dnplkndll

Copy link
Copy Markdown

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

…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>
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.

1 participant