"Applied fix from trunk framework for revision: 1799327" 
------------------------------------------------------------------------
r1799327 | jleroux | 2017-06-20 11:33:51 +0200 (mar. 20 juin 2017) | 5 lignes

Improved: Accounting Manager \ Fixed Assets, press button [NEW FIXED ASSET], 
but action button is [Update], not [Save]
(OFBIZ-9422)

Thanks: Do Nhu Vy for report
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release16.11@1799328 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/applications/accounting/widget/FixedAssetForms.xml b/applications/accounting/widget/FixedAssetForms.xml
index 7d61f6e..ab95c02 100644
--- a/applications/accounting/widget/FixedAssetForms.xml
+++ b/applications/accounting/widget/FixedAssetForms.xml
@@ -122,7 +122,8 @@
         <field name="locatedAtFacilityId"><lookup target-form-name="LookupFacility"/></field>
         <field name="locatedAtLocationSeqId"><lookup target-form-name="LookupFacilityLocation"/></field>
 
-        <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
+        <field name="submitButton" use-when="fixedAssetId!=null" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
+        <field name="submitButton" use-when="fixedAssetId==null" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
     </form>
 
     <form name="ListFixedAssetProducts" type="list"  list-name="fixedAssetProducts"  target="updateFixedAssetProduct"