openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #00173
[Bug 831543] Re: V6.02 . Hardcoded stock name location in mrp_repair
final fix landed in trunk in revision 5465
thanks for the contribution,
Quentin
** Changed in: openobject-addons
Status: Fix Committed => Fix Released
--
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/831543
Title:
V6.02 . Hardcoded stock name location in mrp_repair
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Hi,
It seems there are some hardcode regarding stock name location in
mrp_repair module.
Rename the physical stock name for example : "Stock warehouse 1"
Create an order repair
Chose the product, Lot # etc..
Create a line, chose "add" or "remove" and the following error message appears :
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp_repair/mrp_repair.py", line 711, in onchange_operation_type
stock_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Stock')])[0]
IndexError: list index out of range
Same thing if there is a change in the virtual production location name
Rename the virtual production stock name for example : "Repair"
Create an order repair
Chose the product, Lot # etc..
Create a line, chose "add" or "remove" and the following error message appears :
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/mrp_repair/mrp_repair.py", line 702, in onchange_operation_type
product_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Production')])[0]
IndexError: list index out of range
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/831543/+subscriptions