Skip to content

Commit

Permalink
[REF] Removed default value for field cnab_state and change field use…
Browse files Browse the repository at this point in the history
…d to consider paid a AML.
  • Loading branch information
mbcosta committed May 4, 2021
1 parent caa41e8 commit 5a2247e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions l10n_br_account_payment_order/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class AccountMoveLine(models.Model):
cnab_state = fields.Selection(
selection=ESTADOS_CNAB,
string='Estados CNAB',
default='draft',
)

own_number = fields.Char(
Expand Down Expand Up @@ -163,7 +162,7 @@ def create_payment_line_from_move_line(self, payment_order):
:return:
"""
cnab_state = 'added'
if self.invoice_id.state == 'paid':
if self.reconciled:
cnab_state = 'added_paid'

self.cnab_state = cnab_state
Expand Down

0 comments on commit 5a2247e

Please sign in to comment.