Skip to content

Commit

Permalink
Ordem de cobrança ordenada por mais nova primeiro
Browse files Browse the repository at this point in the history
Removendo campos inutilizados
  • Loading branch information
danimaribeiro committed Sep 5, 2017
1 parent 99659d8 commit 06e770a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions br_boleto/models/payment_order.py
Expand Up @@ -38,6 +38,7 @@ def _compute_state(self):

class PaymentOrder(models.Model):
_name = 'payment.order'
_order = 'id desc'

@api.depends('line_ids')
def _compute_amount_total(self):
Expand Down
1 change: 0 additions & 1 deletion br_cnab/models/payment_order.py
Expand Up @@ -16,7 +16,6 @@ class PaymentOrder(models.Model):
cnab_file = fields.Binary('CNAB File', readonly=True)
file_number = fields.Integer(u'Número sequencial do arquivo', readonly=1)
data_emissao_cnab = fields.Datetime('Data de Emissão do CNAB')
cnab_valido = fields.Boolean(u'CNAB Válido', readonly=1)

@api.multi
def gerar_cnab(self):
Expand Down
1 change: 0 additions & 1 deletion br_cnab/views/payment_order.xml
Expand Up @@ -14,7 +14,6 @@
<field name="payment_mode_id" position="after">
<field name="cnab_file" filename="name" />
<field name="file_number" />
<field name="cnab_valido" />
<field name="data_emissao_cnab" />
</field>
</field>
Expand Down

0 comments on commit 06e770a

Please sign in to comment.