Skip to content

Commit 983f5f4

Browse files
committed
[REV] DONT LOOK - account: add more visibility about the sent status of invoice
no task id
1 parent a55d811 commit 983f5f4

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

addons/account/models/account_move.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -619,15 +619,6 @@ def _sequence_year_range_monthly_regex(self):
619619
compute='_compute_is_being_sent'
620620
)
621621

622-
move_sent_values = fields.Selection(
623-
selection=[
624-
('sent', 'Sent'),
625-
('not_sent', 'Not Sent'),
626-
],
627-
string='Sent',
628-
compute='compute_move_sent_values',
629-
search='_search_move_sent_values',
630-
)
631622
invoice_user_id = fields.Many2one(
632623
string='Salesperson',
633624
comodel_name='res.users',
@@ -795,19 +786,6 @@ def _compute_is_being_sent(self):
795786
for move in self:
796787
move.is_being_sent = bool(move.sending_data)
797788

798-
@api.depends('is_move_sent')
799-
def compute_move_sent_values(self):
800-
for move in self:
801-
move.move_sent_values = 'sent' if move.is_move_sent else 'not_sent'
802-
803-
def _search_move_sent_values(self, operator, value):
804-
if operator in ('=', '!='):
805-
if value == 'sent':
806-
return [('is_move_sent', operator, True)]
807-
if value == 'not_sent':
808-
return [('is_move_sent', operator, False)]
809-
raise NotImplementedError
810-
811789
def _compute_payment_reference(self):
812790
for move in self.filtered(lambda m: (
813791
m.state == 'posted'

addons/account/views/account_move_views.xml

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

0 commit comments

Comments
 (0)