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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007912
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 00. Application dictionarymajoralways2009-03-03 11:172009-04-22 00:01
ReporternetworkbView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version2.50
StatusclosedFix in branchFixed in SCM revisionfda1398e8788
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007912: Default values configured in some columns are not loaded when creating a new record

DescriptionSome default values set in columns of the AD are not loaded when creating a new record.
Steps To Reproduce1. Logged as System Administrator, set a default value of I in column InvoiceRule of table C_BPartner.
2. Log out as System Administrator and log into the application as Openbravo Admin.
3. Create a new Business Partner, save and navigate to Customer tab.
4. Check now that neither field Invoice Terms default value (Immediate) is loaded nor other fields in which a default value has been configured.
5. Click on new record, and now the default values are loaded, but record cannot be saved now.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0007970 closedalostale Default values configured in some columns are not loaded when creating a new record 

-  Notes
(0014291)
rafaroda (developer)
2009-03-03 12:21

I disagree that this is a bug.

1) Please notice that, when entering Customer tab, the record is not created, it is already there. This happens because Customer tab is based on C_BPartner table. It is not a child table C_Customer.

2) If you create a new record, default values are correctly set in the corresponding fields. This confirms that the functionality of loading default values is working properly.

3) This new record can not be saved. This is normal since you can not record more than one Customer information (Invoice Terms, Invoice Schedule, ...) per Business Partner.

Please try to set default values in columns shown in a "normal" tab and let us know if it fails.
(0014381)
networkb (developer)
2009-03-04 12:36

I also disagree with you. For me it's clearly a bug.

Default values in a "normal" tab work fine. There's is no discussion about that, I was just talking about Customer tab (or other similar tabs)

1) For the customer, it should be transparent whether it is a child tab or not. This is not an explanation to him. Default values are configured, and the user does not see them, so he has to fill in again...

2) Creating a new record and checking that default values appear is useless for us just confirm the bug, if it cannot be stored as you confirm in point 3).
(0014434)
alostale (manager)
2009-03-05 12:33

Default values can be defined at database column level or in application dictionary.

When a default value is defined in application dictionary is only taken into account in case there is a field in the tab for the column with the default value, other case is not used and it is used the database's one in case it is defined. This is the current Openbravo ERP behavior and it is not going to be changed because it could affect to the expected behavior in some parts of the application.

To fix this bug I'm including in the Business Partner main tab all the fields as hidden which column has a default value but did not exist in the tab. They are:

InvoiceRule
Isworker
Invoicegrouping

- Issue History
Date Modified Username Field Change
2009-03-03 11:17 networkb New Issue
2009-03-03 11:17 networkb Assigned To => rafaroda
2009-03-03 11:17 networkb Regression testing => No
2009-03-03 12:21 rafaroda Note Added: 0014291
2009-03-03 12:21 rafaroda Priority normal => immediate
2009-03-03 12:21 rafaroda Status new => feedback
2009-03-03 12:21 rafaroda Summary Default values configured in some tables are not loaded when creating a new record => Default values configured in some columns are not loaded when creating a new record
2009-03-03 12:21 rafaroda Description Updated
2009-03-03 12:21 rafaroda Proposed Solution updated
2009-03-04 12:36 networkb Note Added: 0014381
2009-03-04 16:22 rafaroda Status feedback => new
2009-03-04 16:43 rafaroda Assigned To rafaroda => alostale
2009-03-04 16:43 rafaroda Status new => acknowledged
2009-03-05 11:57 rafaroda Status acknowledged => scheduled
2009-03-05 11:57 rafaroda fix_in_branch => pi
2009-03-05 12:33 alostale Note Added: 0014434
2009-03-05 17:53 jpabloae Status scheduled => resolved
2009-03-05 17:53 jpabloae Fixed in Version => pi
2009-03-05 17:53 jpabloae Fixed in SCM revision => https://code.openbravo.com/erp/d [^]
2009-03-05 17:53 jpabloae Resolution open => fixed
2009-03-05 17:53 jpabloae Fixed in SCM revision https://code.openbravo.com/erp/d [^] => https://code.openbravo.com/erp/devel/pi/rev/fda1398e8788 [^]
2009-03-05 17:53 jpabloae fix_in_branch pi =>
2009-04-21 10:33 psarobe Status resolved => closed
2009-04-22 00:01 anonymous sf_bug_id 0 => 2778040


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker