Mohammed Shekha(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-51120-msh into 
lp:openobject-addons/6.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #780155 in OpenERP Web Client: "error in web client in 
mrp->planning->workcenter"
  https://bugs.launchpad.net/openobject-client-web/+bug/780155

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-51120-msh/+merge/85992

Hello,

Fixed the issue of "work center" filter which was crashing web-client.

Produce :- In web-client goto Manufacturing -> Planning -> Work Centers
Now click on Work Center filter which will crash web-client.

Error :- list index out of range.

Reason:- There is widget="selection" in tree view, so the web-client will treat 
workcenter_id as a selection field and will try to access the value of that 
field accordingly but the field workcenter_id is many2one field so the value 
will be like (1, 'some text').

So removed widget="selection" from tree view.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-51120-msh/+merge/85992
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-51120-msh.
=== modified file 'mrp_operations/mrp_operations_view.xml'
--- mrp_operations/mrp_operations_view.xml	2011-07-21 11:33:42 +0000
+++ mrp_operations/mrp_operations_view.xml	2011-12-16 06:03:37 +0000
@@ -54,7 +54,7 @@
                 <field name="qty"/>
                 <field name="uom"/>
                 <field name="name"/>
-                <field name="workcenter_id" widget="selection"/>
+                <field name="workcenter_id"/>
                 <field name="cycle"/>
                 <field name="hour"/>
                 <field name="state" />

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to