V6.02 . Hardcoded stock name location in mrp_repair
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 |
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/
result = ExportService.
File "/usr/local/
res = fn(db, uid, *params)
File "/usr/local/
return f(self, dbname, *args, **kwargs)
File "/usr/local/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/
stock_id = self.pool.
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/
result = ExportService.
File "/usr/local/
res = fn(db, uid, *params)
File "/usr/local/
return f(self, dbname, *args, **kwargs)
File "/usr/local/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/
product_id = self.pool.
IndexError: list index out of range
Thanks
Related branches
- Atik Agewan(OpenERP) (community): Needs Resubmitting
- qdp (OpenERP): Needs Fixing
- Rucha (Open ERP) (community): Approve
- Christophe CHAUVET (community): Needs Fixing
-
Diff: 63 lines (+25/-19)1 file modifiedmrp_repair/mrp_repair.py (+25/-19)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello Corinne,
Thanks for reporting,
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-831543-aag
Revision ID: <email address hidden>
Revision num: 4945.
It will be available in trunk soon,