details: https://code.openbravo.com/erp/devel/main/rev/e39da25ec78e changeset: 19639:e39da25ec78e user: Martin Taal <martin.taal <at> openbravo.com> date: Tue Feb 12 00:19:16 2013 +0100 summary: Fixes issue 23000: It will be interesting to have the Clone orders button in window Purchase Orders
details: https://code.openbravo.com/erp/devel/main/rev/73c579f36397 changeset: 19640:73c579f36397 user: Javier Etxarri <javier.echarri <at> openbravo.com> date: Fri Feb 15 13:04:59 2013 +0100 summary: issue 23000: It will be interesting to have the "Clone orders" button in window "Purchase Orders" details: https://code.openbravo.com/erp/devel/main/rev/57cb0cf5b7b0 changeset: 19641:57cb0cf5b7b0 user: Augusto Mauch <augusto.mauch <at> openbravo.com> date: Tue Feb 19 11:13:15 2013 +0100 summary: Related to issue 22810:isOpenDirectModeLeaf deletedin delayedHandleTargetRecord The property isOpenDirectModeLeaf should not only be deleted in dataArrived when there is not targetRecordId, but also in the delayedHandleTargetRecord function diffstat: modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/CloneOrderActionHandler.java | 1 + modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js | 1 + modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-clone-order.js | 2 +- 3 files changed, 3 insertions(+), 1 deletions(-) diffs (34 lines): diff -r 049f7bd889f6 -r 57cb0cf5b7b0 modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/CloneOrderActionHandler.java --- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/CloneOrderActionHandler.java Mon Feb 18 15:49:53 2013 +0100 +++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/CloneOrderActionHandler.java Tue Feb 19 11:13:15 2013 +0100 @@ -63,6 +63,7 @@ objCloneOrder.setProcessed(false); objCloneOrder.setSalesTransaction(true); objCloneOrder.setDocumentNo(null); + objCloneOrder.setSalesTransaction(objOrder.isSalesTransaction()); // save the cloned order object OBDal.getInstance().save(objCloneOrder); diff -r 049f7bd889f6 -r 57cb0cf5b7b0 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js Mon Feb 18 15:49:53 2013 +0100 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js Tue Feb 19 11:13:15 2013 +0100 @@ -1626,6 +1626,7 @@ var rowTop, recordIndex, i, data = this.data, tmpTargetRecordId = this.targetRecordId; if (!this.targetRecordId) { + delete this.isOpenDirectModeLeaf; return; } if (this.body) { diff -r 049f7bd889f6 -r 57cb0cf5b7b0 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-clone-order.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-clone-order.js Mon Feb 18 15:49:53 2013 +0100 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-clone-order.js Tue Feb 19 11:13:15 2013 +0100 @@ -50,6 +50,6 @@ }; // register the button for the sales order tab - OB.ToolbarRegistry.registerButton(cloneButtonProps.buttonType, isc.OBToolbarIconButton, cloneButtonProps, 100, ['186']); + OB.ToolbarRegistry.registerButton(cloneButtonProps.buttonType, isc.OBToolbarIconButton, cloneButtonProps, 100, ['186', '294']); }()); \ No newline at end of file ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits