You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2024/02/09 07:44:11 UTC
(ofbiz-framework) branch release22.01 updated: Improved: PaymentGroup Create Button shown to viewer (OFBIZ-12819) (#689)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new eb92120936 Improved: PaymentGroup Create Button shown to viewer (OFBIZ-12819) (#689)
eb92120936 is described below
commit eb92120936639f950b48c0273094b9ff99928958
Author: Pierre Smits <pi...@somonar.com>
AuthorDate: Fri Feb 9 08:39:02 2024 +0100
Improved: PaymentGroup Create Button shown to viewer (OFBIZ-12819) (#689)
Currently when a user with only view permissions accesses the PaymentGroup overview,
as shown in demo-trunk with userid=auditor, the action trigger to create a new PaymentGroup is shown.
Modified:
- PaymentGroupScreens.xml - removed decorator-section "menu-bar"
- AccountingMenus.xml - added menu-item "NewPaymentGroup" to MainActioonMenu
---
applications/accounting/widget/AccountingMenus.xml | 8 ++++++++
applications/accounting/widget/PaymentGroupScreens.xml | 5 -----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/applications/accounting/widget/AccountingMenus.xml b/applications/accounting/widget/AccountingMenus.xml
index cf21f591b4..afd3fd76cc 100644
--- a/applications/accounting/widget/AccountingMenus.xml
+++ b/applications/accounting/widget/AccountingMenus.xml
@@ -79,6 +79,14 @@ under the License.
</condition>
<link target="newPayment"/>
</menu-item>
+ <menu-item name="NewPaymentGroup" title="${uiLabelMap.CommonCreate} ${uiLabelMap.AccountingNewPaymentGroup}">
+ <condition>
+ <or>
+ <if-has-permission permission="ACCOUNTING" action="_CREATE"/>
+ </or>
+ </condition>
+ <link target="EditPaymentGroup"/>
+ </menu-item>
</menu>
<menu name="AccountingShortcutAppBar" title="${uiLabelMap.AccountingManager}">
diff --git a/applications/accounting/widget/PaymentGroupScreens.xml b/applications/accounting/widget/PaymentGroupScreens.xml
index c35f83f184..97c353dd4c 100644
--- a/applications/accounting/widget/PaymentGroupScreens.xml
+++ b/applications/accounting/widget/PaymentGroupScreens.xml
@@ -40,11 +40,6 @@ under the License.
<section>
<widgets>
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
- <decorator-section name="menu-bar">
- <container style="button-bar">
- <link target="EditPaymentGroup" text="${uiLabelMap.CommonCreate}" style="buttontext create"/>
- </container>
- </decorator-section>
<decorator-section name="search-options">
<include-form name="FindPaymentGroup" location="component://accounting/widget/PaymentGroupForms.xml"/>
</decorator-section>