Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2011-12-09 14:002011-12-30 14:02
ReporterpsarobeView Statuspublic 
Assigned Tojonalegriaesarte 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionbfd4e3288242
ProjectionnoneETAnoneTarget Version3.0MP7
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0019272: M_attributesetinstance is taking the org from the organization you have logged in

DescriptionNot sure if it happens in all cases. But the first time you assign an attribute value to a product using the product window it takes the organization from the organization you are logged in
Steps To Reproduce1. Login as Openbravo/openbravo
2. Verify that this are the credentials (very important for the issue):
  2.1 Role: F&B international group admin
  2.2 Organization: F&B US, Inc.
3. Go to Attribute window and click new
  3.1 Organization: *
  3.2 Name: Color
  3.3 Save
4. Move to its child tab. Click new
  4.1 Search key: blue
  4.2 Name: Blue
  4.3 Save
5. Go to Attribute Set window
6. Click new:
  6.1 Organization: *
  6.2 Name: Color
  6.3 Save
7. Move to it child tab and click new
8. Select Color and save
9. Go to Product window and click new:
  9.1 Organization: F&B EspaƱa, S.A (Very important)
  9.2 Search key: sirof
  9.3 Name: Sirof
  9.4 Select attribute Set: Color
  9.5 Click save
  9.6 Click Attribute Set Value: Select Blue and click OK
NOTICE that the system has created a record in the M_ATTRIBUTESETINSTANCE table with ad_org_id='B9C7088AB859483A9B1FB342AC2BE17A' (F&B US, Inc) and this is wrong. It seems the system is not able to know which is the org to use and takes it from the session (remember F&B US, Inc)
  9.7 Click Save
NOTICE the system is not able to save the record because of that giving this error text: "Saving failed. With your current role this action is not allowed."

SOLUTION: The system has to take the organization from the M_ATTRIBUTESET where this attribute belongs
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0019161 newdmiguelez In product window assign only AttributesSet from the same org or parents should be permitted 
blocks defect 0019273 closedAugustoMauch Different criteria when saving records that contains entities that don't belong to the org tree 

-  Notes
mtaal (developer)
2011-12-13 15:43

This also happens in the classic code, see this line in the AttributeSetInstance java class:

          AttributeSetInstanceData.insertHeader(conn, this, strInstance, vars.getClient(),
              vars.getOrg(), vars.getUser(), data[0].mAttributesetId, serno, lot, guaranteedate,
              "", locked, lockDescription);

vars.getOrg() is done, which returns the logged in organization.

Testing in the classic window shows that this also occurs in classic mode. I guess it is a problem of the application code in AttributeSetInstance.
hgbot (developer)
2011-12-29 13:38

Repository: erp/devel/pi
Changeset: bfd4e3288242c0f50c4e4e21f01f12dc7293e065
Author: rafaeldemiguel <rdm <at>>
Date: Wed Dec 21 11:57:33 2011 +0100
URL: [^]

Fixed issue 0019272 M_attributesetinstance is taking the org from the organization you have logged in

M src/org/openbravo/erpCommon/utility/
VictorVillar (developer)
2011-12-30 13:44

hudsonbot (developer)
2011-12-30 14:02

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2011-12-09 14:00 psarobe New Issue
2011-12-09 14:00 psarobe Assigned To => mtaal
2011-12-09 14:00 psarobe Modules => Core
2011-12-09 14:04 psarobe Relationship added blocks 0019273
2011-12-13 15:43 mtaal Note Added: 0043823
2011-12-13 15:43 mtaal Assigned To mtaal => eduardo_Argal
2011-12-13 17:52 psarobe Assigned To eduardo_Argal => jonalegriaesarte
2011-12-21 11:39 gorkaion Relationship added related to 0019161
2011-12-29 13:38 hgbot Checkin
2011-12-29 13:38 hgbot Note Added: 0044072
2011-12-29 13:38 hgbot Status new => resolved
2011-12-29 13:38 hgbot Resolution open => fixed
2011-12-29 13:38 hgbot Fixed in SCM revision => [^]
2011-12-30 13:44 VictorVillar Note Added: 0044081
2011-12-30 13:44 VictorVillar Status resolved => closed
2011-12-30 14:02 hudsonbot Checkin
2011-12-30 14:02 hudsonbot Note Added: 0044085

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker