Product lookup fails in invoice line

Bug #660737 reported by Jim Norman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
JMA(Open ERP)

Bug Description

Trunk addons version 4340

Traceback:

Environment Information :
System : Linux-2.6.32-25-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-25-generic
Operating System Version : #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1618 launchpad_translations_on_behalf_of_openerp-20101014044508-5aemh6vz68fbomfk
Traceback (most recent call last):
  File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/server/bin/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/bin/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/bin/osv/osv.py", line 130, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/addons/account/invoice.py", line 1364, in product_id_change
    if app_acc_in.company_id.id != company_id and app_acc_exp.company_id.id != company_id:
AttributeError: 'NoneType' object has no attribute 'id'

Accounting/Suppliers/Supplier Invoices/new invoice, select supplier, add line, lookup product

Related branches

tags: added: maintenance trunk
Changed in openobject-addons:
assignee: nobody → JMA(Open ERP) (jma-openerp)
Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
milestone: none → 6.0
Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Jim Norman,

It has been fixed by revision: 4347 <email address hidden>
Please update your code to get the latest changes.
Thank you for pointing this out.

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.