Skip to content

Commit

Permalink
Improved: PaymentGroup Create Button shown to viewer (OFBIZ-12819) (#689
Browse files Browse the repository at this point in the history
)

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
  • Loading branch information
PierreSmits committed Feb 9, 2024
1 parent 836b55e commit 14b80e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions applications/accounting/widget/AccountingMenus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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}">
Expand Down
5 changes: 0 additions & 5 deletions applications/accounting/widget/PaymentGroupScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 14b80e9

Please sign in to comment.