Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0013470 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
feature request | [Openbravo ERP] J. Demo data | minor | always | 2010-05-28 11:39 | 2011-07-20 18:12 | |||||||
Reporter | FrancescoFinamore | View Status | public | |||||||||
Assigned To | jonalegriaesarte | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||||||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||||||
Product Version | 2.50MP8 | SCM revision | ||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0013470: Modularize Sample Data | |||||||||||
Description | I need to customize the Sample Data , for example i have a module an add a column em_xx_name to c_invoice with condition em_xx_name is not null; with smallbazaar.xml this condition isn't satisfied so when i launch install.source the task fails. It should be nice have a procedure to customize the sampledata in smallbazaar.xml with data that comes from a module. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0027817) shuehner (administrator) 2010-05-28 18:10 |
Hi Francesco, this change (adding not null fields) when done in ERP-core would not be allowed explicitely because of the failure with existing data (independent if its sampledata or possibly existing customer data). However there are two features available which can perhaps help you. First if you define a default-value for your field, it will also be used to populate the new field for existing rows (note: not sure if that is already be present in MP8) Second feature: there's a special default value which can be defined per column called: onCreateDefault, which is especially used only in the update to populate your not-null column, and not used later for normal new rows) Using one of those (if possible) would just make your new column work with any possibly existing data (including smallbazaar) |
(0027834) FrancescoFinamore (reporter) 2010-05-31 16:24 |
Hi Shuehner So using one of these 2 options , the task install.source will work ? Thanks. |
(0027837) shuehner (administrator) 2010-05-31 17:02 |
Hi, yes it should. At openbravo we some automated test which enforces each new mandatory column to have one of those option to be accepted. Please check my note the onCreateDefault should work on any version, the use of the normal default for onCreateDefault was only added recently. Stefan |
(0027957) FrancescoFinamore (reporter) 2010-06-04 13:45 |
Hi Shuehner But if i use this option , the task export.client produce the values for the new columns on the xml files ? |
Issue History | |||
Date Modified | Username | Field | Change |
2010-05-28 11:39 | FrancescoFinamore | New Issue | |
2010-05-28 11:39 | FrancescoFinamore | Assigned To | => adrianromero |
2010-05-28 18:10 | shuehner | Note Added: 0027817 | |
2010-05-31 16:24 | FrancescoFinamore | Note Added: 0027834 | |
2010-05-31 17:02 | shuehner | Note Added: 0027837 | |
2010-06-04 13:45 | FrancescoFinamore | Note Added: 0027957 | |
2011-06-03 10:59 | dalsasua | Assigned To | adrianromero => dalsasua |
2011-07-20 18:12 | dalsasua | Assigned To | dalsasua => jonalegriaesarte |
Copyright © 2000 - 2009 MantisBT Group |