Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008630Openbravo ERP00. Application dictionarypublic2009-04-18 11:302009-04-24 00:00
rentidee 
alostale 
normalminorhave not tried
closedduplicate 
20rPath Linux
2.50alpha-r11 
 
Core
No
0008630: cannot switch module in tables and columns
added new column to c_order table named the column according to the howto "create a new table 2.5". named the column EM_rent_rent_rentcontract_id as varchar(32) The column is supposed to be a relation to a table I created with the name rent_rentcontract primary key rent_rentcontract_id in a module named rent. That did work. The table c_order seemed to recognize the relation between the tables.

But: when I try to switch the module of the column from core to rent (my module, because the column belongs not to base) I get an error stating

"names must start with the table prefix". The howto says:

Let's extend the existent HR_SALARY adding a new ValidTo column in a different module. Let's suppose that we already have a module and its DBPrefix is HR2'. In this case the name of the column must be like EM_HR2_VALIDTO, EM stands for External Module, HR2 is the external module's DBPrefix, and finally we add the desired name for the column.
Adding a new column to an existing core table with a name starting with EM_ should do the trick
change the constraint causing the error message or change the howto. Maybe EM is not required for adding columns to an existing table.
Modularity
duplicate of defect 0007623pi closed alostale Columnname check is not following the modularity rules 
Issue History
2009-04-18 11:30rentideeNew Issue
2009-04-18 11:30rentideeAssigned To => rafaroda
2009-04-22 20:18psarobeTag Attached: Modularity
2009-04-22 20:18psarobeAssigned Torafaroda => alostale
2009-04-22 20:18psarobeStatusnew => scheduled
2009-04-23 12:25alostaleRegression testing => No
2009-04-23 12:25alostaleRelationship addedduplicate of 0007623
2009-04-23 12:25alostaleStatusscheduled => closed
2009-04-23 12:25alostaleDuplicate ID0 => 7623
2009-04-23 12:25alostaleResolutionopen => duplicate
2009-04-24 00:00anonymoussf_bug_id0 => 2779922

There are no notes attached to this issue.