openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23708
[Bug 1130656] Re: [7.0/trunk] Purchase Requisition : Error while running procurement.
** Project changed: openobject-server => openobject-addons
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1130656
Title:
[7.0/trunk] Purchase Requisition : Error while running procurement.
Status in OpenERP Addons (modules):
New
Bug description:
Steps to reproduce the issue:
1. Create a new database without demo data.
2. Install purchase_requisition.
3. Create a new product with following configuration:
Product Type : Stockable Product
Procurement Method : Make to Stock
Supply Method : Buy
4. Tick the 'Purchase Requisition' on product.
5. Now from product, clicked on 'Request Procurement' button to create
the procurement.
Run the procurement. It gives the traceback as follow:
Traceback (most recent call last):
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/netsvc.py", line 236, in dispatch_rpc
result = dispatch(method, params)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/service/model.py", line 27, in dispatch
res = fn(db, uid, *params)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/service/model.py", line 100, in wrapper
return f(dbname, *args, **kwargs)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/service/model.py", line 176, in exec_workflow
res = exec_workflow_cr(cr, uid, obj, signal, *args)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/service/model.py", line 169, in exec_workflow_cr
return object.signal_workflow(cr, uid, [res_id], signal)[res_id]
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 3939, in signal_workflow
result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/__init__.py", line 106, in trg_validate
res2 = instance.validate(cr, id, ident, signal)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/instance.py", line 43, in validate
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 60, in process
ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 175, in _split_test
_join_test(cr, t[0], t[1], ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 183, in _join_test
create(cr,[activity], inst_id, ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 40, in create
process(cr, res, ident, stack=stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 52, in process
result = _execute(cr, workitem, activity, ident, stack)
File "/home/mdi/workspace/openerp/rdtools/server/trunk/openerp/workflow/workitem.py", line 133, in _execute
id_new = cr.fetchone()[0]
TypeError: 'NoneType' object has no attribute '__getitem__'
Thanks,
Divyesh
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1130656/+subscriptions
References