From e0a1783d60e380a58e2f6bd3d2ecfa1b88fe8f5c Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Mon, 3 Nov 2025 17:19:03 +0100 Subject: [PATCH 1/6] [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 5b799d042fcbc219c95bcc46608f11015136e869 Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Tue, 4 Nov 2025 10:00:00 +0100 Subject: [PATCH 2/6] [IMP] account: Make due date invisible for cancelled invoices --- addons/account/views/account_move_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 73bea56e7f85d..8cd7d6a503fb4 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -524,7 +524,7 @@ - + From 1bee02ef3bff3265655cd8efec5abc5040e3e72a Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Tue, 4 Nov 2025 10:34:45 +0100 Subject: [PATCH 3/6] [IMP] account: Group Payment: Change memo to PAY/XXXX --- addons/account/models/company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/company.py b/addons/account/models/company.py index fd3d289aa7b52..b54c97ce34c26 100644 --- a/addons/account/models/company.py +++ b/addons/account/models/company.py @@ -164,7 +164,7 @@ class ResCompany(models.Model): 'padding': 5, 'use_date_range': True, 'company_id': self.id, - 'prefix': 'BATCH/%(year)s/', + 'prefix': 'PAY/%(year)s/', }), ) From ea1f6067baacd764cecb393ae0715517649c9e2a Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Tue, 4 Nov 2025 11:21:37 +0100 Subject: [PATCH 4/6] [IMP] account: Remove points of menu about analytics if analytics is not checked --- addons/account/views/account_menuitem.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/views/account_menuitem.xml b/addons/account/views/account_menuitem.xml index 443c16484995f..192a8c00a3533 100644 --- a/addons/account/views/account_menuitem.xml +++ b/addons/account/views/account_menuitem.xml @@ -26,7 +26,7 @@ - + From 9f3ee724e03de1809b2386f69cef5407b388998b Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Tue, 4 Nov 2025 14:10:05 +0100 Subject: [PATCH 5/6] [IMP] account: Add delivery date on invoice --- addons/l10n_fr_account/models/account_move.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/addons/l10n_fr_account/models/account_move.py b/addons/l10n_fr_account/models/account_move.py index ff6f3aca58f49..e8e1cd68462c7 100644 --- a/addons/l10n_fr_account/models/account_move.py +++ b/addons/l10n_fr_account/models/account_move.py @@ -16,6 +16,20 @@ def _get_view(self, view_id=None, view_type='form', **options): shipping_fields[0].attrib.pop("groups", None) return arch, view + @api.depends('country_code', 'move_type') + def _compute_show_delivery_date(self): + # EXTENDS 'account' + super()._compute_show_delivery_date() + for move in self: + if move.country_code == 'FR': + move.show_delivery_date = move.is_sale_document() + + def _post(self, soft=True): + for move in self: + if move.country_code == 'FR' and move.is_sale_document() and not move.delivery_date: + move.delivery_date = move.invoice_date or fields.Date.context_today(self) + return super()._post(soft) + @api.depends('company_id.country_code') def _compute_l10n_fr_is_company_french(self): for record in self: From 9dab7146f4cba12dca211e1264d4aae4ba71e91f Mon Sep 17 00:00:00 2001 From: Jugurtha Date: Tue, 4 Nov 2025 15:11:22 +0100 Subject: [PATCH 6/6] [IMP] account: Add more visibility about the sent status of invoice --- addons/account/models/account_move.py | 10 ++++++++++ addons/account/views/account_move_views.xml | 1 + 2 files changed, 11 insertions(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 16992bfcde100..4fa1df7e14207 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -340,6 +340,11 @@ 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=False + ) # === Date fields === # invoice_date = fields.Date( @@ -781,6 +786,11 @@ def _compute_invoice_default_sale_person(self): else: move.invoice_user_id = False + @api.depends('is_move_sent') + def _compute_is_sent(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 8cd7d6a503fb4..42e50a5487dbd 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" /> +