Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018657Openbravo ERP04. Warehouse managementpublic2011-09-30 12:292011-12-01 18:11
mirurita 
jecharri 
normalminoralways
closedfixed 
5
pi 
3.0MP6 
Core
No
0018657: Not possible to manage stock of a product if it already has stock without an attributeset and then you assign an attributeset
- Product A without attribute set defined
- Create an inventory movement of that product A.
- Modify the product A and assign a new attribute set.
- Try to create a good shipment for stocked product a (without attribute set)

It is not possible.
1) Create a new Attribute
Org: *
Name: Color

2) Create new Attribute Values for Color
- Red
- Green
- Blue

3) Create a new Attribute Set and assign Color Attribute

4) Create a new product.
Name: chair
Org: *
Important!!: do not assign any Attribute Set

5) In Price tab enter a price list version

6) Create a new Physical Inventory window for chair of 100 quantity and process (Process Inventory Count).

7) Go to Product window and select previously created attribute set to chair product.
Attribute Set: Color
Use Attribute Set Value As: Default
Attribute Set Value: Blue

8) Try to create a new physical inventory for chair product and do not select any attribute set.

9) If you try with a good shipments you get the same error (see attached screenshot)

Realize when you cannot use anymore the chair product without attribute set.

Error: In line 10 the product has no attribute set
When assigning an attributeset to a product, there should be a check that at least alerts you that there are already stock transactions with this product (without attribute set).
No tags attached.
depends on backport 00191882.50MP37 closed jecharri Not possible to manage stock of a product if it already has stock without an attributeset and then you assign an attributeset 
png Product_attributeset_stock.png (62,435) 2011-09-30 12:29
https://issues.openbravo.com/file_download.php?file_id=4609&type=bug
png
Issue History
2011-09-30 12:29miruritaNew Issue
2011-09-30 12:29miruritaAssigned To => jonalegriaesarte
2011-09-30 12:29miruritaFile Added: Product_attributeset_stock.png
2011-09-30 12:29miruritaModules => Core
2011-09-30 12:29miruritaResolution time => 1323730800
2011-10-17 19:47jonalegriaesarteTarget Version => 3.0MP6
2011-11-17 16:08jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2011-11-25 14:18jecharriStatusnew => scheduled
2011-11-25 14:18jecharrifix_in_branch => pi
2011-11-25 14:22hgbotCheckin
2011-11-25 14:22hgbotNote Added: 0043336
2011-11-25 14:22hgbotStatusscheduled => resolved
2011-11-25 14:22hgbotResolutionopen => fixed
2011-11-25 14:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3a195c4d7718b98face09fe51176ada030388f35 [^]
2011-11-30 12:37hudsonbotCheckin
2011-11-30 12:37hudsonbotNote Added: 0043560
2011-12-01 18:11miruritaNote Added: 0043659
2011-12-01 18:11miruritaStatusresolved => closed

Notes
(0043336)
hgbot   
2011-11-25 14:22   
Repository: erp/devel/pi
Changeset: 3a195c4d7718b98face09fe51176ada030388f35
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Nov 25 14:20:34 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3a195c4d7718b98face09fe51176ada030388f35 [^]

Fixes issue 18657: Not possible to manage stock of a product
if it already has stock without an attributeset and then you assign an attributeset

---
M src-db/database/model/triggers/M_PRODUCT_TRG.xml
---
(0043560)
hudsonbot   
2011-11-30 12:37   
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/01809c7b3135 [^]

Maturity status: Test
(0043659)
mirurita   
2011-12-01 18:11   
Verified on revision 14787:d63e0b9b9bcc