Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2013-10-25 15:232013-11-27 13:15
ReportercaristuView Statuspublic 
Assigned Toshankarb 
PrioritynormalResolutionfixedFixed in Version3.0MP30
StatusclosedFix in branchFixed in SCM revision091cc28d75e0
ProjectionnoneETAnoneTarget Version3.0MP30
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned ToAugustoMauch
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0025028: Default value applied again after updating a numeric field with a trigger

DescriptionIf we have a trigger that updates a numeric field and also it has a default value, the default value is applied again after the trigger if the window is not refreshed.
Steps To Reproduce1) Create a trigger that updates a quantity (Attached is an example). For example a trigger that sets the qtyordered of orderline table to 3 before insert. (This column has 1 as default value)
2) Go to the [Sales Order] window. Create one record in the header.
3) Go to the lines tab. Create a new record, notice that the ordered quantity field is filled with 1.
4) Select a product and save. Notice that the field is updated with 3.
5) Save the record. Don't refresh the window.
6) Edit the line, change the lineno field and save. Notice that the default value has been applied again: the ordered quantity is now 1.
7) If we refresh the window in step 5) then, the problem is not happening.
TagsNo tags attached.
Attached Files? file icon triggerTest [^] (606 bytes) 2013-10-25 15:23 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0026395 closedguillermogil If you create a sales invoice in grid view and save it by losing focus a new empty record appears 
related to defect 0040463 closedcaristu UI broken when create a new row and before save clear the filter grid 

-  Notes
hgbot (developer)
2013-11-21 12:45

Repository: erp/devel/pi
Changeset: 091cc28d75e0fd11049eabfc3fdcc67825783830
Author: Shankar Balachandran <shankar.balachandran <at>>
Date: Thu Nov 21 16:57:23 2013 +0530
URL: [^]

Fixes Issue 25028: value not refreshed in numeric field in some cases

Update the focus cell value if different from edit form values.
To avoid the case where sometimes data updated through trigger is not showing up without refreshing.

M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
hudsonbot (developer)
2013-11-24 16:24

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]

Maturity status: Test
AugustoMauch (manager)
2013-11-27 13:15

Code reviewed and verified in pi@37745290efe5

- Issue History
Date Modified Username Field Change
2013-10-25 15:23 caristu New Issue
2013-10-25 15:23 caristu Assigned To => AugustoMauch
2013-10-25 15:23 caristu File Added: triggerTest
2013-10-25 15:23 caristu Modules => Core
2013-10-25 15:23 caristu Triggers an Emergency Pack => No
2013-10-25 15:23 caristu Target Version => 3.0MP30
2013-10-25 15:23 caristu Issue Monitored: networkb
2013-10-25 15:44 caristu Description Updated View Revisions
2013-11-20 05:10 shankarb Assigned To AugustoMauch => shankarb
2013-11-21 12:30 shankarb Review Assigned To => AugustoMauch
2013-11-21 12:31 shankarb Issue Monitored: AugustoMauch
2013-11-21 12:45 hgbot Checkin
2013-11-21 12:45 hgbot Note Added: 0062324
2013-11-21 12:45 hgbot Status new => resolved
2013-11-21 12:45 hgbot Resolution open => fixed
2013-11-21 12:45 hgbot Fixed in SCM revision => [^]
2013-11-24 16:24 hudsonbot Checkin
2013-11-24 16:24 hudsonbot Note Added: 0062357
2013-11-27 13:15 AugustoMauch Note Added: 0062409
2013-11-27 13:15 AugustoMauch Status resolved => closed
2013-11-27 13:15 AugustoMauch Fixed in Version => 3.0MP30
2014-04-28 10:55 guillermogil Relationship added related to 0026395
2019-06-11 13:18 caristu Relationship added related to 0040463

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker