Skip to content

Conversation

@jugurtha-gaci
Copy link

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

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
Copy link

robodoo commented Nov 6, 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.

Still the commits problems + some impss

domain=[('display_type', 'in', ('product', 'line_section', 'line_note'))],
)
invoice_sent_status = fields.Selection(
selection=[('sent', "Sent"), ('not_sent', "Not sent")],

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")
],

)
invoice_sent_status = fields.Selection(
selection=[('sent', "Sent"), ('not_sent', "Not sent")],
compute='_compute_is_sent',

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 +1605
<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')]"
/>

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 😄

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 commit 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
@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
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.

4 participants