Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019556Openbravo ERP01. General setuppublic2012-01-24 18:262012-01-28 04:10
maite 
alostale 
urgentmajoralways
closedfixed 
5
 
3.0MP8 
Core
No
0019556: Role defined as "Client + Organization" can not create data for Organization *
In Openbravo 2.50, when Role is defined with User Level= Client + Organization, it can create Business Partner for Organization *

In Openbravo 3, it can not create Business Partner for Organization *
1. Go to Role window and create new role with user_level=Client + Organization
2. Go to Org Access tab and add record for "F&B España, S.A." organization
3. Go to User window and search for "Openbravo" user and, in tab User Roles, add access to your new role.
4. Logout and login again with Openbravo user and set your role
5. Go to Business Partner window, create new business partner for Organization * and try to save. You will obtain "Saving failed. With your current role this action is not allowed." error

If you follow same steps in 2.50 version you are able to save record
No tags attached.
Issue History
2012-01-24 18:26maiteNew Issue
2012-01-24 18:26maiteAssigned To => jonalegriaesarte
2012-01-24 18:26maiteModules => Core
2012-01-24 18:27maiteAssigned Tojonalegriaesarte => alostale
2012-01-24 18:28maiteTarget Version => 3.0MP8
2012-01-24 19:00jpcalventeIssue Monitored: jpcalvente
2012-01-25 10:11alostaleNote Added: 0044543
2012-01-25 10:14hgbotCheckin
2012-01-25 10:14hgbotNote Added: 0044544
2012-01-25 10:14hgbotStatusnew => resolved
2012-01-25 10:14hgbotResolutionopen => fixed
2012-01-25 10:14hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/85a366534d3ca56c742bb033d0b428d3a512d477 [^]
2012-01-25 13:57maiteNote Added: 0044564
2012-01-25 13:57maiteStatusresolved => closed
2012-01-25 18:03psarobeNote Added: 0044577
2012-01-28 04:10hudsonbotCheckin
2012-01-28 04:10hudsonbotNote Added: 0044649

Notes
(0044543)
alostale   
2012-01-25 10:11   
The changeset adds organization * to the list of writable organizations in case the role's user level is Client + Organization (previously this was done in case it was System or Client).

It affects a very central part of DAL, but the regression risk it adds is very low because it is less restrictive than it was before so everything working before the fix should still work after it.
(0044544)
hgbot   
2012-01-25 10:14   
Repository: erp/devel/pi
Changeset: 85a366534d3ca56c742bb033d0b428d3a512d477
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jan 25 10:13:04 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/85a366534d3ca56c742bb033d0b428d3a512d477 [^]

fixed bug 19556: "Client + Organization" roles cannot create data for Organization *

---
M src/org/openbravo/dal/core/OBContext.java
---
(0044564)
maite   
2012-01-25 13:57   
verified
(0044577)
psarobe   
2012-01-25 18:03   
Fix correct. Works fine
(0044649)
hudsonbot   
2012-01-28 04:10   
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/8e16ef45b30c [^]

Maturity status: Test