2009/10/1 <[email protected]> > Hello, > > I try to validate an invoice and i just can't do it. > > Just 1 invoices before, i've try to make a product with a negative price, > since then I ve this error. > I try with a normal sale order, a normal invoice...and i always have this > error: > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line > 242, in dispatch > result = LocalService(service_name)(method, *params) > File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, > in __call__ > return getattr(self, method)(*params) > File > "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", > line 583, in execute > res = service.execute(db, uid, object, method, *args) > File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line > 59, in wrapper > return f(self, dbname, *args, **kwargs) > File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line > 119, in execute > res = pool.execute_cr(cr, uid, obj, method, *args, **kw) > File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line > 111, in execute_cr > return getattr(object, method)(cr, uid, *args, **kw) > File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line > 2513, in write > self.pool.get(object)._store_set_values(cr, user, ids, fields, context) > File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line > 2718, in _store_set_values > result = self._columns[val[0]].get(cr, self, ids, val, uid, > context=context) > File "/usr/lib/python2.5/site-packages/openerp-server/osv/fields.py", line > 640, in get > res = self._fnct(obj, cr, user, ids, name, self._arg, context) > File > "/usr/lib/python2.5/site-packages/openerp-server/addons/account_tax_include/invoice_tax_incl.py", > line 77, in _amount_line2 > for tax in tax_obj.compute(cr, uid, line.invoice_line_tax_id, res[ > line.id]['price_subtotal']/line.quantity, line.quantity): > File > "/usr/lib/python2.5/site-packages/openerp-server/addons/account/account.py", > line 1379, in compute > res = self._unit_compute(cr, uid, taxes, price_unit, address_id, > product, partner, quantity) > File > "/usr/lib/python2.5/site-packages/openerp-server/addons/account/account.py", > line 1344, in _unit_compute > amount2 = data['amount'] > KeyError: 'amount' > > > Could someone help me? > Thanks >
What version are you using? did you installed another modules to invoices? the amount field is not found > > > > > -------------------- m2f -------------------- > > -- > http://www.openobject.com/forum/viewtopic.php?p=44601#44601 > > -------------------- m2f -------------------- > > > _______________________________________________ > Tinyerp-users mailing list > http://tiny.be/mailman2/listinfo/tinyerp-users > -- Cristian Salamea CEO GnuThink Software Labs Software Libre / Open Source (+593-8) 4-36-44-48
_______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
