c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #35775
[Bug 881401] [NEW] Problem with UOM in Manufacturing Order
Public bug reported:
I got this error whwn trying to produce in Manufacturing Order form.
Environment Information :
System : Linux-2.6.32-5-686-i686-with-debian-6.0.3
OS Name : posix
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.3 (squeeze)
Release: 6.0.3
Codename: squeeze
Operating System Release : 2.6.32-5-686
Operating System Version : #1 SMP Mon Oct 3 04:15:24 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : es_CO.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/share/pyshared/openerp-server/addons/mrp/wizard/mrp_product_produce.py", line 76, in do_produce
data['product_qty'], data['mode'], context=context)
File "/usr/share/pyshared/openerp-server/addons/mrp/mrp.py", line 750, in action_produce
wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce_done', cr)
File "/usr/share/pyshared/openerp-server/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/usr/share/pyshared/openerp-server/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 107, in _execute
wkf_expr.execute(cr, ident, workitem, activity)
File "/usr/share/pyshared/openerp-server/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/usr/share/pyshared/openerp-server/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/usr/share/pyshared/openerp-server/tools/safe_eval.py", line 284, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/usr/share/pyshared/openerp-server/addons/mrp_operations/mrp_operations.py", line 235, in action_production_end
return super(mrp_production,self).action_production_end(cr, uid, ids)
File "/usr/share/pyshared/openerp-server/addons/mrp/mrp.py", line 649, in action_production_end
self._costs_generate(cr, uid, production)
File "/usr/share/pyshared/openerp-server/addons/mrp/mrp.py", line 776, in _costs_generate
'product_uom_id': wc.product_id.uom_id.id
AttributeError: 'NoneType' object has no attribute 'id'
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/881401
Title:
Problem with UOM in Manufacturing Order
Status in OpenERP Addons (modules):
New
Bug description:
I got this error whwn trying to produce in Manufacturing Order form.
Environment Information :
System : Linux-2.6.32-5-686-i686-with-debian-6.0.3
OS Name : posix
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.3 (squeeze)
Release: 6.0.3
Codename: squeeze
Operating System Release : 2.6.32-5-686
Operating System Version : #1 SMP Mon Oct 3 04:15:24 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : es_CO.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/share/pyshared/openerp-server/addons/mrp/wizard/mrp_product_produce.py", line 76, in do_produce
data['product_qty'], data['mode'], context=context)
File "/usr/share/pyshared/openerp-server/addons/mrp/mrp.py", line 750, in action_produce
wf_service.trg_validate(uid, 'mrp.production', production_id, 'button_produce_done', cr)
File "/usr/share/pyshared/openerp-server/workflow/wkf_service.py", line 80, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/usr/share/pyshared/openerp-server/workflow/instance.py", line 48, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 61, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 174, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 182, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 41, in create
process(cr, res, ident, stack=stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 53, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/usr/share/pyshared/openerp-server/workflow/workitem.py", line 107, in _execute
wkf_expr.execute(cr, ident, workitem, activity)
File "/usr/share/pyshared/openerp-server/workflow/wkf_expr.py", line 68, in execute
return _eval_expr(cr, ident, workitem, activity['action'])
File "/usr/share/pyshared/openerp-server/workflow/wkf_expr.py", line 58, in _eval_expr
ret = eval(line, env, nocopy=True)
File "/usr/share/pyshared/openerp-server/tools/safe_eval.py", line 284, in safe_eval
return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/usr/share/pyshared/openerp-server/addons/mrp_operations/mrp_operations.py", line 235, in action_production_end
return super(mrp_production,self).action_production_end(cr, uid, ids)
File "/usr/share/pyshared/openerp-server/addons/mrp/mrp.py", line 649, in action_production_end
self._costs_generate(cr, uid, production)
File "/usr/share/pyshared/openerp-server/addons/mrp/mrp.py", line 776, in _costs_generate
'product_uom_id': wc.product_id.uom_id.id
AttributeError: 'NoneType' object has no attribute 'id'
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/881401/+subscriptions
Follow ups
References