Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021872Openbravo ERP05. Production managementpublic2012-10-05 13:082012-10-11 10:23
maite 
ioritzCia 
urgentmajoralways
closedfixed 
5
 
 
Core
No
0021872: Problem when working with "Copy From Attribute" and you P+ has attribute auto-numbering defined
Problem when working with "Copy From Attribute" and you P+ has attribute auto-numbering defined
1. Define Attribute Set as Lot and with Lot Control number
2. Define Product0 with attribute Lote and checked as Production.
3. Define Product1 with attribute Lote and checked as Production. Access Manufacturing tab and set storage bin
4. Define Activity
5. Define Process Plan, add Version, add Operation checking "Create Standards" option. Add IO Products:
  5.1. Product 0 as P-, qty=1
  5.2. Product 1 as P+, qty=1. Access "Copy Attribute" tab and select "product 1", "is special attribute" and "Lot" options
6. Create Work Requirement and run "Process Work Requirement"
7. Go to Work Effort created and navigate until Products tab. Realize that Attribute for P- and P+ are different when it should be the same
In CreateStandards.java, modify line 257 to call "setAttributeInstance" method as follows:
OBError createAttributeInstanceError = attSetInstanceTo.setAttributeInstance(conn, vars,
              opProduct.getProduct().getAttributeSet().getId(), "", "", "Y", opProduct.getProduct()
                  .getId(), attValues);
No tags attached.
Issue History
2012-10-05 13:08maiteNew Issue
2012-10-05 13:08maiteAssigned To => dmiguelez
2012-10-05 13:08maiteModules => Core
2012-10-05 13:14dmiguelezAssigned Todmiguelez => jonalegriaesarte
2012-10-08 11:44jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-10-10 09:26hgbotCheckin
2012-10-10 09:26hgbotNote Added: 0053186
2012-10-10 09:26hgbotStatusnew => resolved
2012-10-10 09:26hgbotResolutionopen => fixed
2012-10-10 09:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/dd07b90a28d2bb2753161df69a0e38bdc491425a [^]
2012-10-11 07:51hudsonbotCheckin
2012-10-11 07:51hudsonbotNote Added: 0053286
2012-10-11 10:23maiteNote Added: 0053301
2012-10-11 10:23maiteStatusresolved => closed

Notes
(0053186)
hgbot   
2012-10-10 09:26   
Repository: erp/devel/pi
Changeset: dd07b90a28d2bb2753161df69a0e38bdc491425a
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Tue Oct 09 13:11:51 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/dd07b90a28d2bb2753161df69a0e38bdc491425a [^]

Fixes issue 21872: Problem when working with 'Copy From Attribute'
and your P+ has attribute auto-numbering defined.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateStandards.java
---
(0053286)
hudsonbot   
2012-10-11 07:51   
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/63dfc135f2a1 [^]

Maturity status: Test
(0053301)
maite   
2012-10-11 10:23   
verified