| Openbravo Issue Tracking System - Openbravo Localizations | 
| View Issue Details | 
| 
 | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0049318 | Openbravo Localizations | Localization Portugal | public | 2022-05-13 12:25 | 2022-06-01 10:43 | 
| 
 | 
| Reporter | ucarrion |  | 
| Assigned To | igor_trebol |  | 
| Priority | high | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed |  | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |  | 
| Target Version |  | Fixed in Version |  |  | 
| Merge Request Status | approved | 
| Regression date |  | 
| Regression introduced by commit |  | 
| Regression level |  | 
| Support ticket |  | 
| OBNetwork customer | Gold | 
| Regression introduced in release |  | 
| 
 | 
| Summary | 0049318: EWI generated because of ad_user organizational level | 
| Description | If I do a return in a store B of a sale done in store A with a user related to organization store B, I get the EWI below: 
 org.openbravo.base.exception.OBException: Couldn't enable triggers:
 ...
 Caused by: org.openbravo.base.exception.OBSecurityException: Entity NC XXXXXXXX/XXXXXX- 12-05-2022 - -69.95 (Invoice) with organization STORE B references an entity USER B through its property Invoice.saftStatusupdatedby but this referenced entity belongs to an organization STORE A which is not part of the natural tree of STORE B.
 
 Attached, the complete EWI log for the case raised in Norauto.
 | 
| Steps To Reproduce | -Precondition: to be able to use touchpoints from two different PT-configured stores. 
 -Do a simplified invoice (simple sale) into the store A
 -Open the touchpoint in store B using a USER whose organization is STORE B (not higher as legal entity, * ...)
 -Do a return in store B of the invoice generated in step one
 -Check the 'Errors While Importing POS data' window in the backoffice
 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | NOR | 
| Relationships |  | 
| Attached Files |  49318_errorLog.txt (3,508) 2022-05-13 12:26 https://issues.openbravo.com/file_download.php?file_id=17021&type=bug
 | 
| 
 | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2022-05-13 12:25 | ucarrion | New Issue |  | 
| 2022-05-13 12:25 | ucarrion | Assigned To | => psanjuan | 
| 2022-05-13 12:25 | ucarrion | OBNetwork customer | => Gold | 
| 2022-05-13 12:25 | ucarrion | Tag Attached: NOR |  | 
| 2022-05-13 12:26 | ucarrion | File Added: 49318_errorLog.txt |  | 
| 2022-05-30 13:27 | aferraz | Assigned To | psanjuan => igor_trebol | 
| 2022-06-01 08:56 | hgbot | Merge Request Status | => open | 
| 2022-06-01 08:56 | hgbot | Note Added: 0137911 |  | 
| 2022-06-01 09:02 | hgbot | Note Added: 0137912 |  | 
| 2022-06-01 09:52 | hgbot | Note Added: 0137916 |  | 
| 2022-06-01 09:52 | hgbot | Note Added: 0137917 |  | 
| 2022-06-01 10:11 | hgbot | Note Added: 0137918 |  | 
| 2022-06-01 10:12 | hgbot | Note Added: 0137919 |  | 
| 2022-06-01 10:26 | hgbot | Note Added: 0137920 |  | 
| 2022-06-01 10:34 | hgbot | Note Added: 0137922 |  | 
| 2022-06-01 10:40 | hgbot | Merge Request Status | open => approved | 
| 2022-06-01 10:40 | hgbot | Note Added: 0137923 |  | 
| 2022-06-01 10:40 | hgbot | Resolution | open => fixed | 
| 2022-06-01 10:40 | hgbot | Status | new => closed | 
| 2022-06-01 10:40 | hgbot | Note Added: 0137924 |  | 
| 2022-06-01 10:40 | hgbot | Note Added: 0137925 |  | 
| 2022-06-01 10:40 | hgbot | Note Added: 0137926 |  | 
| 2022-06-01 10:41 | aferraz | Note Deleted: 0137911 |  | 
| 2022-06-01 10:41 | aferraz | Note Deleted: 0137917 |  | 
| 2022-06-01 10:41 | aferraz | Note Deleted: 0137912 |  | 
| 2022-06-01 10:41 | aferraz | Note Deleted: 0137916 |  | 
| 2022-06-01 10:41 | aferraz | Note Deleted: 0137920 |  | 
| 2022-06-01 10:41 | aferraz | Note Deleted: 0137918 |  | 
| 2022-06-01 10:43 | hgbot | Note Added: 0137927 |  | 
| 2022-06-01 10:43 | hgbot | Note Added: 0137928 |  | 
	| Notes | 
	| 
 | 
	| 
		
			| (0137919) |  
			| hgbot |  
			| 2022-06-01 10:12 |  |  | 
	| 
 | 
	| 
		
			| (0137922) |  
			| hgbot |  
			| 2022-06-01 10:34 |  |  | 
	| 
 | 
	| 
		
			| (0137923) |  
			| hgbot |  
			| 2022-06-01 10:40 |  |  | 
	| 
 | 
	| 
		
			| (0137924) |  
			| hgbot |  
			| 2022-06-01 10:40 |  |  | 
	| 
 | 
	| 
		
			| (0137925) |  
			| hgbot |  
			| 2022-06-01 10:40 |  |  | 
	| 
 | 
	| 
		
			| (0137926) |  
			| hgbot |  
			| 2022-06-01 10:40 |  |  | 
	| 
 | 
	| 
		
			| (0137927) |  
			| hgbot |  
			| 2022-06-01 10:43 |  |  | 
	| 
 | 
	| 
		
			| (0137928) |  
			| hgbot |  
			| 2022-06-01 10:43 |  |  |