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

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-50555-msh/+merge/82499

Hello,

Fixed the issue of button in o2m which opens new form instead of continue with 
same form.

Demo : Warehouse -> Delivery Orders -> Create Stock Move Lines -> When you Save 
the o2m record the butoons will enabled now click on Confirm will open new o2m 
instead of continue with same form.

Reason : Here in OpenO2m.py we have remove params.o2m_id to solve the issue of 
Save & New button which was opening same form when you edit record the record 
of o2m.

Changed the code so that both the issue not faced.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-50555-msh/+merge/82499
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-50555-msh.
=== modified file 'addons/openerp/controllers/openo2m.py'
--- addons/openerp/controllers/openo2m.py	2011-10-13 10:50:16 +0000
+++ addons/openerp/controllers/openo2m.py	2011-11-17 06:05:28 +0000
@@ -129,7 +129,7 @@
         if new_ids and params.source:
             current.id = new_ids[-1]
             params.o2m_id = current.id
-        else:
+        elif not params.button:
             params.o2m_id = False
 
         # perform button action

_______________________________________________
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