openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #21089
[Bug 1095986] Re: [OpenERP V7/Trunk] Change unit on account.invoice.line error (traceback)
I just test on trunk-bug-1095986-hip branch on runbot and it's ok for
me. Waiting for release in 7.0 and trunk branch
--
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/1095986
Title:
[OpenERP V7/Trunk] Change unit on account.invoice.line error
(traceback)
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
To reproduce:
- Go to accounting
- Create an customer invoice
- add line, with service product for example
- change unit (hours to days for exemple)
TraceBack:
OpenERP Server Error
Client Traceback (most recent call last):
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/controllers/main.py", line 1078, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/session.py", line 40, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/session.py", line 28, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/session.py", line 101, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/web/session.py", line 87, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
return fct_src(cr, uid, model, method, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/account/account_invoice.py", line 1501, in uos_id_change
res = self.product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, currency_id, context=context)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/account_analytic_plans/account_analytic_plans.py", line 312, in product_id_change
res_prod = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, currency_id, context=context, company_id=company_id)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/product_visible_discount/product_visible_discount.py", line 104, in product_id_change
res = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit,currency_id, context=context, company_id=company_id)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/account_anglo_saxon/invoice.py", line 141, in product_id_change
res = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, currency_id, context, company_id)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/account_analytic_default/account_analytic_default.py", line 77, in product_id_change
res_prod = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, currency_id=currency_id, context=context, company_id=company_id)
File "/home/odoo/runbot/static/openerp-dev-7-0-1327/server/openerp/addons/account/account_invoice.py", line 1488, in product_id_change
selected_uom = self.pool.get('product.uom_id').browse(cr, uid, result['uos_id'], context=context)
AttributeError: 'NoneType' object has no attribute 'browse'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1095986/+subscriptions
References