From e0a1783d60e380a58e2f6bd3d2ecfa1b88fe8f5c Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Mon, 3 Nov 2025 17:19:03 +0100 Subject: [PATCH 1/2] [IMP] account: Quick search on an amount in the journal items --- addons/account/views/account_move_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 943748227126e..73bea56e7f85d 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -306,6 +306,7 @@ + From 3ecd64801085fbf0d4104289392602dae1ca9436 Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Tue, 4 Nov 2025 15:11:22 +0100 Subject: [PATCH 2/2] [IMP] account: update the invoices list - show if the invoice is sent or not --- addons/account/models/account_move.py | 14 ++++++++++++++ addons/account/views/account_move_views.xml | 10 ++++++++++ 2 files changed, 24 insertions(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 16992bfcde100..fc971f7771a00 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -340,6 +340,15 @@ 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_status', + copy=False, + store=True + ) # === Date fields === # invoice_date = fields.Date( @@ -781,6 +790,11 @@ def _compute_invoice_default_sale_person(self): else: move.invoice_user_id = False + @api.depends('is_move_sent') + def _compute_is_sent_status(self): + for move in self: + move.invoice_sent_status = 'sent' if move.is_move_sent else 'not_sent' + @api.depends('sending_data') def _compute_is_being_sent(self): for move in self: diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 73bea56e7f85d..1ed8279f0c892 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -550,6 +550,7 @@ invisible="payment_state == 'invoicing_legacy' or move_type == 'entry'" optional="show" /> + @@ -1595,6 +1596,15 @@ + + +