Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017859Openbravo ERPA. Platformpublic2011-07-01 11:482011-07-06 02:42
psarobe 
marvintm 
immediatemajoralways
closedfixed 
5
3.0MP0 
3.0MP1 
Core
No
0017859: If you change the organization in the sales order once it is saved fails
When you change the organization in a sales order that is already saved, you cannot the organization because it shows you an error message when saving it again. This is not correct. You should be able to save the record after changing the record
1. Go to sales order
2. Click new and select US inc org
3. Select a business partner and save
4. Change the org to EspaƱa
5. Change the business partner and save

You will see the error message.

No tags attached.
Issue History
2011-07-01 11:48psarobeNew Issue
2011-07-01 11:48psarobeAssigned To => marvintm
2011-07-01 11:48psarobeModules => Core
2011-07-01 12:55hgbotCheckin
2011-07-01 12:55hgbotNote Added: 0038670
2011-07-01 12:55hgbotStatusnew => resolved
2011-07-01 12:55hgbotResolutionopen => fixed
2011-07-01 12:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4524abe1b4e564e48d08d93ee1b27263c85a5654 [^]
2011-07-05 13:52shuehnerNote Added: 0038780
2011-07-05 13:52shuehnerStatusresolved => closed
2011-07-06 02:42hudsonbotCheckin
2011-07-06 02:42hudsonbotNote Added: 0038846

Notes
(0038670)
hgbot   
2011-07-01 12:55   
Repository: erp/devel/pi
Changeset: 4524abe1b4e564e48d08d93ee1b27263c85a5654
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Jul 01 12:54:35 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4524abe1b4e564e48d08d93ee1b27263c85a5654 [^]

Fixed issue 17859. Changing org and bp in sales order will no longer prevent the user from saving.
The problem was that the business partner callout provided new values for the sales representative combo. This combo, as it is related to a non mandatory column, should have an initial blank value, which should be automatically selected as the callout logic doesn't provide a selected value. However, the FIC didn't add a blank element in this case.
The change has been to add this blank value in case of non mandatory column, and to automatically select it in case no selected value is provided.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0038780)
shuehner   
2011-07-05 13:52   
Reviewed/tested on pi/pgsql/chromium (rev id: e3cd8b5b827c).commit message explain that it restores same behavior which was used in 2.50 assuming that is correct (as not defined anywhere) cset is implemented that behavior. Testing the usecase as provided in the issue is now not producing an error but lets you save the row after the specified changes (org or org+bpartner).
(0038846)
hudsonbot   
2011-07-06 02:42   
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/f1c481b1a146 [^]

Maturity status: Test