[trunk][account_analytic_plans] Error if analytics_id null on invoice line

Bug #653260 reported by John B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Get a key error if the Analytic Distribution (analytics_id) isn't included on the invoice line. Should be a required field or change:

   if il['analytics_id']

to:

   if il.get('analytics_id', False):

Patch attached.

Revision history for this message
John B (johnb-ca) wrote :
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello john,

Your patch is applied in trunk addons with revision id: mra@mra-laptop-20101004044607-xi90nws3pao6f3rf

Thank you,

Changed in openobject-addons:
milestone: none → 6.0
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.