mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-25 22:47:44 -06:00
[IMP][9.0] Change Requests and workflow improvements on documents (#155)
* [IMP] Refactor document_page_approval to always use states, and a few code improvements * [IMP] Add QWeb report to print document pages * Categories don't save content * FIX Last Contributor (uid and date). Use related fields instead of computed where possible. Fix search views, store some fields to make them searchable, added filters * Add api.depends on computed diff
This commit is contained in:
committed by
Maxime Chambreuil
parent
17d757fd95
commit
96256b9872
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>
|
||||
Reference in New Issue
Block a user