Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007080Openbravo ERP01. General setuppublic2009-01-22 19:102009-04-21 12:39
shuehner 
vmromanos 
highminorhave not tried
closedfixed 
5
pi 
 
Core
No
0007080: Error message: "With your current role you don't have write permission." because of 'wrong' organisation type selected.
When you create a new client + organisation and select organisation type = 'Organisation' when you get the specified error message when trying to save and newly created Sales Invoice (after settings up all needed base tables like: bp, bp category, tax category, product category, pricelist, pricelistversion,pricelsitschema,prodcut).

Problem is that the organisation type 'Organisation' has the flag istransactionallowed set to false which prohibits creating the sales order. From reading the error message this is not clear and even not easily visible as a developer.
Create a new client
Create a new Organisation with orgType = Organisation
setup the needed base data to be able to create a sales invoice
Create and try to save the sales invoice
see specified error message
No tags attached.
related to defect 0007118 closed gorkaion Unable to save simple sales orders 
Issue History
2009-01-22 19:10shuehnerNew Issue
2009-01-22 19:10shuehnerAssigned To => rafaroda
2009-01-22 19:10shuehnersf_bug_id0 => 2529069
2009-01-22 19:10shuehnerRegression testing => No
2009-01-30 12:56psarobePrioritynormal => high
2009-01-30 12:56psarobeStatusnew => scheduled
2009-01-30 12:56psarobeAssigned Torafaroda => vmromanos
2009-02-04 17:05vmromanosNote Added: 0013150
2009-02-06 10:03AinhoaPagolaRelationship addedrelated to 0007118
2009-02-06 10:44svnbotCheckin
2009-02-06 10:44svnbotNote Added: 0013211
2009-02-06 10:44svnbotStatusscheduled => resolved
2009-02-06 10:44svnbotResolutionopen => fixed
2009-02-06 10:44svnbotsvn_revision => 12879
2009-04-21 12:39psarobeStatusresolved => closed

Notes
(0013150)
vmromanos   
2009-02-04 17:05   
The problem here is that an organization that has the istransactionallowed='N' should never appear into a transactional window, like for example "Purchase invoice".


Thanks to the steps to reproduce this bug given by shuehner we have discovered that if a client only has organizations with istransactionallowed='N', then the transactional windows display all the available organizations for that client.

So, what we have to ensure is that, when the client doesn't have at least an organization with istransactionallowed='Y', the organization's field of the transactional windows must appear empty.
(0013211)
svnbot   
2009-02-06 10:44   
Repository: openbravo
Revision: 12879
Author: vmromanos
Date: 2009-02-06 10:44:02 +0100 (Fri, 06 Feb 2009)

Fixed bug 7080: When there are no transaction allowed organizations, the transactional windows must display no organizations into the organization's combobox.

---
U trunk/src/org/openbravo/base/secureApp/OrgTree.java
U trunk/src/org/openbravo/base/secureApp/OrgTreeNode.java
U trunk/src/org/openbravo/erpCommon/utility/Utility.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12879&sc=1 [^]