Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028698Openbravo ERP02. Master data managementpublic2015-01-20 16:152015-02-04 20:35
jecharri 
reinaldoguerra 
urgentmajoralways
closedfixed 
5
 
pi 
umartirena
Google Chrome
Core
No
0028698: Not possible to remove variants immediately after creation process
Not possible to remove variants immediately after creation process
-Create a variant product characteristic
-Create a generic product
-Assign created characteristic
-Create variants
-Try to remove one variant

You will receive an error
You cannot delete this record. This characteristic has a value related.

It should be able to delete when the variant has not been used
No tags attached.
Issue History
2015-01-20 16:15jecharriNew Issue
2015-01-20 16:15jecharriAssigned To => dmiguelez
2015-01-20 16:15jecharriWeb browser => Google Chrome
2015-01-20 16:15jecharriModules => Core
2015-01-20 16:15jecharriResolution time => 1424732400
2015-01-20 16:15jecharriTriggers an Emergency Pack => No
2015-01-30 20:37reinaldoguerraWeb browserGoogle Chrome => Google Chrome
2015-01-30 20:37reinaldoguerraAssigned Todmiguelez => reinaldoguerra
2015-01-30 20:37reinaldoguerraStatusnew => scheduled
2015-02-02 15:08reinaldoguerraNote Added: 0073988
2015-02-02 19:02hgbotCheckin
2015-02-02 19:02hgbotNote Added: 0074005
2015-02-02 19:02hgbotStatusscheduled => resolved
2015-02-02 19:02hgbotResolutionopen => fixed
2015-02-02 19:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a0bbb21686cf53773702368a8d67d1db1fb732a6 [^]
2015-02-02 19:03umartirenaReview Assigned To => umartirena
2015-02-02 19:03umartirenaNote Added: 0074006
2015-02-02 19:03umartirenaStatusresolved => closed
2015-02-02 19:03umartirenaFixed in Version => pi
2015-02-04 20:35hudsonbotCheckin
2015-02-04 20:35hudsonbotNote Added: 0074210

Notes
(0073988)
reinaldoguerra   
2015-02-02 15:08   
Test plan used:
1- Login into Openbravo ERP.
2- Go to Product Characteristic window
3- Create a new header, for example: "Color". Check it as variant
4- Go to value tab and create two records (colors) for example: Red and Blue
5- Go to product window and create a new one, set it as generic (check Is generic flag)
6- Set prices and a price list version in the Price tab
7- Go to characteristic tab and create a new record, the characteristic created before will be selected. Save it
8- Click on Create Variants button and execute the process. Two new products will be created as variants of the first one.
9- As none of this new products are yet used, it is possible now remove them successfuly.
(0074005)
hgbot   
2015-02-02 19:02   
Repository: erp/devel/pi
Changeset: a0bbb21686cf53773702368a8d67d1db1fb732a6
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Fri Jan 30 19:43:37 2015 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/a0bbb21686cf53773702368a8d67d1db1fb732a6 [^]

Fixed bug 28698: Not possible to remove variants, right after creation process.

The validation for existent values associated with product's characteristics was removed to make possible to delete a product variant. So now it is possible to delete the product (variant of another product) unless this product is already in use. In this case the standard message will be shown.

---
M src/org/openbravo/event/ProductCharacteristicEventHandler.java
---
(0074006)
umartirena   
2015-02-02 19:03   
Code Review + Testing OK
(0074210)
hudsonbot   
2015-02-04 20:35   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f36c91d0ad63 [^]
Maturity status: Test