Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0048341Openbravo ERP07. Sales managementpublic2021-12-30 12:572022-01-26 07:30
0048341: Edit buttons on sales order lines disappear after editing
Edit buttons on sales order lines disappear after editing in the version 19Q4 and 21Q4
1) Go to the "Sales order" window
2) Clear the filter
3) Add the column "Order Reference" in grid view
4) Edit the first record in grid view, enter a value in the Order Reference view and click on the next record. Note that the Edit/Create buttons on the left side of the row that was just edited have dissappeared

Note that if instead of clicking on the next record we use the ARROW DOWN key as a shortcut, the issue is not reproduced
No tags attached.
? bug19.4.mp4 (4,640,713) 2021-12-30 12:57
Issue History
2021-12-30 12:57idiezNew Issue
2021-12-30 12:57idiezAssigned To => Triage Finance
2021-12-30 12:57idiezFile Added: bug19.4.mp4
2021-12-30 12:57idiezModules => Core
2021-12-30 12:57idiezRegression date => 2022-01-10
2021-12-30 12:57idiezTriggers an Emergency Pack => No
2021-12-31 09:14vmromanosAssigned ToTriage Finance => platform
2021-12-31 09:16vmromanosNote Added: 0134082
2022-01-03 10:40AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23478#r23478
2022-01-03 11:07AugustoMauchAssigned Toplatform => AugustoMauch
2022-01-03 11:08AugustoMauchStatusnew => scheduled
2022-01-25 09:50hgbotNote Added: 0134543
2022-01-26 07:30hgbotResolutionopen => fixed
2022-01-26 07:30hgbotStatusscheduled => closed
2022-01-26 07:30hgbotNote Added: 0134563
2022-01-26 07:30hgbotFixed in Version => PR22Q2
2022-01-26 07:30hgbotNote Added: 0134564

2021-12-31 09:16   
Hi Platform,

I'm able to reproduce it in livebuilds PI. It seems a problem in the grid's autosave when editing a field and moving to another record.
2022-01-25 09:50   
Merge Request created: [^]
2022-01-26 07:30   
Merge request merged: [^]
2022-01-26 07:30   
Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 45dda6f14808c5ec84f2b4efd24eec21b1318c71
Author: Augusto Mauch <>
Date: 26-01-2022 06:30:12
URL: [^]

Fixes ISSUE-48341: Grid edit buttons disappear in some windows

The problem was only reproducible in grids where canvas field columns were displayed (i.e. Sales Order displays two by default, Delivery Status and Invoice Status). Those
fields are managed by Smartclient as embeddedComponents and the area that contains the two buttons that disappear (OBGridButtonsComponent) is an embeddedComponent too.
Whenever the user moves to a different row those components are recreated/recomputed (grid buttons here [1], canvas fields here [2]). Canvas fields are recomputed maintaining
the row number they belong too, while grid buttons are recreated without a record number and rely on this smartclient function [3] to be assigned one. For that function to be
executed, the first of the embedded components must have a null row number, so if there is a canvas field that happens to be the first component in the embeddedComponents array,
the grid buttons component will not be assigned a row and thus will not be displayed.

Programatically assigning a row number on [1] when recomputing the grid buttons component does not work because [3] needs to be invoked (it sets a smartclient property that is
not visible), so to fix the problem I am ensuring that when canvas fields are recomputed in [2], its row number is unset

[1]\#L4963 [^]
[2]\#L434 [^]
[3]\#L2599 [^]

M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js