details: /erp/devel/pi/rev/75b7be18a77a
changeset: 8798:75b7be18a77a
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Fri Nov 05 09:51:14 2010 +0100
summary: fixed bug 14837: The 'Delete Record' button appears in the grid view
Removed delete button from grid's toolbar in case the role does not have
writting permissions on the tab.
diffstat:
src-wad/src/org/openbravo/wad/javasource.javaxml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 1528be065b3b -r 75b7be18a77a
src-wad/src/org/openbravo/wad/javasource.javaxml
--- a/src-wad/src/org/openbravo/wad/javasource.javaxml Thu Nov 04 19:23:56
2010 +0100
+++ b/src-wad/src/org/openbravo/wad/javasource.javaxml Fri Nov 05 09:51:14
2010 +0100
@@ -876,7 +876,8 @@
ToolBar toolbar = new ToolBar(this, vars.getLanguage(), "<PARAMETER_TMP
id="class">Almacen</PARAMETER_TMP>", false, "document.frmMain.inp<FIELD_TMP
id="keyData">Clave</FIELD_TMP>", "grid", "..<PARAMETER_TMP
id="paramReportPDF">xx</PARAMETER_TMP>", "<PARAMETER_TMP
id="paramReportDirectPrint">xx</PARAMETER_TMP>".equals("Y"), "<PARAMETER_TMP
id="windowName">Window</PARAMETER_TMP>", strReplaceWith, false);
toolbar.setTabId(tabId);
- toolbar.setDeleteable(<PARAMETER_TMP id="deleteable"/>);
+
+ toolbar.setDeleteable(<PARAMETER_TMP id="deleteable"/> &&
!org.openbravo.erpCommon.utility.WindowAccessData.hasReadOnlyAccess(this,
vars.getRole(), tabId));
toolbar.prepareRelationTemplate<PARAMETER_TMP
id="sameParent">NoSearch</PARAMETER_TMP>("<PARAMETER_TMP
id="paramHasTree">hasTree</PARAMETER_TMP>".equals("Y"), hasSearchCondition,
!vars.getSessionValue("#ShowTest", "N").equals("Y"), <PARAMETER_TMP
id="paramIsReadOnly">readonly</PARAMETER_TMP>, Utility.getContext(this, vars,
"ShowAudit", windowId).equals("Y"));
xmlDocument.setParameter("toolbar", toolbar.toString());
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits