diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index a4c826dddb370..478dd8b00a587 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -597,6 +597,16 @@ def _sequence_year_range_monthly_regex(self):
string='Terms and Conditions',
compute='_compute_narration', store=True, readonly=False,
)
+ status_move_sent = fields.Selection(
+ selection=[
+ ('not_sent', "Not Sent"),
+ ('sent', "Sent"),
+ ],
+ readonly=True,
+ string="Sent Status",
+ default='not_sent',
+ compute='_compute_status_move_sent',
+ )
is_move_sent = fields.Boolean(
readonly=True,
copy=False,
@@ -754,6 +764,11 @@ def init(self):
# COMPUTE METHODS
# -------------------------------------------------------------------------
+ @api.depends('is_move_sent')
+ def _compute_status_move_sent(self):
+ for move in self:
+ move.status_move_sent = '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 5ed5e8aa6eaeb..50a14eca6c9cc 100644
--- a/addons/account/views/account_move_views.xml
+++ b/addons/account/views/account_move_views.xml
@@ -548,6 +548,12 @@
invisible="payment_state == 'invoicing_legacy' or move_type == 'entry'"
optional="show"
/>
+
@@ -1581,6 +1587,11 @@
+