account_tax_expense_include module breaks purchase

Bug #868334 reported by Normunds (Alistek)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
Amit Parik

Bug Description

After installation of module Purchase Orders no longer works.
To fix need: change in account_tax_expense_include.py line 46
- if (partner.employee and tax.expense_include) or tax.price_include:
+ if (partner and partner.employee and tax.expense_include) or tax.price_include:

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Normunds,

Yes, you are right. Due to this problem I have faced following traceback.

AttributeError: 'NoneType' object has no attribute 'employee'

Thanks.

Changed in openobject-addons:
assignee: nobody → Amit Parik (OpenERP) (amp-openerp)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

It has been fixed in lp:openobject-addons/extra-trunk branch with following revision no and info.
5472 <email address hidden>

Thanks.

Changed in openobject-addons:
status: Confirmed → 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.