Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0050242 | Openbravo ERP | A. Platform | public | 2022-09-13 17:04 | 2022-10-10 13:34 |
Reporter | migueldejuana | ||||
Assigned To | AugustoMauch | ||||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | Fixed in Version | PR23Q1 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0050242: Setting the value of a field in the Status Bar with an EventObserver need a refresh | ||||
Description | Using an EntityPersistenceEventObserver, if we modify a column (in onSave method) shown in the window Status Bar, the Status Bar do not show the change done in the Event Observer. It is not working in Form mode but it is working fine in Grid mode. | ||||
Steps To Reproduce | - Create this Event Observer: public class TestOrderStatusEventObserver extends EntityPersistenceEventObserver { private static final Entity[] ENTITIES = { ModelProvider.getInstance().getEntity(Order.ENTITY_NAME) }; private static final Property DOCSTATUS_PROPERTY = ENTITIES[0] .getProperty(Order.PROPERTY_DOCUMENTSTATUS); @Override protected Entity[] getObservedEntities() { return ENTITIES; } public void onSave(@Observes final EntityNewEvent event) { if (!isValidEvent(event)) { return; } event.setCurrentState(DOCSTATUS_PROPERTY, "CO"); } } - Open Sales Order window in the ERP - Create new Sales Order in Form Mode and Save. - ERROR! In the Status Bar, Document Status is "Draft" and it should be "Booked" - If we refresh the Sales Order, the Status Bar is updated and we see Document Status: Booked | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-09-13 17:04 | migueldejuana | New Issue | |||
2022-09-13 17:04 | migueldejuana | Assigned To | => Triage Platform Base | ||
2022-09-13 17:04 | migueldejuana | OBNetwork customer | => No | ||
2022-09-13 17:04 | migueldejuana | Modules | => Core | ||
2022-09-13 17:04 | migueldejuana | Triggers an Emergency Pack | => No | ||
2022-09-13 17:05 | migueldejuana | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24763#r24763 | ||
2022-09-13 17:06 | migueldejuana | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24764#r24764 | ||
2022-09-26 08:22 | AugustoMauch | Status | new => scheduled | ||
2022-09-26 08:22 | AugustoMauch | Assigned To | Triage Platform Base => meriem_azaf | ||
2022-10-02 23:53 | hgbot | Merge Request Status | => open | ||
2022-10-02 23:53 | hgbot | Note Added: 0141541 | |||
2022-10-03 00:09 | AugustoMauch | Assigned To | meriem_azaf => AugustoMauch | ||
2022-10-10 13:34 | hgbot | Merge Request Status | open => approved | ||
2022-10-10 13:34 | hgbot | Resolution | open => fixed | ||
2022-10-10 13:34 | hgbot | Status | scheduled => closed | ||
2022-10-10 13:34 | hgbot | Fixed in Version | => PR23Q1 | ||
2022-10-10 13:34 | hgbot | Note Added: 0141905 | |||
2022-10-10 13:34 | hgbot | Note Added: 0141906 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|