Skip to content

[FIX] account: hide due date on cancelled invoices and vendor bills #4799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

baje-odoo
Copy link

Purpose

This hides the Due Date field on invoices when the document has been cancelled.
Once an invoice is cancelled, no payment is expected anymore, so the due date becomes irrelevant and potentially misleading.

Changes

  • Added condition on the invoice_date_due field in the invoice form view.
  • The field is now hidden when the invoice state is cancel.

How to test

  1. Go to the Accounting app.
  2. Create a Customer Invoice or Vendor Bill with a due date.
  3. Validate it, then cancel the invoice.
  4. Open the cancelled the list view, the due date should be empty for the cancelled lines.

@robodoo
Copy link

robodoo commented Jul 1, 2025

This PR targets the un-managed branch odoo-dev/odoo:18.0-rd-accounting-onboarding-malb, it needs to be retargeted before it can be merged.

Copy link

@malb-odoo malb-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same commit message missing but otherwise it's good ;) nicely done 😄

Purpose
-------
This hides the Due Date field on invoices when the document has been cancelled.
Once an invoice is cancelled, no payment is expected anymore, so the due date becomes irrelevant and potentially misleading.

Changes
-------
- Added condition on the `invoice_date_due` field in the invoice form view.
- The field is now hidden when the invoice state is `cancel`.

How to test
-----------
1. Go to the Accounting app.
2. Create a Customer Invoice or Vendor Bill with a due date.
3. Validate it, then cancel the invoice.
4. Open the cancelled the list view, the due date should be empty for the cancelled lines.
@baje-odoo baje-odoo force-pushed the 18.0-rd-accounting-onboarding-invisible-due-date-baje branch from 986e288 to a230fb4 Compare July 3, 2025 06:43
Copy link

@malb-odoo malb-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing task-id otherwise it's perfect !

@malb-odoo malb-odoo closed this Jul 4, 2025
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.

3 participants