Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020209Openbravo ERPA. Platformpublic2012-04-04 13:512012-04-20 15:13
psarobe 
marvintm 
urgentmajoralways
closedfixed 
5
pi 
3.0MP113.0MP11 
Core
No
0020209: Templates (print buttons) are not working in transaction documents if the org is different from the org of the document
Printing a document fails if the organization of the transaction is different from the organization of the document type.

The system is not taking into account the org tree.

If the org tree is as follows:

--*
----A
------A1
------A2

and the document type is created in A and the transaction in A1, then printing button fails

It should work since A1 belongs to A
1. Create that structure (org tree)
2. Apply the core dataset to A
3. Create a sales invoice document in A1
4. Print the document

Fails

Expected behaviour: It should print the sales invoce
No tags attached.
related to design defect 0034935 acknowledged Triage Platform Base The criterion of selection of the email Definitions is not correct 
Issue History
2012-04-04 13:51psarobeNew Issue
2012-04-04 13:51psarobeAssigned To => alostale
2012-04-04 13:51psarobeModules => Core
2012-04-04 22:32shuehnerIssue Monitored: shuehner
2012-04-12 15:53alostaleAssigned Toalostale => marvintm
2012-04-13 11:56hgbotCheckin
2012-04-13 11:56hgbotNote Added: 0047561
2012-04-13 11:56hgbotStatusnew => resolved
2012-04-13 11:56hgbotResolutionopen => fixed
2012-04-13 11:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e103ba0ec245af8d29076d34f3af51b12fee7a50 [^]
2012-04-17 05:32hudsonbotCheckin
2012-04-17 05:32hudsonbotNote Added: 0047650
2012-04-20 15:12alostaleNote Added: 0047796
2012-04-20 15:12alostaleStatusresolved => closed
2012-04-20 15:12alostaleFixed in Version => 3.0MP11
2012-04-20 15:13alostaleNote Added: 0047797
2017-01-12 17:40NaroaIriarteRelationship addedrelated to 0034935

Notes
(0047561)
hgbot   
2012-04-13 11:56   
Repository: erp/devel/pi
Changeset: e103ba0ec245af8d29076d34f3af51b12fee7a50
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Apr 13 11:24:20 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/e103ba0ec245af8d29076d34f3af51b12fee7a50 [^]

Fixed issue 20209. Templates will be found by looking at the natural tree of the organization

---
M src/org/openbravo/erpCommon/utility/reporting/EmailDefinition_data.xsql
M src/org/openbravo/erpCommon/utility/reporting/Template_data.xsql
---
(0047650)
hudsonbot   
2012-04-17 05:32   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cedf57621434 [^]

Maturity status: Test
(0047796)
alostale   
2012-04-20 15:12   
Code reviewed and verified on pi@7e96bd54d7b0
(0047797)
alostale   
2012-04-20 15:13   
Code review:
-position field in EmailDefinition_data is no longer required, it can be removed. It is not the case of Template_data as it is public.