Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012912Openbravo ERP00. Application dictionarypublic2010-04-08 17:272011-10-29 21:41
sivaraman 
alostale 
highmajoralways
closedduplicate 
30Ubuntu 9.04
pi 
pi 
Core
No
0012912: Read Only Logic is not working for Invoice Line field of Outsourced tab
Read Only Logic is not working for Invoice Line field of Outsourced tab. However, the same logic is successfully working for other fields of the same tab.
(Please refer the screenshot attached)
1. Log on to Openbravo
2. Change use role to System Administrator
3. Go to Application Dictionary || Setup || Auxiliary Input || Auxiliary Input
4. Create and save two new records with following values

    Tab : Outsourced - Work Effort
    Name : Processed
    Active : Yes
    Validation Code : @SQL=SELECT M_PRODUCTION.PROCESSED FROM M_PRODUCTION, M_PRODUCTIONPLAN WHERE M_PRODUCTIONPLAN.M_PRODUCTION_ID = M_PRODUCTION.M_PRODUCTION_ID AND M_PRODUCTIONPLAN_ID = @M_PRODUCTIONPLAN_ID@

    Tab : Outsourced - Work Effort
    Name : Posted
    Active : Yes
    Validation Code : @SQL=SELECT M_PRODUCTION.POSTED FROM M_PRODUCTION, M_PRODUCTIONPLAN WHERE M_PRODUCTIONPLAN.M_PRODUCTION_ID = M_PRODUCTION.M_PRODUCTION_ID AND M_PRODUCTIONPLAN_ID = @M_PRODUCTIONPLAN_ID@

5. Go to Application Dictionary || Windows, Tabs, and Fields || Window
6. Search for Work Effort and Open it
7. Go to Application Dictionary || Windows, Tabs, and Fields || Window >> Tab
8. Open 'Outsourced'
9. Go to Application Dictionary || Windows, Tabs, and Fields || Window >> Tab >> Field
10. Open 'Cost'
11. By click Column link, go to Application Dictionary || Tables and Columns || Table >> Column
12. Set the below Read Only Logic
    @Processed@='Y' | @Posted@='Y'
13. Save and go back to Application Dictionary || Windows, Tabs, and Fields || Window >> Tab >> Field
14 Like that, apply the same Read Only Logic to all the remaining fields of Outsourced tab. (Client, Organization, Production Plan, Active, Invoice Line)

Compile and restart the server.

The following steps will lead us to the scenario where our read only logic is applicable

Go to Production Management > Transactions > Work effort.
Create a new one.
Go to Production Run tab.
Generate a new one
Go to Outsourced tab
Create new record
Go back to Production Run & Create Standards
Go back to Work effort.
Validate it.
Again, Go to Work Effort >> Production Run >> Outsourced tab
Notice all fields are read only except Invoice Line
No tags attached.
duplicate of defect 0011719 closed alostale "Read only logic" does not work for selectors like Products or Business Partners 
related to defect 00123872.50MP17 closed sivaraman It is possible to add some records when a Work effort is processed 
related to defect 0030018 closed AtulOpenbravo Invoice Line field of the Work Effort - Production Run - Outsourced tab should be editable although the document is processed 
png Screenshot-Openbravo - Mozilla Firefox.png (174,819) 2010-04-08 17:27
https://issues.openbravo.com/file_download.php?file_id=2416&type=bug
png
Issue History
2010-04-08 17:27sivaramanNew Issue
2010-04-08 17:27sivaramanAssigned To => adrianromero
2010-04-08 17:27sivaramanFile Added: Screenshot-Openbravo - Mozilla Firefox.png
2010-04-08 17:28sivaramanRelationship addedrelated to 0012387
2010-04-08 17:52adrianromeroAssigned Toadrianromero => alostale
2010-04-12 08:18alostaleStatusnew => scheduled
2010-04-12 08:18alostaleAssigned Toalostale => dbaz
2010-04-12 08:18alostalefix_in_branch => pi
2010-04-12 10:13dbazRelationship addeddepends on 0011719
2010-04-12 10:14dbazNote Added: 0026057
2010-04-12 10:14dbazAssigned Todbaz => alostale
2011-10-29 21:41psarobeRelationship replacedduplicate of 0011719
2011-10-29 21:41psarobeStatusscheduled => closed
2011-10-29 21:41psarobeResolutionopen => duplicate
2015-05-26 17:01ngarciaRelationship addedrelated to 0030018

Notes
(0026057)
dbaz   
2010-04-12 10:14   
I think the problem is exactly the same of

https://issues.openbravo.com/view.php?id=11719 [^]