Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0022083 | Openbravo ERP | 00. Application dictionary | public | 2012-10-24 10:18 | 2012-11-02 13:46 |
|
| Reporter | mirurita | |
| Assigned To | mtaal | |
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 20 | OS Version | Community Appliance |
| Product Version | pi | |
| Target Version | | Fixed in Version | 3.0MP17 | |
| Merge Request Status | |
| Review Assigned To | AugustoMauch |
| 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 | 0022083: Computed columns should work also with non primitive references (table, tabledir, search, OBUISEL_Selector Reference...) |
| Description | Computed columns should work also with non primitive references (table, tabledir, search, OBUISEL_Selector Reference...) |
| Steps To Reproduce | 1) Create a new column on c_invoice table
- Column name: TestComputedColumn
- SQLLogic:
(select max(il.c_invoiceline_id) from c_invoiceline il where il.c_invoice_id = c_invoice_id)
- Reference: Table
- Reference Search Key: Project Selector
2) Create corresponding field for previous column on Sales Invoice >> Header tab.
3) Compile a go to this window.
You will get an error: Could not execute query
it is trying to select c_invoice.TestComputedColumn column in database when it does not exist.
|
| Proposed Solution | It is possible to use the formula property also for many-to-one references in the hibernate mapping file. |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2012-10-24 10:18 | mirurita | New Issue | |
| 2012-10-24 10:18 | mirurita | Assigned To | => mtaal |
| 2012-10-24 10:18 | mirurita | Modules | => Core |
| 2012-10-24 10:18 | mirurita | OBNetwork customer | => No |
| 2012-10-24 22:46 | mtaal | Review Assigned To | => AugustoMauch |
| 2012-10-24 22:46 | mtaal | Proposed Solution updated | |
| 2012-10-24 22:54 | hgbot | Checkin | |
| 2012-10-24 22:54 | hgbot | Note Added: 0053667 | |
| 2012-10-24 22:54 | hgbot | Status | new => resolved |
| 2012-10-24 22:54 | hgbot | Resolution | open => fixed |
| 2012-10-24 22:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ca38f3f7ec3b9f485182fb5350bbf099b50757c5 [^] |
| 2012-10-25 12:39 | hudsonbot | Checkin | |
| 2012-10-25 12:39 | hudsonbot | Note Added: 0053711 | |
| 2012-10-30 14:33 | AugustoMauch | Note Added: 0053826 | |
| 2012-10-30 14:33 | AugustoMauch | Status | resolved => new |
| 2012-10-30 14:33 | AugustoMauch | Resolution | fixed => open |
| 2012-10-30 17:29 | hgbot | Checkin | |
| 2012-10-30 17:29 | hgbot | Note Added: 0053844 | |
| 2012-10-30 17:29 | hgbot | Status | new => resolved |
| 2012-10-30 17:29 | hgbot | Resolution | open => fixed |
| 2012-10-30 17:29 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/ca38f3f7ec3b9f485182fb5350bbf099b50757c5 [^] => http://code.openbravo.com/erp/devel/pi/rev/b1a3f1b424e0a6cc755b358dddd0fd1278ce41ad [^] |
| 2012-10-31 13:31 | hudsonbot | Checkin | |
| 2012-10-31 13:31 | hudsonbot | Note Added: 0053943 | |
| 2012-11-02 13:46 | AugustoMauch | Note Added: 0053983 | |
| 2012-11-02 13:46 | AugustoMauch | Status | resolved => closed |
| 2012-11-02 13:46 | AugustoMauch | Fixed in Version | => 3.0MP17 |
|
Notes |
|
|
(0053667)
|
|
hgbot
|
|
2012-10-24 22:54
|
|
Repository: erp/devel/pi
Changeset: ca38f3f7ec3b9f485182fb5350bbf099b50757c5
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Oct 24 22:53:37 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ca38f3f7ec3b9f485182fb5350bbf099b50757c5 [^]
Fixes issue 22083: Computed columns should work also with non primitive references
Property formula is also supported for many-to-one
---
M src/org/openbravo/dal/core/DalMappingGenerator.java
---
|
|
|
|
|
|
|
|
|
|
The compilation fails after creating the column and the field the way it is described in the steps to reproduce. |
|
|
|
(0053844)
|
|
hgbot
|
|
2012-10-30 17:29
|
|
Repository: erp/devel/pi
Changeset: b1a3f1b424e0a6cc755b358dddd0fd1278ce41ad
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Oct 30 17:28:35 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b1a3f1b424e0a6cc755b358dddd0fd1278ce41ad [^]
Fixes issue 22083: Computed columns should work also with non primitive references
Prevent a virtual/list property for properties which have sql logic
---
M src/org/openbravo/base/model/ModelProvider.java
---
|
|
|
|
|
|
|
|
|
|
Code reviewed and verified in pi@37da9a5ba373 |
|