Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004501Openbravo ERPA. Platformpublic2008-07-24 10:262009-04-21 11:05
rafaroda 
dbaz 
normalminoralways
closedfixed 
20Ubuntu 7.10
pi 
2.40 
Core
No
0004501: Read-only logic do not work properly with combos and callouts
While setting a read-only logic to a combobox, it works well.

But if this combo has to be changed with a callout, the value is changed correctly but then the old value is reset (combo reloads itself to the old value).
1) Set a read-only logic for a Currency combo column (Application Dictionary || Tables and Columns || Table >> Column).
2) Set a callout that changes this combo (for instance, changes the Currency value when selecting a Price List).

If you debug the execution of the callout with Firebug you notice that:
* When the combo is not read-only, in line 2583 of 'utils.js' file (/web/js/utils.js) the combo has the correct value and obj.onchange() does not make any action.
* When the combo is read-only (read-only logic working), in line 2583 of 'utils.js' file (/web/js/utils.js) the combo has the correct value but obj.onchange() executes function selectCombo (line 1890 of 'utils.js') that resets the value to its old value.
No tags attached.
Issue History
2008-07-24 10:26rafarodaNew Issue
2008-07-24 10:26rafarodaAssigned To => cromero
2008-07-24 10:26rafarodasf_bug_id0 => 2026523
2008-07-24 10:29rafarodaProposed Solution updated
2008-07-29 17:52dbazAssigned Tocromero => dbaz
2008-07-29 17:52dbazStatusnew => scheduled
2008-07-29 17:52dbazTarget Version => 2.40
2008-07-29 17:55svnbotCheckin
2008-07-29 17:55svnbotNote Added: 0008426
2008-07-29 17:55svnbotStatusscheduled => resolved
2008-07-29 17:55svnbotResolutionopen => fixed
2008-07-29 17:55svnbotsvn_revision => 6033
2009-04-21 11:05psarobeStatusresolved => closed

Notes
(0008426)
svnbot   
2008-07-29 17:55   
Repository: openbravo
Revision: 6033
Author: dbaz
Date: 2008-07-29 17:55:36 +0200 (Tue, 29 Jul 2008)

Fixed bug 0004501 Now a combo with a callout associated and readonly logic related runs ok

---
U trunk/web/js/utils.js
---

https://dev.openbravo.com/websvn/openbravo/?rev=6033&sc=1 [^]