* Added relaxng rule for button in tree view

* Improved report_sxw.py to use other model then active one

bzr revid: fabian@tinyerp.com-20081211174628-m6dr3wdal9ntrpff
This commit is contained in:
Fabian Semal
2008-12-11 18:46:28 +01:00
parent 05006c78fd
commit 4edacbb190
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@
<rng:ref name="field"/>
<rng:ref name="separator"/>
<rng:ref name="tree"/>
<rng:ref name="button"/>
<rng:ref name="group"/>
<rng:element name="newline"><rng:empty/></rng:element>
</rng:choice>
+1
View File
@@ -610,6 +610,7 @@ class report_sxw(report_rml):
attach = report_xml.attachment
rml = report_xml.report_rml_content
report_type = report_xml.report_type
context['actual_model']=report_xml.actual_model
else:
ir_menu_report_obj = pool.get('ir.ui.menu')
report_menu_ids = ir_menu_report_obj.search(cr, uid,