Openbravo Issue Tracking System - Openbravo ERP  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0041132 | Openbravo ERP | 07. Sales management | public | 2019-06-20 13:09 | 2019-08-22 11:29 | 
  | 
| Reporter | aferraz |   | 
| Assigned To | nonofrancisco |   | 
| Priority | normal | Severity | major | Reproducibility | have not tried | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version | 3.0PR19Q3 | Fixed in Version | 3.0PR19Q3 |   | 
| Merge Request Status |  | 
| Review Assigned To | Sandrahuguet | 
| OBNetwork customer | No | 
| Web browser |  | 
| Modules | Core | 
| Support ticket |  | 
| Regression level | Pre packaging ( pi ) | 
| Regression date | 2019-06-03 | 
| Regression introduced in release | pi | 
| Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/f5c363681f43fab6f8bcadd6aad21ec14be00edc [^] | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0041132: Business Partner selector doesn't filter by natural tree anymore | 
| Description | After allowing cross organization reference in some C_BPartner_ID columns, Business Partner selector doesn't filter by natural tree anymore. | 
| Steps To Reproduce | Using F&B group admin role: 
- Create a new Sales Order 
- Select F&B España - Región Norte organization 
- Click on Business Partner selector 
Check Business Partners from USA are displayed. 
Only Business Partners from Spain should be displayed. | 
| Proposed Solution | Add a validation to filter by natural tree organizations in following columns: 
C_Order.C_BPartner_ID 
C_OrderLine.C_BPartner_ID 
M_InOut.C_BPartner_ID 
M_InOutLine.C_Bpartner_ID 
C_Invoice.C_BPartner_ID 
C_InvoiceLine.C_Bpartner_ID | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to  | defect  | 0041133 | 3.0PR19Q3  | closed  | nonofrancisco  | Openbravo ERP  | Sales Representative selector doesn't filter by natural tree anymore  |  | caused by  | feature request  | 0041006 | RR19Q3  | closed  | aferraz  | Retail Modules  | Cross Store Sales project  |  | related to  | feature request  | 0041135 |   | new  | Triage Platform Base  | Openbravo ERP  | Add the ability to filter by natural tree in selectors based on columns allowing cross org reference  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2019-06-20 13:09 | aferraz | New Issue |  | 
| 2019-06-20 13:09 | aferraz | Assigned To |  => Triage Finance | 
| 2019-06-20 13:09 | aferraz | OBNetwork customer |  => No | 
| 2019-06-20 13:09 | aferraz | Modules |  => Core | 
| 2019-06-20 13:09 | aferraz | Triggers an Emergency Pack |  => No | 
| 2019-06-20 13:10 | aferraz | Regression level |  => Pre packaging ( pi ) | 
| 2019-06-20 13:10 | aferraz | Regression date |  => 2019-06-03 | 
| 2019-06-20 13:10 | aferraz | Regression introduced in release |  => pi | 
| 2019-06-20 13:10 | aferraz | Regression introduced by commit |  => https://code.openbravo.com/erp/devel/pi/rev/f5c363681f43fab6f8bcadd6aad21ec14be00edc [^] | 
| 2019-06-20 13:11 | aferraz | Relationship added | caused by 0041006 | 
| 2019-06-20 13:14 | aferraz | Issue cloned | 0041133 | 
| 2019-06-20 13:16 | aferraz | Relationship added | related to 0041133 | 
| 2019-06-20 13:45 | Sandrahuguet | Assigned To | Triage Finance => nonofrancisco | 
| 2019-06-20 13:51 | aferraz | Relationship added | related to 0041135 | 
| 2019-06-20 22:49 | nonofrancisco | Status | new => scheduled | 
| 2019-06-20 22:55 | nonofrancisco | Note Added: 0112926 |  | 
| 2019-06-27 15:43 | hgbot | Checkin |  | 
| 2019-06-27 15:43 | hgbot | Note Added: 0113060 |  | 
| 2019-06-27 15:43 | hgbot | Status | scheduled => resolved | 
| 2019-06-27 15:43 | hgbot | Resolution | open => fixed | 
| 2019-06-27 15:43 | hgbot | Fixed in SCM revision |  => http://code.openbravo.com/erp/devel/pi/rev/b0c04c46544d06ade4dcc2f5011c924c0d71497c [^] | 
| 2019-06-27 15:49 | Sandrahuguet | Review Assigned To |  => Sandrahuguet | 
| 2019-06-27 15:49 | Sandrahuguet | Note Added: 0113061 |  | 
| 2019-06-27 15:49 | Sandrahuguet | Status | resolved => closed | 
| 2019-06-27 15:49 | Sandrahuguet | Fixed in Version |  => 3.0PR19Q3 | 
| 2019-06-28 00:15 | hudsonbot | Checkin |  | 
| 2019-06-28 00:15 | hudsonbot | Note Added: 0113086 |  | 
| 2019-08-22 11:29 | Sandrahuguet | Note Added: 0114117 |  | 
	| 
		Notes	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				Test Plan 
 
As Openbravo / F&B International Group Admin: 
 
Create a new Sales Order 
  Organization: F&B España - Región Norte 
  Click on Business Partners selector 
Verify just Business Partner from España are shown 
  Change Orgaization to F&B US East Coast 
Verify just Business Partners from USA are shown  
 
Verify the Business Partner selector behave the same in the following windows 
  Purchase Order 
  Goods Receipt 
  Goods Shipment 
  Sales Invoice 
  Purchase Invoice			 | 
		 
		 
	 | 
	
		 
	 | 
	
		
		
			| 
				(0113060)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2019-06-27 15:43   
							 | 
		 
		 
	 | 
	
		
		
			
				Repository: erp/devel/pi 
Changeset: b0c04c46544d06ade4dcc2f5011c924c0d71497c 
Author: Nono Carballo <nonofce <at> gmail.com> 
Date: Thu Jun 27 08:57:55 2019 +0200 
URL: http://code.openbravo.com/erp/devel/pi/rev/b0c04c46544d06ade4dcc2f5011c924c0d71497c [^] 
 
Fixes issue 41132: Filter BusinessPartner by natural organization 
 
A new Filter Expression was added to BusinessPartner selector to filter business 
partner by natural organization. The filter expression adds the filter only if 
the selector is being used by BusinessPartner column in tables C_INVOICE, 
C_INVOICELINE, M_INOUT, M_INOUTLINE, C_ORDER and C_ORDERLINE 
 
Test class was updated. 
 
--- 
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml 
M src-test/src/org/openbravo/test/security/CrossOrganizationUI.java 
A src/org/openbravo/erpCommon/info/BusinessPartnerSelectorFilterExpression.java 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 |