← Back to team overview

openerp-india team mailing list archive

[Bug 783796] Re: Exception adding an item on Supplier Invoice

 

Hi,
   I am too getting same error. Can any one help me how to fix this bug. I am using version6.0.2. I am getting this error when i am   
   trying to create and new invoice line in the existing record...

-- 
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/783796

Title:
  Exception adding an item on Supplier Invoice

Status in account:
  Invalid

Bug description:
  How to reproduce:

  Add an item in a supplier invoice, not a product, choose directly the
  account number and add taxes for this item, after that if you want to
  add another item the system will show you the following exception:

  Traceback (most recent call last): File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/netsvc.py", line
  489, in dispatch result =
  ExportService.getService(service_name).dispatch(method, auth, params)
  File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/service/web_services.py",
  line 599, in dispatch res = fn(db, uid, *params) File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/osv/osv.py", line
  122, in wrapper return f(self, dbname, *args, **kwargs) File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/osv/osv.py", line
  176, in execute res = self.execute_cr(cr, uid, obj, method, *args,
  **kw) File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/osv/osv.py", line
  167, in execute_cr return getattr(object, method)(cr, uid, *args,
  **kw) File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/osv/orm.py", line
  981, in default_get defaults[f] = self._defaults[f](self, cr, uid,
  context) File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/addons/account/invoice.py",
  line 1262, in _price_unit_default for tax in tax_obj.compute_all(cr,
  uid, taxes, p,l[2].get('quantity'), context.get('address_invoice_id',
  False), l[2].get('product_id', False), context.get('partner_id',
  False))['taxes']: File
  "/usr/local/openerp/6.0.2/instance/devel/server/bin/addons/account/account.py",
  line 1904, in compute_all if tax.price_include: AttributeError:
  'NoneType' object has no attribute 'price_include'

To manage notifications about this bug go to:
https://bugs.launchpad.net/account/+bug/783796/+subscriptions