← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Please see the screen record attached.

** Attachment added: "supplier / customer invoice exception"
   https://bugs.launchpad.net/openobject-addons/+bug/783796/+attachment/2132462/+files/out-2.ogv

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/783796

Title:
  Exception adding an item on Supplier Invoice

Status in OpenERP Modules (addons):
  Incomplete

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'


References