Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0055640Openbravo ERPA. Platformpublic2024-05-31 12:202024-09-20 15:24
caristu 
Triage Platform Base 
highminorhave not tried
closedfixed 
5
 
PR24Q4 
Core
No
0055640: on change function not executed on newly created records of P&E grids
Having a P&E grid that accepts creating new records on it, the on change functions are not being executed for the newly created records.

This is because the blur function of the items is being adapted the first time the record inline editor is opened. But if after that a new item is created (because a new record is added) the blur function is not being adapted for the newly created items.
This problem can be reproduced with the "Incident" grid in the Confirm Task process of the sales order window. This grid is currently in development so it is necessary to use this branch[1] to reproduce the problem.

1) Using the AWO-QA client, create a new sales order with a line
2) Book it and create a picking for it
3) Switch to the Lines subtab, select the line.
4) Switch to the Task subtab. Edit the record to have a different confirmed quantity than the lower quantity. Press on the "Confirm" process.
5) In the Incident grid, in the displayed record enter a lower quantity than the default one and add a comment
6) A new record is created. Repeat the same done in step 5) but for this new line. Note that a new line is not created because the on change function is not being executed.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/merge_requests/258 [^]
No tags attached.
blocks feature request 0055574 closed caristu Modules Stock Incident Engine 
Issue History
2024-05-31 12:20caristuNew Issue
2024-05-31 12:20caristuAssigned To => Triage Platform Base
2024-05-31 12:20caristuModules => Core
2024-05-31 12:20caristuTriggers an Emergency Pack => No
2024-05-31 12:20caristuRelationship addedblocks 0055574
2024-05-31 12:24caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28062#r28062
2024-05-31 12:29hgbotNote Added: 0165410
2024-09-20 15:24hgbotResolutionopen => fixed
2024-09-20 15:24hgbotStatusnew => closed
2024-09-20 15:24hgbotFixed in Version => PR24Q4
2024-09-20 15:24hgbotNote Added: 0169443
2024-09-20 15:24hgbotNote Added: 0169444

Notes
(0165410)
hgbot   
2024-05-31 12:29   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1263 [^]
(0169443)
hgbot   
2024-09-20 15:24   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: b33f8584205beb4fac034db388b7a5a8e424870b
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 20-09-2024 10:29:37
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/b33f8584205beb4fac034db388b7a5a8e424870b [^]

fixes BUG-55640: on change function not executed on newly created records of P&E grids

  The blur property of the P&E grid items was being properly adapted to
execute the on change functions, the first time the record inline editor
was shown.

  But for the case of the grids that accepts creating new records, the
blur function was not being set for the grid items that may be created
whenever a new record is added.

  To fix this problem, now we are always setting the adapted blur
function for all the grid items that do not have it already set
regardless if it is the first time the record inline editor is being
opened or not.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
(0169444)
hgbot   
2024-09-20 15:24   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1263 [^]