Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0017330
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2011-05-24 11:402011-06-03 10:14
ReportermarvintmView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionf9c85dd122b0
ProjectionnoneETAnoneTarget Version3.0MP0
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0017330: Preferences do not work for check columns

DescriptionPreferences 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.
Steps To Reproduce- 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".
Proposed SolutionThe 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0037366)
hgbot (developer)
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 (developer)
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 (reporter)
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.

- Issue History
Date Modified Username Field Change
2011-05-24 11:40 marvintm New Issue
2011-05-24 11:40 marvintm Assigned To => alostale
2011-05-24 11:40 marvintm Modules => Core
2011-05-24 11:40 marvintm Target Version => 3.0MP0
2011-05-24 11:47 hgbot Checkin
2011-05-24 11:47 hgbot Note Added: 0037366
2011-05-24 11:47 hgbot Status new => resolved
2011-05-24 11:47 hgbot Resolution open => fixed
2011-05-24 11:47 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f9c85dd122b0825a5efd9982f6adf7edfd7856f9 [^]
2011-05-26 07:46 hudsonbot Checkin
2011-05-26 07:46 hudsonbot Note Added: 0037539
2011-06-03 10:14 iperdomo Note Added: 0037953
2011-06-03 10:14 iperdomo Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker