diff options
| author | Najlaâ EL KHAYAT <nel@tinyerp.com> | 2009-04-23 14:07:15 +0200 |
|---|---|---|
| committer | Najlaâ EL KHAYAT <nel@tinyerp.com> | 2009-04-23 14:07:15 +0200 |
| commit | a9d736b0bd8daeb54dc83fcb359b8cf08eb6d30f (patch) | |
| tree | e6a3be4d38bafe1453fba347fb5ee49ddddd76e4 | |
| parent | 7c82eeeda669c9d28045c45268be68c7faad4f38 (diff) | |
avoid crash when val is none
bzr revid: nel@tinyerp.com-20090423120715-2l4d5pnfl3i3r4u9
| -rw-r--r-- | addons/account/partner.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/partner.py b/addons/account/partner.py index 0ea8e2be169..ecc8c7facb2 100644 --- a/addons/account/partner.py +++ b/addons/account/partner.py @@ -113,6 +113,7 @@ class res_partner(osv.osv): for id in ids: res[id] = {}.fromkeys(field_names, 0) for pid,type,val in cr.fetchall(): + if val is None: val=0 res[pid][maps[type]] = (type=='receivable') and val or -val return res |
