Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0011719 | Openbravo ERP | 00. Application dictionary | public | 2009-12-10 10:27 | 2010-05-18 21:43 |
|
Reporter | adrianromero | |
Assigned To | alostale | |
Priority | urgent | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0011719: "Read only logic" does not work for selectors like Products or Business Partners |
Description | Trying to set a "Read only logic" behavior for product fields or business partner fields does not work because these fields are edited with the special selectors. |
Steps To Reproduce | As system administrator, go to Application Dictionary || Tables and Columns
In the header select the table C_INVOICE and find the column C_BPARTNER_ID. Here set the read only logic field to :
@Processed@='Y'
This way the business partner field is read when the invoice has been processed.
As Openbravo Admin create a new invoice and complete it. Notice that the Business Partner field is still editable. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0011555 | | closed | adrianromero | Processed records should be rendered as read only | related to | defect | 0011701 | | closed | dbaz | Read only logic in Date or Numeric columns doesn't work properly | related to | defect | 0011426 | | closed | dbaz | Read only logic does not work in check boxes | has duplicate | defect | 0012912 | pi | closed | alostale | Read Only Logic is not working for Invoice Line field of Outsourced tab | related to | defect | 0013762 | 2.50MP20 | closed | adrianromero | The business partner field on General Setup || Security || User is read only |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2009-12-10 10:27 | adrianromero | New Issue | |
2009-12-10 10:27 | adrianromero | Assigned To | => alostale |
2009-12-10 10:27 | adrianromero | Relationship added | related to 0011555 |
2009-12-15 10:20 | alostale | Relationship added | related to 0011701 |
2009-12-24 18:49 | dbaz | Note Added: 0023085 | |
2010-01-05 11:32 | iciordia | Assigned To | alostale => dbaz |
2010-01-05 11:32 | iciordia | Status | new => scheduled |
2010-01-05 11:32 | iciordia | fix_in_branch | => pi |
2010-01-06 16:41 | dbaz | Note Added: 0023241 | |
2010-01-06 16:41 | dbaz | Status | scheduled => feedback |
2010-01-14 21:07 | adrianromero | Status | feedback => scheduled |
2010-01-14 21:07 | adrianromero | Note Added: 0023458 | |
2010-01-14 22:30 | dbaz | Note Added: 0023462 | |
2010-01-14 22:33 | dbaz | Assigned To | dbaz => alostale |
2010-03-09 10:23 | rafaroda | Relationship added | related to 0011426 |
2010-03-09 10:25 | rafaroda | Issue Monitored: rafaroda | |
2010-04-12 10:13 | dbaz | Relationship added | blocks 0012912 |
2010-04-30 15:11 | hgbot | Checkin | |
2010-04-30 15:11 | hgbot | Note Added: 0026819 | |
2010-04-30 15:11 | hgbot | Status | scheduled => resolved |
2010-04-30 15:11 | hgbot | Resolution | open => fixed |
2010-04-30 15:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a8e14b6705483fce0e04fb15be1bdd26fdad8566 [^] |
2010-05-17 10:13 | adrianromero | fix_in_branch | pi => |
2010-05-17 10:13 | adrianromero | Description Updated | bug_revision_view_page.php?rev_id=370#r370 |
2010-05-17 10:13 | adrianromero | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=372#r372 |
2010-05-17 13:11 | dbaz | Status | resolved => closed |
2010-05-18 00:00 | anonymous | sf_bug_id | 0 => 3002946 |
2010-05-18 21:43 | hudsonbot | Checkin | |
2010-05-18 21:43 | hudsonbot | Note Added: 0027465 | |
2010-06-24 13:04 | psarobe | Relationship added | related to 0013762 |
2011-10-29 21:41 | psarobe | Relationship replaced | has duplicate 0012912 |
Notes |
|
(0023085)
|
dbaz
|
2009-12-24 18:49
|
|
|
|
(0023241)
|
dbaz
|
2010-01-06 16:41
|
|
adrianromero are you still able to reproduce it in a "recent" pi context? |
|
|
|
Tested on pi it still does not work, Read only logic field does not work with business partner fields |
|
|
(0023462)
|
dbaz
|
2010-01-14 22:30
|
|
For example if we see the source code of
"Sales Management || Transactions || Sales Order || Header "
We see in the <head> the function "readOnlyLogic()" and inside it this:
readOnlyLogicElement('C_BPartner_ID', (inputValue(document.frmMain.inpprocessed) == 'Y'));
With this we are setting the C_BPartner_ID as readonly. The problem is that this C_BPartner_ID input is the hidden input. The visible input in this particular case is C_BPartner_ID_R
If we manually change the source code and write C_BPartner_ID_R replacing the C_BPartner_ID we see that the readonly is properly done.
So the solution should be, in the backend, establish that for the case that the field is a selector, point directly to the visible input instead of the hidden one. |
|
|
(0026819)
|
hgbot
|
2010-04-30 15:11
|
|
Repository: erp/devel/pi
Changeset: a8e14b6705483fce0e04fb15be1bdd26fdad8566
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Apr 30 15:11:00 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a8e14b6705483fce0e04fb15be1bdd26fdad8566 [^]
fixed bug 11719: Read only logic does not work for selectors
---
M src-wad/src/org/openbravo/wad/WadUtility.java
M src-wad/src/org/openbravo/wad/controls/WADControl.java
M src-wad/src/org/openbravo/wad/controls/WADList.java
M src-wad/src/org/openbravo/wad/controls/WADSearch.java
---
|
|
|
|
|