Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008376Openbravo ERP08. Project and service managementpublic2009-04-01 12:212009-07-08 07:23
arunkumar 
alostale 
urgentmajoralways
closedfixed 
5
main 
pi 
Core
No
0008376: Set Project type button appears & disappears in Project & Service Management->Transactions->Multiphase Project
Set Project type button appears & disappears in Project & Service Management->Transactions->Multiphase Project page.
# Login as userA
# Go to Project & Service Management->Transactions->Multiphase Project
# Click new
# Verify "Set Project type" button appears & disappears suddenly.

The button shouldn't disappear
250 final review, 250 QA
related to defect 0008228pi closed dbaz Callouts fro client and organization fields are not executed when creating a new record 
jpg SetprojectType.JPG (198,320) 2009-04-01 12:21
https://issues.openbravo.com/file_download.php?file_id=1097&type=bug
jpg
Issue History
2009-04-01 12:21arunkumarNew Issue
2009-04-01 12:21arunkumarAssigned To => rafaroda
2009-04-01 12:21arunkumarFile Added: SetprojectType.JPG
2009-04-01 12:21arunkumarRegression testing => No
2009-04-01 12:23arunkumarTag Attached: 250 final review
2009-04-01 16:23psarobeProposed Solution updated
2009-04-01 17:01psarobeTag Attached: 250 QA
2009-04-01 17:01psarobeStatusnew => scheduled
2009-04-01 17:01psarobefix_in_branch => pi
2009-04-01 22:57dbazNote Added: 0015121
2009-04-02 15:22pjuvaraPriorityhigh => urgent
2009-04-03 08:30rafarodaStatusscheduled => closed
2009-04-03 08:30rafarodaNote Added: 0015142
2009-04-03 08:30rafarodaResolutionopen => no change required
2009-04-03 08:57arunkumarNote Added: 0015143
2009-04-06 12:24psarobeStatusclosed => new
2009-04-06 12:24psarobeResolutionno change required => open
2009-04-06 13:43rafarodaNote Added: 0015218
2009-04-06 13:43rafarodaAssigned Torafaroda => alostale
2009-04-06 13:43rafarodaStatusnew => scheduled
2009-04-06 13:43rafarodafix_in_branchpi =>
2009-04-06 15:25alostaleRelationship addedrelated to 0008228
2009-04-06 15:29alostaleNote Added: 0015221
2009-04-06 15:31hgbotCheckin
2009-04-06 15:31hgbotNote Added: 0015222
2009-04-06 15:31hgbotStatusscheduled => resolved
2009-04-06 15:31hgbotResolutionopen => fixed
2009-04-06 15:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8fe85e24c2ed08cc4291041bc99de70fba7ec8d8 [^]
2009-04-07 12:24psarobeStatusresolved => closed
2009-04-10 18:16RenateNieuwkoopNote Added: 0015319
2009-04-15 12:00anonymoussf_bug_id0 => 2764958
2009-07-03 13:12hgbotCheckin
2009-07-03 13:12hgbotNote Added: 0017836
2009-07-03 13:12hgbotStatusclosed => resolved
2009-07-03 13:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/8fe85e24c2ed08cc4291041bc99de70fba7ec8d8 [^] => http://code.openbravo.com/erp/devel/pi/rev/109be4b5cce3238978db21ed1b91fc8a96e97e00 [^]
2009-07-08 07:23sureshbabuStatusresolved => closed
2009-07-08 07:23sureshbabuNote Added: 0017991
2009-07-08 07:23sureshbabuFixed in Version2.50MP1 => pi

Notes
(0015121)
dbaz   
2009-04-01 22:57   
It seems to be a problem with the displayLogic
(0015142)
rafaroda   
2009-04-03 08:30   
Hi Arun,

This is not a bug but the normal behaviour of Openbravo ERP.

One can only set once the type for the project. When this button is pressed, the value selected is filled in Project Type read-only drop-down list and phases and tasks of this project type are filled in current project ones. Besides, Set Project button is hidden with display logic (@C_ProjectType_ID@=null | @C_ProjectType_ID@='') not to allow setting several times a project type to a multiphase project.

Thank you for your feedback.
(0015143)
arunkumar   
2009-04-03 08:57   
Yes I agree with the behaviour of Openbravo ERP that One can only set the type for the project.

But in this case we are not at all able to view the button "Set project type". That is the issue.
(0015218)
rafaroda   
2009-04-06 13:43   
The trigger of ComboReloads on Client and Organization change seems to be causing this issue.

When creating a new record, Set Project Type button is displaying because Project Type read-only field allows blank value. But, ComboReloads changes Project Type value to only 2 possible values (blank value is not allowed anymore). This causes a value to be selected on Project Type field and Set Project Type button disappears.

Please notice that:
* If we put Project Type combo to non-read only this does not happen.
* Value blank is available if we put fields which are not affected by ComboReloads to read-only.
(0015221)
alostale   
2009-04-06 15:29   
The problem is:
-Issue 0008228 makes the Organization ComboReload be executed when a new record is created.
-This affects Project type combo.
-When a read-only combo is affected by a callout no blank entry is added (as it is done for not mandatory not read only fields). See utils.formElementValue js method.

Proposed solution:
-Add a blank item for read-only combos when they are affected by callouts. This will happen for all read-only combos because in js it is not possible to indentify whether they are mandatory.
(0015222)
hgbot   
2009-04-06 15:31   
Repository: erp/devel/pi
Changeset: 8fe85e24c2ed08cc4291041bc99de70fba7ec8d8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Apr 06 15:30:40 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8fe85e24c2ed08cc4291041bc99de70fba7ec8d8 [^]

fixed bug 0008376: Set Project type button appears & disappears in Project & Service Management->Transactions->Multiphase Project

---
M web/js/utils.js
---
(0015319)
RenateNieuwkoop   
2009-04-10 18:16   
Rok loaded the fix into Training and I've tested, but the problem is not fixed.
(0017836)
hgbot   
2009-07-03 13:12   
Repository: erp/devel/pi
Changeset: 109be4b5cce3238978db21ed1b91fc8a96e97e00
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Apr 06 15:30:40 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/109be4b5cce3238978db21ed1b91fc8a96e97e00 [^]

fixed bug 0008376: Set Project type button appears & disappears in Project & Service Management->Transactions->Multiphase Project

---
M web/js/utils.js
---
(0017991)
sureshbabu   
2009-07-08 07:23   
Tested in PI, set project type button visible