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 2021/12/12 16:23:31 UTC
[ofbiz-framework] branch trunk updated: Improved: Have a Menu in Manufacturing featuring actions to create the main objects (OFBIZ-11782) (#406)
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 9dbdcb6 Improved: Have a Menu in Manufacturing featuring actions to create the main objects (OFBIZ-11782) (#406)
9dbdcb6 is described below
commit 9dbdcb63ccf0498a63f719e3a15ed72b625d0da1
Author: Pierre Smits <pi...@orrtiz.com>
AuthorDate: Sun Dec 12 17:23:24 2021 +0100
Improved: Have a Menu in Manufacturing featuring actions to create the main objects (OFBIZ-11782) (#406)
Currently the create buttons for the main objects of the manufacturing application are located within find and profile widgets/templates of those objects.
In order to improve the usability of this application, OFBiz and thus the appeal of it for adopters and users, these create buttons/links/etc. should be in a main action menu visible at all times when a user is working within the appliclation of the component.
modified:
ManufacturingMenus.xml - added MainActionMenu
CommonScreens.xlm - added pre-body decorator-section with MainActionMenu ref.
---
.../widget/manufacturing/CommonScreens.xml | 3 +++
.../widget/manufacturing/ManufacturingMenus.xml | 28 ++++++++++++++++++++--
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/applications/manufacturing/widget/manufacturing/CommonScreens.xml b/applications/manufacturing/widget/manufacturing/CommonScreens.xml
index 1182c56..b739153 100644
--- a/applications/manufacturing/widget/manufacturing/CommonScreens.xml
+++ b/applications/manufacturing/widget/manufacturing/CommonScreens.xml
@@ -55,6 +55,9 @@ under the License.
<section>
<widgets>
<decorator-screen name="main-decorator">
+ <decorator-section name="pre-body">
+ <include-menu location="component://manufacturing/widget/manufacturing/ManufacturingMenus.xml" name="MainActionMenu"/>
+ </decorator-section>
<decorator-section name="body">
<section>
<condition>
diff --git a/applications/manufacturing/widget/manufacturing/ManufacturingMenus.xml b/applications/manufacturing/widget/manufacturing/ManufacturingMenus.xml
index c4d780e..779c3b9 100644
--- a/applications/manufacturing/widget/manufacturing/ManufacturingMenus.xml
+++ b/applications/manufacturing/widget/manufacturing/ManufacturingMenus.xml
@@ -107,7 +107,32 @@ under the License.
<link target="/manufacturing/control/ManufacturingReports" url-mode="inter-app"/>
</menu-item>
</menu>
-
+ <menu name="MainActionMenu" menu-container-style="button-bar button-style-2" default-selected-style="selected">
+ <menu-item name="NewProdRun" title="${uiLabelMap.CommonNew} ${uiLabelMap.ManufacturingProductionRun}">
+ <condition>
+ <or>
+ <if-has-permission permission="MANUFACTURING" action="_CREATE"/>
+ </or>
+ </condition>
+ <link target="CreateProductionRun"/>
+ </menu-item>
+ <menu-item name="NewRouting" title="${uiLabelMap.CommonNew} ${uiLabelMap.ManufacturingRouting}">
+ <condition>
+ <or>
+ <if-has-permission permission="MANUFACTURING" action="_CREATE"/>
+ </or>
+ </condition>
+ <link target="EditRouting"/>
+ </menu-item>
+ <menu-item name="NewRoutingTask" title="${uiLabelMap.CommonNew} ${uiLabelMap.ManufacturingRoutingTask}">
+ <condition>
+ <or>
+ <if-has-permission permission="MANUFACTURING" action="_CREATE"/>
+ </or>
+ </condition>
+ <link target="EditRoutingTask"/>
+ </menu-item>
+ </menu>
<menu name="BomTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="findBom" title="${uiLabelMap.CommonFind}">
<link target="FindBom"/>
@@ -122,7 +147,6 @@ under the License.
<link target="EditProductManufacturingRules"/>
</menu-item>
</menu>
-
<menu name="ProductionRunTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="edit" title="${uiLabelMap.ManufacturingEditProductionRun}">
<condition>