Sananaz (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-7544-sma into 
lp:openobject-client-web/6.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #801646 in OpenERP Web Client: "When an action is opened on another 
window with target=current,original form gets corrupted!"
  https://bugs.launchpad.net/openobject-client-web/+bug/801646

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-7544-sma/+merge/65974

Hello,

- Create a SaleOrder or duplicate it.
- Confirm it
- Click 'create invoice'

Then the new tab is open with the invoice data but the SaleOrder existing form 
value is None.

Thanks.


-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-7544-sma/+merge/65974
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-7544-sma.
=== modified file 'addons/openerp/controllers/actions.py'
--- addons/openerp/controllers/actions.py	2011-05-23 13:07:54 +0000
+++ addons/openerp/controllers/actions.py	2011-06-27 12:56:34 +0000
@@ -347,7 +347,8 @@
     # for that passing active_id in headers, to get it in openAction
     if getattr(cherrypy.request, 'params', []):
         if getattr(cherrypy.request.params, 'context', {}):
-            cherrypy.response.headers['active_id'] = cherrypy.request.params.context.get('active_id')
+            cherrypy.response.headers['active_id'] = cherrypy.request.params.get('_terp_id')\
+            or cherrypy.request.params.context.get('active_id')
 
     # Add 'opened' mark to indicate we're now within the popup and can
     # continue on during the second round of execution

_______________________________________________
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