~pedro.baeza/account-payment/6.1-payment-extension_context-handling

« back to all changes in this revision

Viewing changes to account_payment_extension/wizard/account_payment_order.py

  • Committer: Pedro M. Baeza
  • Date: 2013-09-12 11:23:15 UTC
  • Revision ID: pedro.baeza@serviciosbaeza.com-20130912112315-sethoaqltnkg4fra
[FIX] account_payment_extension: domain in invoice search.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        amount = data.amount
86
86
        payment = order_obj.browse(cr, uid, context.get('active_id'), context=context)
87
87
        # Search for move line to pay:
88
 
        domain = [('reconcile_id', '=', False), ('account_id.type', '=', payment.type)]#,('amount_to_pay', '<>', 0)]
 
88
        domain = [('reconcile_id', '=', False), ('account_id.type', '=', payment.type), ('amount_to_pay', '<>', 0)]
89
89
        if payment.type =='payable' and not show_refunds:
90
90
            domain += [ ('credit','>',0) ]
91
91
        elif not show_refunds: