details: https://code.openbravo.com/erp/devel/pi/rev/5af9f355ad36 changeset: 28560:5af9f355ad36 user: Nono <f.carballo <at> nectus.com> date: Thu Jan 21 15:36:07 2016 -0500 summary: Fixes Issue 31866: Emptied Translation List after copying generic product
If Multilingual Document is checked in Client window, when managing variants, after copying the generic product, the translation list is emptied, the m_product_trg trigger will insert the proper values when inserting the new product. details: https://code.openbravo.com/erp/devel/pi/rev/b6f6e3509b63 changeset: 28561:b6f6e3509b63 user: Víctor Martínez Romanos <victor.martinez <at> openbravo.com> date: Sun Jan 31 12:49:38 2016 +0100 summary: Fixed bug 31866: code review improvements Applied Openbravo format style Updated copyright diffstat: src/org/openbravo/materialmgmt/actionhandler/ManageVariants.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diffs (22 lines): diff -r b4ee0d43b8e1 -r b6f6e3509b63 src/org/openbravo/materialmgmt/actionhandler/ManageVariants.java --- a/src/org/openbravo/materialmgmt/actionhandler/ManageVariants.java Thu Jan 28 01:01:58 2016 +0530 +++ b/src/org/openbravo/materialmgmt/actionhandler/ManageVariants.java Sun Jan 31 12:49:38 2016 +0100 @@ -11,7 +11,7 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2013 Openbravo SLU + * All portions are Copyright (C) 2013-2016 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************* @@ -106,6 +106,9 @@ private void createVariant(JSONObject variantProperties, Product generic) throws JSONException { Product variant = (Product) DalUtil.copy(generic); + if (generic.getClient().isMultilingualDocuments()) { + variant.getProductTrlList().clear(); + } variant.setGenericProduct(generic); variant.setProductAccountsList(Collections.<ProductAccounts> emptyList()); ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits