[FIX] website_forum_doc: fixed tree view impossible to use to create new chapters (missing forum_id due to wrongly copy-pasted views) + fixed max width of images displayed in the doc.

This commit is contained in:
Thibault Delavallée 2014-08-18 11:31:34 +02:00
parent 356be5f077
commit af14158508
3 changed files with 12 additions and 24 deletions

View File

@ -0,0 +1,4 @@
.oe_toc_content img {
max-width: 600px;
height: auto !important;
}

View File

@ -3,7 +3,6 @@
<data>
<!-- DOCUMENTATION TOC VIEWS -->
<record id="view_documentation_toc_list" model="ir.ui.view">
<field name="name">forum.documentation.toc.list</field>
<field name="model">forum.documentation.toc</field>
@ -27,28 +26,6 @@
name="Documentation ToC" action="action_documentation_toc" sequence="20"/>
<record id="view_documentation_toc_list" model="ir.ui.view">
<field name="name">forum.documentation.toc.list</field>
<field name="model">forum.documentation.toc</field>
<field name="arch" type="xml">
<tree string="Documentation TOC" editable="bottom">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="parent_id"/>
</tree>
</field>
</record>
<record id="action_documentation_toc" model="ir.actions.act_window">
<field name="name">Documentation</field>
<field name="res_model">forum.documentation.toc</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
</record>
<menuitem id="menu_documentation"
parent="website_forum.menu_website_forum" groups="base.group_user"
name="Documentation ToC" action="action_documentation_toc" sequence="20"/>
<!-- Project Task Kanban View -->
<record model="ir.ui.view" id="view_forum_post_kanban">
<field name="name">forum.post.kanban</field>

View File

@ -2,6 +2,13 @@
<openerp>
<data>
<!-- Front-end assets: custom css -->
<template id="assets_frontend" inherit_id="website.assets_frontend" name="Shop">
<xpath expr="." position="inside">
<link rel='stylesheet' href='/website_forum_doc/static/src/css/website_forum_doc.css'/>
</xpath>
</template>
<!-- Layout add nav and footer -->
<template id="header_footer_custom" inherit_id="website.footer_default"
name="Footer Documentation Link">
@ -114,7 +121,7 @@
<div class="row">
<div class="col-sm-9">
<h1 class="page-header" t-field="post.name"/>
<blockquote t-if="bool(post.content)">
<blockquote class="oe_toc_content" t-if="bool(post.content)">
<t t-raw="post.content"/>
</blockquote>