Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017330Openbravo ERPA. Platformpublic2011-05-24 11:402011-06-03 10:14
marvintm 
alostale 
normalmajorhave not tried
closedfixed 
5
 
3.0MP0 
Core
No
0017330: Preferences do not work for check columns
Preferences can be defined at column level in a window. This means that you can basically define a default value for a specific column for a specific window via a preference.

However, this doesn't work in 3.0 for check columns; that is, when a preference is defined for a check (boolean) column in a 3.0 window, when a record is created, this preference is not applied for that field.
- Define a preference for the isEmployee column in Business Partner table (value Y)
- Create a field for that column in the Business Partner header.
- Restart tomcat
- Verify that when a business partner is created, the isEmployee column is not set to "yes".
The problem is that when a column doesn't have a default, the UIDefinition classes are automatically setting it to "false". This is correct only in the case that the super.getFieldProperties() method didn't return a value for the column, so it needs to be changed.
No tags attached.
Issue History
2011-05-24 11:40marvintmNew Issue
2011-05-24 11:40marvintmAssigned To => alostale
2011-05-24 11:40marvintmModules => Core
2011-05-24 11:40marvintmTarget Version => 3.0MP0
2011-05-24 11:47hgbotCheckin
2011-05-24 11:47hgbotNote Added: 0037366
2011-05-24 11:47hgbotStatusnew => resolved
2011-05-24 11:47hgbotResolutionopen => fixed
2011-05-24 11:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f9c85dd122b0825a5efd9982f6adf7edfd7856f9 [^]
2011-05-26 07:46hudsonbotCheckin
2011-05-26 07:46hudsonbotNote Added: 0037539
2011-06-03 10:14iperdomoNote Added: 0037953
2011-06-03 10:14iperdomoStatusresolved => closed

Notes
(0037366)
hgbot   
2011-05-24 11:47   
Repository: erp/devel/pi
Changeset: f9c85dd122b0825a5efd9982f6adf7edfd7856f9
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 24 11:46:51 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f9c85dd122b0825a5efd9982f6adf7edfd7856f9 [^]

Fixed issue 17330. Preferences will be taken into account in boolean columns.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/BooleanUIDefinition.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/YesNoUIDefinition.java
---
(0037539)
hudsonbot   
2011-05-26 07:46   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/728387046be6 [^]

Maturity status: Test
(0037953)
iperdomo   
2011-06-03 10:14   
Tested in pi @ rev 3723e0cd3861

I set up a new attribute for the IsDiscountPrinted setting the value to Y
And visible for the Sales Order window.