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 9c7c27d839 Improved: Fix cross-app menu location issues (FBIZ-13035)
(#769)
9c7c27d839 is described below
commit 9c7c27d839b8d51217779321d5742597f504f43f
Author: Pierre Smits <[email protected]>
AuthorDate: Tue Apr 16 17:49:37 2024 +0200
Improved: Fix cross-app menu location issues (FBIZ-13035) (#769)
address cross application menu-location issues.
Plugins use the timesheet functionality from the workeffort component.
Given that base approval should be in the worrkeffort component, duplicate
menus in plugins should reside in workeffort
modified: WorkEffortMenus.xml
- added: TimesheetActionMenu
---
applications/workeffort/widget/WorkEffortMenus.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/applications/workeffort/widget/WorkEffortMenus.xml
b/applications/workeffort/widget/WorkEffortMenus.xml
index 3e591665c9..0fb430cba6 100644
--- a/applications/workeffort/widget/WorkEffortMenus.xml
+++ b/applications/workeffort/widget/WorkEffortMenus.xml
@@ -407,4 +407,15 @@ under the License.
</link>
</menu-item>
</menu>
+ <menu name="TimesheetActionMenu">
+ <menu-item name="setToComplete"
title="${uiLabelMap.CommonStatustoComplete}">
+ <condition>
+ <if-compare field="timesheet.statusId" operator="equals"
value="TIMESHEET_IN_PROCESS"/>
+ </condition>
+ <link target="${my}StatusToComplete">
+ <parameter param-name="timesheetId"
from-field="timesheet.timesheetId"/>
+ <parameter param-name="statusId" value="TIMESHEET_COMPLETED"/>
+ </link>
+ </menu-item>
+ </menu>
</menus>