Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005014Openbravo ERPZ. Otherspublic2008-09-11 09:362008-12-16 13:09
vmromanos 
vmromanos 
normalminoralways
closedfixed 
20Ubuntu 8.04
pi 
pi 
Core
No
0005014: Verify Languages does not work on PostgreSQL database
When you press the "Verify Languages" button inside General Setup || Application || Language || Language, the application returns an error about "duplicate key value violates unique constraint ad_element_trl_key".

1- Go to Setup || Application || Language || Language, select any language, check off "System language" and save the record.
2- Press the "Verify Languages" button and you will see the error.

Important: The bug is only reproducible when using PostgreSQL database.
Inside ad_language_create.xml file, line 400,

Change:
SELECT get_uuid, C_PaymentTerm_ID, AD_Language, C_PaymentTerm.Name,

by:
SELECT get_uuid(), C_PaymentTerm_ID, AD_Language, C_PaymentTerm.Name,
No tags attached.
related to defect 0005021 closed rafaroda "get_uuid" does not exist in C_UOM_TRG in PostgreSQL 
Issue History
2008-09-11 09:36vmromanosNew Issue
2008-09-11 09:36vmromanosAssigned To => vmromanos
2008-09-11 09:36vmromanossf_bug_id0 => 2105167
2008-09-11 09:36vmromanosRegression testing => No
2008-09-11 09:37vmromanosStatusnew => scheduled
2008-09-11 09:37vmromanosfix_in_branch => trunk
2008-09-11 09:39svnbotCheckin
2008-09-11 09:39svnbotNote Added: 0008984
2008-09-11 09:39svnbotStatusscheduled => resolved
2008-09-11 09:39svnbotResolutionopen => fixed
2008-09-11 09:39svnbotsvn_revision => 7174
2008-09-11 11:25vmromanosNote Added: 0008990
2008-09-11 13:00rafarodaRelationship addedrelated to 0005021
2008-12-16 13:09psarobeStatusresolved => closed

Notes
(0008984)
svnbot   
2008-09-11 09:39   
Repository: openbravo
Revision: 7174
Author: vmromanos
Date: 2008-09-11 09:39:37 +0200 (Thu, 11 Sep 2008)

Fixed bug 0005014: Verify Languages does not work on PostgreSQL database.

---
U trunk/src-db/database/model/functions/AD_LANGUAGE_CREATE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=7174&sc=1 [^]
(0008990)
vmromanos   
2008-09-11 11:25   
Just a clarification: the error the application shows is "no existe la columna «get_uuid»" instead of "duplicate key value violates unique constraint ad_element_trl_key".

So this fix solves the "no existe la columna get_uuid" error.