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
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp