Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017537Openbravo ERP00. Application dictionarypublic2011-06-07 12:122012-04-23 12:18
pandeeswari 
guilleaer 
urgentmajoralways
closedfixed 
20Community Appliance
3.0RC7 
3.0MP103.0MP11 
Core
No
0017537: Remove Deletable Records Option is not working in RC7 new UI
I unchecked deletable records check box in Tables and Columns for c_bpartner table. I compiled using smartbuild and deployed. When I opened the Business Partner window in new UI, delete button is still visible and working. In classic UI it is invisible.
1. Uncheck deletable records check box in Tables and Columns for any table, I tried in c_bpartner table.
2. Compile and deploy.(I tried both smartbuild and compile.complete.deploy)
3. Open the corresponding window in new UI, delete button will be still visible and working. In classic UI it will be invisible.
No tags attached.
png BusinessPartnerNewUI.png (55,435) 2011-06-07 12:12
https://issues.openbravo.com/file_download.php?file_id=4166&type=bug
png
Issue History
2011-06-07 12:12pandeeswariNew Issue
2011-06-07 12:12pandeeswariAssigned To => alostale
2011-06-07 12:12pandeeswariFile Added: BusinessPartnerNewUI.png
2011-06-07 12:12pandeeswariModules => Core
2011-06-09 11:23pandeeswariIssue Monitored: pandeeswari
2011-08-05 13:00alostaleStatusnew => scheduled
2011-08-05 13:00alostalefix_in_branch => pi
2011-12-01 05:31shankarbAssigned Toalostale => shankarb
2011-12-01 05:31shankarbfix_in_branchpi =>
2012-03-21 17:55szapataNote Added: 0046611
2012-03-21 17:59szapataIssue Monitored: szapata
2012-03-22 14:35VictorVillarResolution time => 1335564000
2012-03-22 14:35VictorVillarPrioritynormal => urgent
2012-03-22 14:35VictorVillarSeveritytrivial => major
2012-03-22 14:35VictorVillarTarget Version => 3.0MP10
2012-03-22 14:43VictorVillarAssigned Toshankarb => jonalegriaesarte
2012-03-22 14:43VictorVillarIssue Monitored: networkb
2012-03-22 15:43VictorVillarAssigned Tojonalegriaesarte => alostale
2012-03-23 08:52alostaleAssigned Toalostale => guilleaer
2012-03-23 08:52alostaleAssigned Toguilleaer => migueldejuana
2012-03-26 13:20alostaleAssigned Tomigueldejuana => guilleaer
2012-03-28 13:32hgbotCheckin
2012-03-28 13:32hgbotNote Added: 0046829
2012-03-28 13:32hgbotStatusscheduled => resolved
2012-03-28 13:32hgbotResolutionopen => fixed
2012-03-28 13:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/14aebcd3205248ced2227e79412430793fcad22d [^]
2012-03-28 17:31guilleaerNote Added: 0046850
2012-03-30 12:17marvintmStatusresolved => closed
2012-03-30 12:17marvintmFixed in Version => 3.0MP10
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047259
2012-04-16 18:10szapataNote Added: 0047597
2012-04-16 18:10szapataStatusclosed => new
2012-04-16 18:10szapataResolutionfixed => open
2012-04-16 18:10szapataFixed in Version3.0MP10 =>
2012-04-17 18:10guilleaerStatusnew => scheduled
2012-04-17 18:10guilleaerfix_in_branch => pi
2012-04-17 18:11guilleaerNote Added: 0047679
2012-04-17 18:11guilleaerStatusscheduled => resolved
2012-04-17 18:11guilleaerFixed in Version => 3.0MP11
2012-04-17 18:11guilleaerFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/14aebcd3205248ced2227e79412430793fcad22d [^] => 98819a044ef6377b84f4cb74a291fd377b31607f
2012-04-17 18:11guilleaerResolutionopen => fixed
2012-04-17 18:13guilleaerNote Added: 0047680
2012-04-23 12:18AugustoMauchNote Added: 0047874
2012-04-23 12:18AugustoMauchStatusresolved => closed

Notes
(0046611)
szapata   
2012-03-21 17:55   
And even more, if you press the visible button you can delete records.
(0046829)
hgbot   
2012-03-28 13:32   
Repository: erp/devel/pi
Changeset: 14aebcd3205248ced2227e79412430793fcad22d
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Wed Mar 28 13:21:37 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/14aebcd3205248ced2227e79412430793fcad22d [^]

Fixed issue 17537: records of undeleatable tables cant be deleted

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-tab.js.ftl
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0046850)
guilleaer   
2012-03-28 17:31   
Test plan:

1. Logged as system administrator, set one table E.g c_bpartner as no deleteable using the tables and columns window.
2. Change you role to F&B international group admin
3. Open the Business partners window
4. Try to delete one row using the toolbar or the context menu or the shortcut (ctrl+supr). It shouldn't be possible

This fix is not risky
(0047259)
hudsonbot   
2012-04-02 06:12   
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/7814864461ac [^]

Maturity status: Test
(0047597)
szapata   
2012-04-16 18:10   
If you try deleting with the Supr. key you can delete a record. So I think the issue is not fixed.

On the other hand, I think that this functionality should be set at Tab level instead of table level. Is very common to have several tabs pointing the same table and it would be interesting to have the flexibility o add records but not delete in some tabs and allow create and delete from other tabs. So, the approach would be to create a few new UI Patterns:
- Create Only
- Delete Only
- Edit and delete Only

Best Regards.
(0047679)
guilleaer   
2012-04-17 18:11   
Repository: erp/devel/pi
Changeset: 98819a044ef6377b84f4cb74a291fd377b31607f
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Apr 17 18:01:26 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/98819a044ef6377b84f4cb74a291fd377b31607f [^] [^]

Fixed issue 15537: records of undeleatable tables cant be deleted using supr shortcut.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
---
(0047680)
guilleaer   
2012-04-17 18:13   
Test plan:

Repeat the steps to reproduce and try to delete the line using SUPR.

This fix is not risky
(0047874)
AugustoMauch   
2012-04-23 12:18   
Code reviewed and verified in pi@4c5f3e0c2556.