This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 14b80e952f Improved: PaymentGroup Create Button shown to viewer (OFBIZ-12819) (#689) 14b80e952f is described below commit 14b80e952fc2730972026276fadf0ea379157255 Author: Pierre Smits <pierre.sm...@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 523b098b8b..00cb9bdfe6 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 e3c14757b1..42ee278b82 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>