Skip to content

Commit 23fed1c

Browse files
committed
[REV] DONT LOOK - account: add more visibility about the sent status of invoice
no task id
1 parent 2d4656e commit 23fed1c

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

addons/account/models/account_move.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -608,14 +608,6 @@ def _sequence_year_range_monthly_regex(self):
608608
compute='_compute_is_being_sent'
609609
)
610610

611-
move_sent_values = fields.Selection(
612-
selection=[
613-
('sent', 'Sent'),
614-
('not_sent', 'Not Sent'),
615-
],
616-
string='Sent',
617-
compute='compute_move_sent_values',
618-
)
619611
invoice_user_id = fields.Many2one(
620612
string='Salesperson',
621613
comodel_name='res.users',
@@ -783,11 +775,6 @@ def _compute_is_being_sent(self):
783775
for move in self:
784776
move.is_being_sent = bool(move.sending_data)
785777

786-
@api.depends('is_move_sent')
787-
def compute_move_sent_values(self):
788-
for move in self:
789-
move.move_sent_values = 'sent' if move.is_move_sent else 'not_sent'
790-
791778
def _compute_payment_reference(self):
792779
for move in self.filtered(lambda m: (
793780
m.state == 'posted'

addons/account/views/account_move_views.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -548,14 +548,6 @@
548548
invisible="payment_state == 'invoicing_legacy' or move_type == 'entry'"
549549
optional="show"
550550
/>
551-
<field name="move_sent_values"
552-
string="Sent"
553-
widget="badge"
554-
decoration-success="move_sent_values == 'sent'"
555-
decoration-danger="move_sent_values == 'not_sent'"
556-
column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')"
557-
optional="hide"
558-
/>
559551
<field name="move_type" column_invisible="context.get('default_move_type', True)"/>
560552
<field name="abnormal_amount_warning" column_invisible="1"/>
561553
<field name="abnormal_date_warning" column_invisible="1"/>

0 commit comments

Comments
 (0)