Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019188Openbravo ERP04. Warehouse managementpublic2011-09-30 12:292011-12-15 11:49
mirurita 
jecharri 
normalminoralways
closedfixed 
5
2.50MP36 
2.50MP37 
Core
No
0019188: 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.
blocks defect 00186573.0MP6 closed jecharri Not possible to manage stock of a product if it already has stock without an attributeset and then you assign an attributeset 
Issue History
2011-11-25 14:18jecharriTypedefect => backport
2011-11-25 14:18jecharrifix_in_branch => 2.50
2011-11-25 14:19jecharriversionpi => 2.50MP36
2011-11-25 14:19jecharriTarget Version3.0MP6 => 2.50MP37
2011-11-25 14:21hgbotCheckin
2011-11-25 14:21hgbotNote Added: 0043335
2011-11-25 14:21hgbotStatusscheduled => resolved
2011-11-25 14:21hgbotResolutionopen => fixed
2011-11-25 14:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/4428f92d4fb5f94313c9d610a34c2364c99480b7 [^]
2011-12-15 11:48ioritzCiaNote Added: 0043893
2011-12-15 11:49ioritzCiaStatusresolved => closed

Notes
(0043335)
hgbot   
2011-11-25 14:21   
Repository: erp/stable/2.50
Changeset: 4428f92d4fb5f94313c9d610a34c2364c99480b7
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Nov 25 14:21:17 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/4428f92d4fb5f94313c9d610a34c2364c99480b7 [^]

Fixes issue 19188: 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
---
(0043893)
ioritzCia   
2011-12-15 11:48   
Verified