Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013327Openbravo ERP00. Application dictionarypublic2010-05-14 12:512010-06-17 00:00
networkb 
marvintm 
urgentmajoralways
closedfixed 
5
2.50MP14 
2.50MP19 
Core
No
0013327: Error when using "Copy Window Tabs" process in a module with Language diferent from Englis(USA)
When you are defining a new module and you set it as "Translation Required=Y" and "Module Language"=Spanish (having installed Spanish Translation in the application), and the you try to run "Copy Window Tabs" process you will get the following error :
Error:
el valor null para la columna «name» viola la restricción not null

It is referred to LANGUAGE variable, and if you change "Module Language"=English (USA) you will be able to run the process
1. Application Dictionary || Module || Module : create new module IN DEVELOPMENT, check "Translation Required" and set "Module Language"=Spanish
2. Application Dictionary || Windows, Tabs, and Fields || Window : create new window for your module and press "Copy Window Tabs" button, choose any window.
3. You will get the error
No tags attached.
Issue History
2010-05-14 12:51networkbNew Issue
2010-05-14 12:51networkbAssigned To => alostale
2010-05-14 13:24networkbTarget Version2.50MP18 => 2.50MP19
2010-05-17 08:25alostaleStatusnew => scheduled
2010-06-09 11:15alostaleAssigned Toalostale => marvintm
2010-06-14 11:25hgbotCheckin
2010-06-14 11:25hgbotNote Added: 0028350
2010-06-14 11:25hgbotStatusscheduled => resolved
2010-06-14 11:25hgbotResolutionopen => fixed
2010-06-14 11:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/86b0e6bd04aa22ed4aa839fa5d5445893b375189 [^]
2010-06-15 05:43hudsonbotCheckin
2010-06-15 05:43hudsonbotNote Added: 0028400
2010-06-16 22:34iperdomoNote Added: 0028531
2010-06-16 22:34iperdomoStatusresolved => closed
2010-06-17 00:00anonymoussf_bug_id0 => 3017324

Notes
(0028350)
hgbot   
2010-06-14 11:25   
Repository: erp/devel/pi
Changeset: 86b0e6bd04aa22ed4aa839fa5d5445893b375189
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Jun 14 11:19:40 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/86b0e6bd04aa22ed4aa839fa5d5445893b375189 [^]

Fixed issue 13327. AD_WINDOW_COPY procedure will now work when the language of the source module and the target one are different.
Basically, a coalesce-using structure has been added to get the translated version of the name, description, and help, both for the main tables (ad_tab, ad_field) and also for the _trl tables, and if it doesn't exist, then use the name, description, and help of the original row.

---
M src-db/database/model/functions/AD_WINDOW_COPY.xml
---
(0028400)
hudsonbot   
2010-06-15 05:43   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/86b0e6bd04aa [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f7644da65496 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17606.obx [^]
(0028531)
iperdomo   
2010-06-16 22:34   
Tested on pi @ rev e6a6e9dcefab