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

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574658-msh/+merge/107625

Hello,

Note :- The issue is only generated in web.

Fixed the issue of Upstream Traceability which is givin error in web but we 
have passed type:'' in context in addons which is causing an problem.

Demo :- Warehouse -> Traceability -> Production Lots -> Open any existing 
record and Click on the button Upstream Traceability.

This will give a traceback, the reason is that we have passed type:'' in 
context so when we get the pair it will give '' as a type value so the optional 
'move_history_ids2' in context.get('type', 'move_history_ids2') will not be 
assigned to type, if we do not want to pass type then why we should pass '' as 
there is already 'move_history_ids2' is in optional value.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574658-msh/+merge/107625
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-574658-msh.
=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml	2012-03-02 15:26:24 +0000
+++ stock/stock_view.xml	2012-05-28 13:55:25 +0000
@@ -331,7 +331,7 @@
                     <group col="2" colspan="2">
                         <separator string="Traceability" colspan="2"/>
                         <field name="stock_available" colspan="2"/>
-                        <button name="action_traceability" string="Upstream Traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}" icon="gtk-go-up" colspan="2"/>
+                        <button name="action_traceability" string="Upstream Traceability" type="object" context="{'field': 'prodlot_id'}" icon="gtk-go-up" colspan="2"/>
                         <button name="action_traceability" string="Downstream Traceability" type="object" context="{'type': 'move_history_ids', 'field': 'prodlot_id'}" icon="gtk-go-down" colspan="2"/>
                     </group>
                     <notebook colspan="4">

_______________________________________________
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