Author: apatel
Date: Wed Jul 29 09:31:40 2009
New Revision: 798821
URL:
http://svn.apache.org/viewvc?rev=798821&view=revLog:
Simplified Portalet code. Thanks Surya for working on it.
Modified:
ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml
ofbiz/trunk/applications/accounting/widget/Menus.xml
Modified: ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml?rev=798821&r1=798820&r2=798821&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/FinAccountScreens.xml Wed Jul 29 09:31:40 2009
@@ -274,9 +274,12 @@
</screen>
<screen name="ListBankAccount">
<section>
+ <actions>
+ <set field="parameters.finAccountTypeId" value="BANK_ACCOUNT"/>
+ </actions>
<widgets>
<screenlet title="${uiLabelMap.CommonList} ${uiLabelMap.AccountingBankAccount}">
- <include-form name="ListFinAccounts" location="component://accounting/widget/FinAccountForms.xml"/>
+ <include-screen name="FinAccountPortlets"/>
</screenlet>
</widgets>
</section>
@@ -469,4 +472,11 @@
</widgets>
</section>
</screen>
+ <screen name="FinAccountPortlets">
+ <section>
+ <widgets>
+ <include-form name="ListFinAccounts" location="component://accounting/widget/FinAccountForms.xml"/>
+ </widgets>
+ </section>
+ </screen>
</screens>
Modified: ofbiz/trunk/applications/accounting/widget/Menus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/Menus.xml?rev=798821&r1=798820&r2=798821&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/Menus.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/Menus.xml Wed Jul 29 09:31:40 2009
@@ -1072,10 +1072,7 @@
</menu>
<menu name="FinAccountMainTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="finAccountMain" title="${uiLabelMap.CommonMain}">
- <link target="FinAccountMain">
- <parameter param-name="finAccountTypeId" value="BANK_ACCOUNT"/>
- <parameter param-name="organizationPartyId" from-field="defaultOrganizationPartyId"/>
- </link>
+ <link target="FinAccountMain"/>
</menu-item>
<menu-item name="FindFinAccount" title="${uiLabelMap.PageTitleFindFinAccount}">
<link target="FindFinAccount"/>