← Back to team overview

openerp-india team mailing list archive

[Bug 1066066] Re: res_partner.credit and debit do not always return correct values

 

Dear Ferdinand,

In your domain, the account type is payable.  This should be receivable
for move lines with credits, which will give you the partners with
credit > 0 for sure.

domain    = \
            [ ('reconcile_id', '=', False)
            , ('account_id.type', '=', 'payable')
            , ('company_id', '=', company_id)
            , ('partner_id', '!=', False) # must be there in case there are imported lines without partner_id (Deloitte)
            , ('state', '=', 'valid')
            # , ('amount_to_pay', '>', 0) # see later in if statements
            ]

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1066066

Title:
  res_partner.credit and debit do not always return correct values

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  for line in account_move_line_obj.browse(cr, uid, ids) :

  line.partner_id.credit is always 0

  line.partner_id.debit
            positive value => credit
            negative value => debit

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1066066/+subscriptions


References