mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 18:38:41 -06:00
Merge f223536d50
into 17d757fd95
This commit is contained in:
commit
71ce750e1c
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Document Page',
|
'name': 'Document Page',
|
||||||
'version': '9.0.1.0.1',
|
'version': '9.0.1.1.0',
|
||||||
'category': 'Knowledge Management',
|
'category': 'Knowledge Management',
|
||||||
'author': 'OpenERP SA, Odoo Community Association (OCA)',
|
'author': 'OpenERP SA, Odoo Community Association (OCA)',
|
||||||
'images': ['images/category_list.png', 'images/create_category.png',
|
'images': ['images/category_list.png', 'images/create_category.png',
|
||||||
@ -37,6 +37,7 @@
|
|||||||
'wizard/document_page_create_menu.xml',
|
'wizard/document_page_create_menu.xml',
|
||||||
'wizard/document_page_show_diff.xml',
|
'wizard/document_page_show_diff.xml',
|
||||||
'views/document_page.xml',
|
'views/document_page.xml',
|
||||||
|
'views/report_document_page.xml',
|
||||||
'security/document_page_security.xml',
|
'security/document_page_security.xml',
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
],
|
],
|
||||||
|
34
document_page/views/report_document_page.xml
Executable file
34
document_page/views/report_document_page.xml
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<template id="report_documentpage_doc">
|
||||||
|
<t t-call="report.external_layout">
|
||||||
|
|
||||||
|
<div class="page">
|
||||||
|
<h1 t-field="doc.display_name" />
|
||||||
|
<div t-raw="doc.display_content" />
|
||||||
|
</div>
|
||||||
|
</t>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template id="report_documentpage">
|
||||||
|
<t t-call="report.html_container">
|
||||||
|
<t t-foreach="docs" t-as="doc">
|
||||||
|
<t t-call="document_page.report_documentpage_doc" />
|
||||||
|
</t>
|
||||||
|
</t>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<report
|
||||||
|
id="report_document_page"
|
||||||
|
string="Document Page"
|
||||||
|
model="document.page"
|
||||||
|
report_type="qweb-pdf"
|
||||||
|
file="document_page.report_documentpage"
|
||||||
|
name="document_page.report_documentpage"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
Loading…
Reference in New Issue
Block a user