Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002489Openbravo ERPZ. Otherspublic2008-01-10 11:442008-06-12 09:43
cromero 
alostale 
normalminoralways
closedfixed 
5
 
2.40alpha-r2 
No
Core
No
0002489: Inserts does not works in spanish
If you try to create a new record, if you are in english version it works fine, but if you change your language to spanish it doesn't.

The reason is in the Audit. For some strange reason, when you are in spanish and create a new record, the fields createdby and updatedby are fulfilled with 'BBAdmin' user, but the updated and created fields don't.

So, it always shows an error asking for fulfill all needed fields.

See attached file.
No tags attached.
Issue History

Notes
(0006078)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1868309 [^]
(0002983)
user71   
2008-01-17 20:47   
(edited on: 2008-06-12 09:24)
Logged In: YES
user_id=624118
Originator: NO

The same here (svn trunk). created, createdby, updated and updatedby is always isMandatory when should be the default value for today for spanish. So WAD add this javascript to es_ES html's but not in design (en), i. ex.:

diff -u WebContent/src-loc/es_ES/org/openbravo/erpWindows/ProcessPlan/ProcessPlan_Edition.html WebContent/src-loc/design/org/openbravo/erpWindows/ProcessPlan/ProcessPlan_Edition.html :

.....
 if (inputValue(frm.inpcreated)==null || inputValue(frm.inpcreated)=="") {
    setFocus(frm.inpcreated);
    mensaje(1);
    return false;
  }


 
 
  if (inputValue(frm.inpcreatedby)==null || inputValue(frm.inpcreatedby)=="") {
    setFocus(frm.inpcreatedby);
    mensaje(1);
    return false;
  }
 
 
  if (inputValue(frm.inpupdated)==null || inputValue(frm.inpupdated)=="") {
    setFocus(frm.inpupdated);
    mensaje(1);
    return false;
  }
 
 
 
 
  if (inputValue(frm.inpupdatedby)==null || inputValue(frm.inpupdatedby)=="") {
    setFocus(frm.inpupdatedby);
    mensaje(1);
    return false;
  }

.....