Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0021229 | Openbravo ERP | A. Platform | public | 2012-07-27 10:23 | 2012-09-03 13:21 |
Reporter | mirurita | ||||
Assigned To | mtaal | ||||
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Community Appliance | |
Product Version | |||||
Target Version | 3.0MP15 | Fixed in Version | 3.0MP15 | ||
Merge Request Status | |||||
Review Assigned To | AugustoMauch | ||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0021229: Nested tabs built based on a hierarchycal structure of a same table does not work. | ||||
Description | Using the following table as example, where a project can define which is the parent (c_project_parent_id), the idea is to define a two level tab window. Both tabs are related to the same table = c_project - c_project_parent_id is defined as link to parent column and search reference. When you create a record on the lines it updates the parent record instead of creating a new one. Furthermore, you get an infinity loop on FormInitializationComponent line 1077 setSessionValues(parentRecord, parentTab); Other problems or strange thing is that the @Project.id@ session variable is null. If you check on Chrome Developers tools the request when saving a Contract record on the parent tab the @Project.id@ value is null. (see attached screenshot) But if you do the same in Multiphase Project (linked to same table, c_project) the @Project.id@ contains the uuid of the created project. CREATE TABLE c_project ( c_project_id character varying(32) NOT NULL, ad_client_id character varying(32) NOT NULL, ad_org_id character varying(32) NOT NULL, isactive character(1) NOT NULL DEFAULT 'Y'::bpchar, created timestamp without time zone NOT NULL DEFAULT now(), createdby character varying(32) NOT NULL, updated timestamp without time zone NOT NULL DEFAULT now(), updatedby character varying(32) NOT NULL, "name" character varying(60) NOT NULL, -- --OBTG:NVARCHAR-- c_project_parent_id character varying(32), CONSTRAINT c_project_key PRIMARY KEY (c_project_id), CONSTRAINT c_project_parent FOREIGN KEY (c_project_parent_id) REFERENCES c_project (c_project_id) ) | ||||
Steps To Reproduce | Scenario I 1) Prepare an workspace the following pi branch with https://code.openbravo.com/erp/devel/pi-contract [^] 2) Go to "Contract" window 3) Create a header record: + Name: parent + Search Key: parent 4) Go to Lines tab and create a child record + Name: child + Search Key: child 5) Click on Save button and realize how the parent recorg gets updated with child information. Scenario II When you fix the first problem, please check the filtering on Lines it's working. 1) Go to "Contract" window 2) Create a header record: + Name: parent + Search Key: parent 3) Go to Lines tab and create a child record + Name: child + Search Key: child 4) Create a header record: + Name: parent2 + Search Key: parent2 5) Go to Lines tab and create a child record + Name: child2 + Search Key: child2 6) Move to Contract tab and select "parent2" record, you should only see the child2 in Lines tab. | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=5476&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=5477&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=5538&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-07-27 10:23 | mirurita | New Issue | |||
2012-07-27 10:23 | mirurita | Assigned To | => iperdomo | ||
2012-07-27 10:23 | mirurita | File Added: Contract parent child error.png | |||
2012-07-27 10:23 | mirurita | Modules | => Core | ||
2012-07-27 10:23 | mirurita | OBNetwork customer | => No | ||
2012-07-27 10:24 | mirurita | File Added: @Project.id@ value is null.png | |||
2012-07-27 13:39 | iperdomo | Assigned To | iperdomo => alostale | ||
2012-07-27 15:21 | mirurita | OBNetwork customer | No => Yes | ||
2012-07-27 15:21 | mirurita | Note Added: 0050951 | |||
2012-07-27 15:21 | mirurita | Target Version | pi => 3.0MP14 | ||
2012-07-30 09:33 | AugustoMauch | Target Version | 3.0MP14 => 3.0MP15 | ||
2012-08-06 09:06 | mirurita | Priority | urgent => immediate | ||
2012-08-07 09:40 | AugustoMauch | Assigned To | alostale => AugustoMauch | ||
2012-08-07 11:53 | hgbot | Checkin | |||
2012-08-07 11:53 | hgbot | Note Added: 0051138 | |||
2012-08-07 11:53 | hgbot | Status | new => resolved | ||
2012-08-07 11:53 | hgbot | Resolution | open => fixed | ||
2012-08-07 11:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/189304df4f4c2b6d245adcd5815ade55fa604562 [^] | ||
2012-08-07 12:36 | mirurita | Note Added: 0051140 | |||
2012-08-07 12:36 | mirurita | Status | resolved => new | ||
2012-08-07 12:36 | mirurita | Resolution | fixed => open | ||
2012-08-07 13:24 | AugustoMauch | Assigned To | AugustoMauch => mtaal | ||
2012-08-21 10:03 | AugustoMauch | Closed by | => marvintm | ||
2012-08-21 10:06 | hgbot | Checkin | |||
2012-08-21 10:06 | hgbot | Note Added: 0051418 | |||
2012-08-21 10:06 | hgbot | Status | new => resolved | ||
2012-08-21 10:06 | hgbot | Resolution | open => fixed | ||
2012-08-21 10:06 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/189304df4f4c2b6d245adcd5815ade55fa604562 [^] => http://code.openbravo.com/erp/devel/pi/rev/978a3dc1d8c35872ca8158eceb750b512eb7decf [^] | ||
2012-08-29 14:03 | mirurita | Note Added: 0051631 | |||
2012-08-29 14:03 | mirurita | Status | resolved => new | ||
2012-08-29 14:03 | mirurita | Resolution | fixed => open | ||
2012-08-29 16:50 | mtaal | File Added: 21229.diff | |||
2012-08-29 16:52 | mtaal | Note Added: 0051639 | |||
2012-08-29 17:56 | mirurita | Note Added: 0051647 | |||
2012-08-29 18:00 | hgbot | Checkin | |||
2012-08-29 18:00 | hgbot | Note Added: 0051648 | |||
2012-08-29 18:00 | hgbot | Status | new => resolved | ||
2012-08-29 18:00 | hgbot | Resolution | open => fixed | ||
2012-08-29 18:00 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/978a3dc1d8c35872ca8158eceb750b512eb7decf [^] => http://code.openbravo.com/erp/devel/pi/rev/3ef959ea86a725daf82f8bfb3d6588845280bc0e [^] | ||
2012-09-01 01:03 | hudsonbot | Checkin | |||
2012-09-01 01:03 | hudsonbot | Note Added: 0051739 | |||
2012-09-03 13:21 | AugustoMauch | Closed by | marvintm => AugustoMauch | ||
2012-09-03 13:21 | AugustoMauch | Note Added: 0051768 | |||
2012-09-03 13:21 | AugustoMauch | Status | resolved => closed | ||
2012-09-03 13:21 | AugustoMauch | Fixed in Version | => 3.0MP15 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|