Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045935 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 02. Master data management | major | always | 2021-02-22 20:21 | 2021-03-22 07:50 | |||
Reporter | lbressan | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | PR20Q4.1 | SCM revision | ||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | Gold | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 21461 | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2020-01-21 | |||||||
Regression introduced in release | PR20Q3 | |||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/26f6e9bb9fa009b1f9707ed4e64ba4a7f182497c [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045935: Errors when migrating brands to product characteristics when upgrading to 20Q4.1 | |||||||
Description | When you want to migrate to the latest version of OB 20Q4.1, the Marks migration module script fails: "ConvertBrandIntoCharacteristic.java". Note that the environment does not have the "org.openbravo.retail.sampledata" module installed. Then the error message is as follows: "[java] 52337 [main] ERROR org.openbravo.retail.posterminal.modulescript. ConvertBrandIntoCharacteristicData - SQL error in query: INSERT INTO m_characteristic( m_characteristic_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, description, ad_tree_id, isvariant, isexplodeconf, em_obpos_filteronwebpos, em_obpos_useonwebpos) VALUES (? , ?,'0', 'Y', now(), '100', now(), '100', 'Brand', null, '899D83A7B7E24F57911A91AE82DCA496','N', 'Y', 'Y', 'Y', 'Y') :org.postgresql.util.PSQLException: ERROR: insert or update on table "m_characteristic" violates foreign key "m_product_tree" [java] Detail: key (ad_tree_id)=(899D83A7B7E24F57911A91AE82DCA496) is not present in table "ad_tree". java] 52340 [main] ERROR org.openbravo.retail.posterminal.modulescript.ConvertBrandIntoCharacteristic - Errors converting brand into characteristic". This is because the (ad_tree_id)=899D83A7B7E24F57911A91AE82DCA496) is inserted in the database when installing the module "org.openbravo.retail.sampledata" which is not a mandatory module when installing Retail in an environment. Also note that if an environment does not have retail when upgrading to the new version of Openbravo, the brand window is no longer available, so you will not be able to add new brands and you will not be able to migrate brands to product characteristics, because the module script belongs to the retail module "org.openbravo.retail.posterminal". | |||||||
Steps To Reproduce | 1. Note that you do not have the "org.openbravo.retail.sampledata" module installed. 2. Upgrading an OB environment to the latest version: note that you do not have the "org.openbravo.retail.sampledata" module installed. 3. Try to do the database update and the compile. Expected behavior: a. The brand update module script should be outside of the retail module. b. The data used in the module script such as the ad_tree_id should be in a module that is always installed in the environment. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
|||||||||||||||||||||||||||||||||
|
![]() |
|
(0126771) lbressan (viewer) 2021-03-18 14:35 |
Hi Any update about this? Regards |
(0126803) hgbot (developer) 2021-03-22 07:22 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/348 [^] |
(0126805) hgbot (developer) 2021-03-22 07:50 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/348 [^] |
(0126806) hgbot (developer) 2021-03-22 07:50 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 32f515e63812af97dac9b0a6671a5b0cbfa3977b Author: Ranjith S R <ranjith@qualiantech.com> Date: 2021-03-22T11:51:35+05:30 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/32f515e63812af97dac9b0a6671a5b0cbfa3977b [^] Fixed ISSUE-45935: Updated Modulescript ConvertBrandIntoCharacteristic * Update script ConvertBrandIntoCharacteristic to create ad_tree for brand characteristics --- M build/classes/org/openbravo/retail/posterminal/modulescript/ConvertBrandIntoCharacteristic.class M build/classes/org/openbravo/retail/posterminal/modulescript/ConvertBrandIntoCharacteristicData.class M src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/ConvertBrandIntoCharacteristic.java M src-util/modulescript/src/org/openbravo/retail/posterminal/modulescript/ConvertBrandIntoCharacteristic_data.xsql --- |
![]() |
|||
Date Modified | Username | Field | Change |
2021-02-22 20:21 | lbressan | New Issue | |
2021-02-22 20:21 | lbressan | Assigned To | => Triage Finance |
2021-02-22 20:21 | lbressan | File Added: grep.png | |
2021-02-22 20:21 | lbressan | OBNetwork customer | => OBPS |
2021-02-22 20:21 | lbressan | Modules | => Core |
2021-02-22 20:21 | lbressan | Support ticket | => 21461 |
2021-02-22 20:21 | lbressan | Resolution time | => 1615158000 |
2021-02-22 20:21 | lbressan | Triggers an Emergency Pack | => No |
2021-02-23 09:33 | dmiguelez | Resolution time | 1615158000 => 1615762800 |
2021-02-23 09:33 | dmiguelez | Description Updated | View Revisions |
2021-02-23 09:42 | Practics | Issue Monitored: Practics | |
2021-02-23 10:34 | dmiguelez | Assigned To | Triage Finance => Retail |
2021-02-23 13:59 | lbressan | OBNetwork customer | OBPS => Gold |
2021-03-08 10:11 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-03-17 06:06 | ranjith_qualiantech_com | File Added: 45935 posterminal.diff | |
2021-03-18 14:35 | lbressan | Note Added: 0126771 | |
2021-03-22 06:58 | marvintm | Status | new => scheduled |
2021-03-22 07:03 | marvintm | Regression level | => Production - Confirmed Stable |
2021-03-22 07:03 | marvintm | Regression date | => 2020-01-21 |
2021-03-22 07:03 | marvintm | Regression introduced in release | => PR20Q3 |
2021-03-22 07:03 | marvintm | Regression introduced by commit | => https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/26f6e9bb9fa009b1f9707ed4e64ba4a7f182497c [^] |
2021-03-22 07:22 | hgbot | Merge Request Status | => open |
2021-03-22 07:22 | hgbot | Note Added: 0126803 | |
2021-03-22 07:50 | hgbot | Merge Request Status | open => approved |
2021-03-22 07:50 | hgbot | Resolution | open => fixed |
2021-03-22 07:50 | hgbot | Status | scheduled => closed |
2021-03-22 07:50 | hgbot | Note Added: 0126805 | |
2021-03-22 07:50 | hgbot | Fixed in Version | => RR21Q2 |
2021-03-22 07:50 | hgbot | Note Added: 0126806 | |
2023-10-06 22:11 | axelmercado | Relationship added | related to 0053615 |
Copyright © 2000 - 2009 MantisBT Group |