Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012651Openbravo ERP00. Application dictionarypublic2010-03-11 13:502010-04-08 00:00
arunkumar 
adrianromero 
immediatemajorhave not tried
closedfixed 
5
2.50MP13 
2.50MP14 
No
Core
No
0012651: UOM is not updated if we login as user with Material Management role.
Login as a user with Material Management role.Go to Procurement Management -> Transactions -> Goods Receipt.In header enter the required details and in lines select the product. UOM is not updated according to the product. It always retain the value "unit".
Prerequisite:

Create a product "Raw Material A" with the UOM "Bag".

Steps:

Login as a user with Material Management role.
Go to Procurement Management -> Transactions -> Goods Receipt.
In header enter the required details
In lines select the product "Raw Material A".

UOM is not updated to "Bag". It always retain the value "unit".
UOM should be updated according to the selected product in lines tab.
No tags attached.
related to defect 00126522.50MP14 closed adrianromero Openbravo ERP Proper management of DAL security 
related to defect 0012668pi closed eduardo_Argal Openbravo ERP Proper management of DAL security on file: src/org/openbravo/erpCommon/ad_forms/InitialOrgSetup.java 
related to defect 0012999 closed jonalegriaesarte Openbravo ERP Sales Invoice: Error on Update Payment Monitor 
related to defect 0015164 closed sathiyan Modules Error in callout SubsidyPercentageAmountCalc when adding Subsidy and you don't have access to AAM_SUBSIDY class 
diff issue-12651-possible-patch.diff (1,736) 2010-03-11 18:05
https://issues.openbravo.com/file_download.php?file_id=2332&type=bug
png WindowAccessProduct.png (45,419) 2010-03-12 07:15
https://issues.openbravo.com/file_download.php?file_id=2334&type=bug
png
Issue History
2010-03-11 13:50arunkumarNew Issue
2010-03-11 13:50arunkumarAssigned To => adrianromero
2010-03-11 13:50arunkumarOBNetwork customer => No
2010-03-11 13:58rafarodaIssue Monitored: rafaroda
2010-03-11 13:58psarobePrioritynormal => immediate
2010-03-11 13:58psarobeStatusnew => scheduled
2010-03-11 14:27alostaleRelationship addedrelated to 0012652
2010-03-11 18:03rafarodaNote Added: 0025248
2010-03-11 18:04rafarodaNote Added: 0025249
2010-03-11 18:05rafarodaFile Added: issue-12651-possible-patch.diff
2010-03-11 18:18rafarodaNote Added: 0025251
2010-03-11 18:20rafarodaNote Added: 0025252
2010-03-11 18:23rafarodaNote Edited: 0025252bug_revision_view_page.php?bugnote_id=0025252#r157
2010-03-11 22:56eintelauIssue Monitored: eintelau
2010-03-12 07:14rafarodaNote Added: 0025258
2010-03-12 07:15rafarodaFile Added: WindowAccessProduct.png
2010-03-12 07:19arunkumarNote Added: 0025259
2010-03-15 10:52psarobeProject@27@ => Openbravo ERP
2010-03-15 13:15adrianromeroRelationship addedrelated to 0012668
2010-03-15 13:16adrianromeroStatusscheduled => resolved
2010-03-15 13:16adrianromeroFixed in SCM revision => 0d511b2d743e
2010-03-15 13:16adrianromeroResolutionopen => fixed
2010-04-07 11:36psarobeCategoryQuickStart Template + Datasets => 00. Application dictionary
2010-04-07 11:36psarobeversion => 2.50MP13
2010-04-07 11:36psarobeNote Added: 0025928
2010-04-07 11:36psarobeStatusresolved => closed
2010-04-07 11:36psarobeFixed in Version => 2.50MP14
2010-04-08 00:00anonymoussf_bug_id0 => 2983499
2010-09-23 13:03rafarodaRelationship addedrelated to 0012999
2010-11-11 14:03maiteRelationship addedrelated to 0015164

Notes
(0025248)
rafaroda   
2010-03-11 18:03   
The error shown is:
ERROR org.openbravo.base.exception.OBSecurityException - Entity Product is not directly readable, only id and identifier properties are readable, property Product.attributeSet is neither of these.
org.openbravo.base.exception.OBSecurityException: Entity Product is not directly readable, only id and identifier properties are readable, property Product.attributeSet is neither of these.
(0025249)
rafaroda   
2010-03-11 18:04   
The line affected is https://code.openbravo.com/erp/devel/pi/file/tip/src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java#l114 [^]

The patch proposed resolved the problem (needs to be reviewed by a DAL expert).
(0025251)
rafaroda   
2010-03-11 18:18   
The following tabs are affected by the same problem (callout affected is informed):
   1. Master Data Management > Product > Product > Transactions
   2. Warehouse Management > Transactions > Physical Inventory > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Product.java
   3. Warehouse Management > Transactions > Goods Movements > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Movement_Product.java
   4. Warehouse Management > Transactions > Bill of Materials Production > BOM Production > Production Plan > I/O Products src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java
   5. Warehouse Management > Transactions > Goods Transaction
   6. Warehouse Management > Setup > Warehouse and Storage Bins > Warehouse > Storage Bin > Bin Contents
   7. Warehouse Management > Setup > Warehouse and Storage Bins > Warehouse > Storage Bin > Product Transactions
   8. Production Management > Transactions > Internal Consumption > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Product.java
   9. Production Management > Transactions > Work Effort > Work Effort > Production Run > Product src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java
  10. Production Management > Transactions > Work Effort > Work Effort > Global Use src/org/openbravo/erpCommon/ad_callouts/SL_GlobalUse_Product.java
  11. Production Management > Transactions > Periodic Quality Control Data > Test src/org/openbravo/erpCommon/ad_callouts/SL_PC_Case_Product.java
  12. Warehouse Management > Transactions > Incoming Shipment > Shipment in > Shipment in line src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
  13. Procurement Management > Transactions > Requisition > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
  14. Procurement Management > Transactions > Manage Requisitions > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
  15. Procurement Management > Transactions > Goods Receipt > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
  16. Procurement Management > Transactions > Purchase Order > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
  17. Sales Management > Transactions > Goods Shipment > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
  18. Sales Management > Transactions > Sales Order > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
  19. Sales Management > Transactions > Sales Invoice > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
  20. Financial Management > Assets > Assets src/org/openbravo/erpCommon/ad_callouts/SL_Asset_Product.java
  21. Procurement Management > Transactions > Purchase Invoice > Header > Lines src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
(0025252)
rafaroda   
2010-03-11 18:20   
(edited on: 2010-03-11 18:23)
I think that the callouts/windows above (reviewed during the following project [1]), have to be fixed with the higher urgency since they can affect very badly production systems.

[1] http://wiki.openbravo.com/wiki/Projects/Attribute_set_instance_review#Technical_Documentation [^]

(0025258)
rafaroda   
2010-03-12 07:14   
If you are suffering from this issue for any of your roles this is a temporary workaround:
1) With a Client Administrator role, navigate to General Setup || Security || Role
2) Select the role affected by the issue and go to "Window Access" tab.
3) Create a new record for window "Product" and "Editable Field" = N (see screenshot).
4) Log in with this role the UOM of the product will be correctly selected now.
(0025259)
arunkumar   
2010-03-12 07:19   
yes Rafa this workaround is suggested by Pablo Sarobe and I already did that. Thanks.
(0025928)
psarobe   
2010-04-07 11:36   
Tested working fine