Notes |
|
|
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) |
|
|
|
Hi Shuehner
So using one of these 2 options , the task install.source will work ?
Thanks. |
|
|
|
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 |
|
|
|
Hi Shuehner
But if i use this option , the task export.client produce the values for the new columns on the xml files ? |
|