Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0034455 | Openbravo ERP | A. Platform | public | 2016-11-09 09:44 | 2016-11-10 10:01 | |||||||
Reporter | JONHM | |||||||||||
Assigned To | alostale | |||||||||||
Priority | immediate | Severity | minor | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | pi | |||||||||||
Target Version | 3.0PR16Q3.3 | Fixed in Version | 3.0PR16Q3.3 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | Production - QA Approved | |||||||||||
Regression date | 2016-04-18 | |||||||||||
Regression introduced in release | 3.0PR16Q3 | |||||||||||
Regression introduced by commit | http://code.openbravo.com/erp/devel/pi/rev/82f27ac1b1497b3a82646b140ab1b6e048f2b766 [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0034455: can't add attachment to Invoices after print and attach | |||||||||||
Description | If we try to add an attachment in [Purchase Invoice] window when there is already an attachment included, it shows an error "freemarker.template.TemplateModelException". | |||||||||||
Steps To Reproduce | In an instance with no modules in development 1) Open [Purchase Invoice] window and select some record 2) Press button "Print Record" and press "Yes" to attach the document 3) Expand attachments section and press "Add" to add a new document ---> It shows the error Caused by: freemarker.template.TemplateModelException: get(title) failed on instance of org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter ... Caused by: org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190) at org.openbravo.model.ad.ui.Element_$$_javassist_10.getADElementTrlList(Element_$$_javassist_10.java) at org.openbravo.client.application.window.OBViewUtil.getParameterTitle(OBViewUtil.java:105) at org.openbravo.client.application.window.OBViewParameterHandler$OBViewParameter.getTitle(OBViewParameterHandler.java:241) ... 85 more Note this happens when 2 is the first action in the current session regarding attachments for that window, in case add attachment is executed before, there is no issue. | |||||||||||
Proposed Solution | Workaround: if in this situation, log out and log in to be able to add new attachments. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-11-09 15:54 | alostale | Type | defect => backport | |||||||||
2016-11-09 15:54 | alostale | Target Version | => 3.0PR16Q3.4 | |||||||||
2016-11-09 16:16 | alostale | Review Assigned To | => caristu | |||||||||
2016-11-09 16:18 | alostale | Target Version | 3.0PR16Q3.4 => 3.0PR16Q3.3 | |||||||||
2016-11-09 16:36 | hgbot | Checkin | ||||||||||
2016-11-09 16:36 | hgbot | Note Added: 0091296 | ||||||||||
2016-11-09 16:36 | hgbot | Status | scheduled => resolved | |||||||||
2016-11-09 16:36 | hgbot | Resolution | open => fixed | |||||||||
2016-11-09 16:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR16Q3.3/rev/e5553b0adc51db4aabf87c5eccc0665791e142a9 [^] | |||||||||
2016-11-10 09:43 | hgbot | Checkin | ||||||||||
2016-11-10 09:43 | hgbot | Note Added: 0091315 | ||||||||||
2016-11-10 10:01 | caristu | Note Added: 0091321 | ||||||||||
2016-11-10 10:01 | caristu | Status | resolved => closed | |||||||||
2016-11-10 10:01 | caristu | Fixed in Version | => 3.0PR16Q3.3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|