Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027941Openbravo ERP07. Sales managementpublic2014-10-22 00:482014-12-30 23:27
jecharri 
fsoto82 
urgentmajoralways
closedfixed 
5
 
 
pramakrishnan
Google Chrome
Core
No
0027941: Forbid to delete a characteristics if the product has a value
Forbid to delete a characteristics if the product has a value. The problem is that if you delete the characteristic the product keeps with the value and it is impossible to delete the characteristic or update the value in the product.
-Define a product characteristics. Not variant
-Assign a value
-Go to product window
-Choose a product and assign a characteristic and a value
-Delete the characteristic

verify that you can not delete the value in window "Product characteristic" because still are related records and also you can not update the value in the product until you insert again the characteristic.
No tags attached.
Issue History
2014-10-22 00:48jecharriNew Issue
2014-10-22 00:48jecharriAssigned To => dmiguelez
2014-10-22 00:48jecharriWeb browser => Google Chrome
2014-10-22 00:48jecharriModules => Core
2014-10-22 00:48jecharriResolution time => 1416783600
2014-10-22 00:48jecharriTriggers an Emergency Pack => No
2014-10-31 13:09dmitry_mezentsevAssigned Todmiguelez => Sandrahuguet
2014-11-10 04:47fsoto82Statusnew => scheduled
2014-11-10 04:47fsoto82Assigned ToSandrahuguet => fsoto82
2014-11-10 04:47fsoto82fix_in_branch => pi
2014-11-10 04:57fsoto82Note Added: 0071508
2014-12-15 11:04hgbotCheckin
2014-12-15 11:04hgbotNote Added: 0072502
2014-12-15 11:04hgbotStatusscheduled => resolved
2014-12-15 11:04hgbotResolutionopen => fixed
2014-12-15 11:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fa79e561d3c6700e87cd10158b9caaf257e516ef [^]
2014-12-15 11:05pramakrishnanReview Assigned To => pramakrishnan
2014-12-15 11:05pramakrishnanNote Added: 0072503
2014-12-15 11:05pramakrishnanStatusresolved => closed
2014-12-30 23:27hudsonbotCheckin
2014-12-30 23:27hudsonbotNote Added: 0073218

Notes
(0071508)
fsoto82   
2014-11-10 04:57   
- Create a Poduct Characteristic (not variant)
- Go to Product and select one
- Add a characteristic
- Set a value for that characteristic (Update Characteristics button)

Case 1
- Try to remove the Characteristic from the product
Now you can't remove characteristics from a product if has a value associated.

Case 2
- Try to change the characteristic
Now you can't change the characteristic if has a value associated.
(0072502)
hgbot   
2014-12-15 11:04   
Repository: erp/devel/pi
Changeset: fa79e561d3c6700e87cd10158b9caaf257e516ef
Author: Fernando Soto <fernando.soto <at> peoplewalking.com>
Date: Fri Dec 12 09:23:03 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/fa79e561d3c6700e87cd10158b9caaf257e516ef [^]

Fixed bug 27941: Forbid to delete a characteristics if the product has a value

Modified ProductCharacteristicEventHandler to forbid deletion of an characteristic of product that has a value associated.
Added error Message 'DeleteProductChWithValue' and 'UpdateProductChWithValue'

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/event/ProductCharacteristicEventHandler.java
---
(0072503)
pramakrishnan   
2014-12-15 11:05   
Code Review + Testing - OK.
(0073218)
hudsonbot   
2014-12-30 23:27   
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/6525fe229e06 [^]
Maturity status: Test