Skip to content

[IMP] account: add sent status column and filters on invoice list - #4874

Open
jugurtha-gaci wants to merge 2 commits into
18.0-rd-accounting-onboarding-malbfrom
18.0-rd-accounting-onboarding-add-sent-column-to-invoices-list-jugac
Open

[IMP] account: add sent status column and filters on invoice list#4874
jugurtha-gaci wants to merge 2 commits into
18.0-rd-accounting-onboarding-malbfrom
18.0-rd-accounting-onboarding-add-sent-column-to-invoices-list-jugac

Conversation

@jugurtha-gaci

@jugurtha-gaci jugurtha-gaci commented Nov 6, 2025

Copy link
Copy Markdown

To improve traceability for users, it is now necessary to easily see which invoices have been sent, especially with the rise of electronic invoicing.

This PR adds the 'sent' status as an optional column in the invoice list view. It also introduces two new search filters: 'Sent Invoices' and 'Not Sent Invoices' to quickly track documents that need to be dispatched.

task-5231314


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo

robodoo commented Nov 6, 2025

Copy link
Copy Markdown

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.

@malb-odoo malb-odoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Still the commits problems + some impss

Comment thread addons/account/models/account_move.py Outdated
@@ -340,6 +340,12 @@ def _sequence_year_range_monthly_regex(self):
copy=False,
domain=[('display_type', 'in', ('product', 'line_section', 'line_note'))],
)
invoice_sent_status = fields.Selection(
selection=[('sent', "Sent"), ('not_sent', "Not sent")],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
selection=[('sent', "Sent"), ('not_sent', "Not sent")],
selection=[
('sent', "Sent"),
('not_sent', "Not sent")
],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

missing this change 👀

Comment thread addons/account/models/account_move.py Outdated
@@ -340,6 +340,12 @@ def _sequence_year_range_monthly_regex(self):
copy=False,
domain=[('display_type', 'in', ('product', 'line_section', 'line_note'))],
)
invoice_sent_status = fields.Selection(
selection=[('sent', "Sent"), ('not_sent', "Not sent")],
compute='_compute_is_sent',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Convention for the compute it should generally be like this, you take the name of the field as the name of compute (except if the compute is present on multiple field)

Suggested change
compute='_compute_is_sent',
compute='_compute_invoice_sent_status',

Comment on lines +1599 to +1606
<filter name="invoice_sent_status"
string="Sent invoices"
domain="[('invoice_sent_status', '=', 'sent')]"
/>
<filter name="invoice_sent_status"
string="Not sent invoices"
domain="[('invoice_sent_status', '=', 'not_sent')]"
/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just look at the one below, the not_sent is already present so let's do the same but for sent, no need to add those extra 😄

@jugurtha-gaci
jugurtha-gaci force-pushed the 18.0-rd-accounting-onboarding-add-sent-column-to-invoices-list-jugac branch from 64cc296 to 3cfd6a9 Compare November 10, 2025 12:06
@jugurtha-gaci jugurtha-gaci changed the title [IMP] account: update the invoices list - show if the invoice is sent or not [IMP] account: add sent status column and filters on invoice list Nov 10, 2025
@jugurtha-gaci
jugurtha-gaci force-pushed the 18.0-rd-accounting-onboarding-add-sent-column-to-invoices-list-jugac branch from 3cfd6a9 to 3ecd648 Compare November 17, 2025 08:42
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