diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index 16992bfcde100..8d08630e04163 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -614,6 +614,16 @@ def _sequence_year_range_monthly_regex(self):
tracking=True,
help="It indicates that the invoice/payment has been sent or the PDF has been generated.",
)
+
+ is_move_sent_label = fields.Selection(
+ selection=[
+ ("sent", "Sent"),
+ ("not_sent","Not sent")
+ ],
+ string='Invoice Sent',
+ compute='_compute_is_move_sent_label'
+ )
+
is_being_sent = fields.Boolean(
help="Is the move being sent asynchronously",
compute='_compute_is_being_sent'
@@ -765,6 +775,11 @@ def init(self):
# COMPUTE METHODS
# -------------------------------------------------------------------------
+ @api.depends('is_move_sent')
+ def _compute_is_move_sent_label(self):
+ for move in self:
+ move.is_move_sent_label = "sent" if move.is_move_sent else "not_sent"
+
@api.depends('move_type', 'partner_id')
def _compute_invoice_default_sale_person(self):
# We want to modify the sale person only when we don't have one and if the move type corresponds to this condition
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml
index 943748227126e..7b6722eaf780e 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -549,6 +549,13 @@
invisible="payment_state == 'invoicing_legacy' or move_type == 'entry'"
optional="show"
/>
+
@@ -1594,6 +1601,11 @@
+