File: doc.xml

package info (click to toggle)
oca-core 11.0.20180730-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 509,684 kB
  • sloc: xml: 258,806; python: 164,081; sql: 217; sh: 92; makefile: 16
file content (102 lines) | stat: -rw-r--r-- 5,262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8"?>
<odoo>
        <!-- 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>
            <field name="arch" type="xml">
                <tree string="Documentation TOC" editable="bottom">
                    <field name="sequence" widget="handle"/>
                    <field name="name"/>
                    <field name="forum_id"/>
                    <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 id="view_forum_post_kanban" model="ir.ui.view">
            <field name="name">forum.post.kanban</field>
            <field name="model">forum.post</field>
            <field name="arch" type="xml">
                <kanban default_group_by="documentation_stage_id" >
                    <field name="documentation_stage_id"/>
                    <field name="create_uid"/>
                    <field name="color"/>
                    <templates>
                    <t t-name="kanban-box">
                        <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click">
                            <div class="o_dropdown_kanban dropdown" groups="base.group_user">
                                <a class="dropdown-toggle btn" data-toggle="dropdown" href="#" >
                                    <span class="fa fa-ellipsis-v"/>
                                </a>
                                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                                    <li t-if="widget.editable"><a type="edit">Edit Post</a></li>
                                    <li t-if="widget.deletable"><a type="delete">Delete</a></li>
                                    <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
                                </ul>
                            </div>
                            <div class="o_kanban_record_top">
                                <b class="o_kanban_record_title"><field name="name"/></b>
                            </div>
                            <div class="o_kanban_record_bottom">
                                <div class="oe_kanban_bottom_left"/>
                                <div class="oe_kanban_bottom_right">
                                    <img t-att-src="kanban_image('res.users', 'image_small', record.create_uid.raw_value)" t-att-title="record.create_uid.value" width="24" height="24" class="oe_kanban_avatar"/>
                                </div>
                            </div>
                        </div>
                    </t>
                    </templates>
                </kanban>
            </field>
        </record>

        <record id="action_forum_doc_post" model="ir.actions.act_window">
            <field name="name">Documentation Posts</field>
            <field name="res_model">forum.post</field>
            <field name="view_type">form</field>
            <field name="view_mode">kanban,tree,form</field>
            <field name="domain">[('documentation_toc_id','!=', False)]</field>
        </record>
        <menuitem id="menu_forum_doc_posts"
            parent="website_forum.menu_website_forum" name="Documentation Posts"
            action="action_forum_doc_post" sequence="25"/>

        <record id="view_forum_post_doc_form" model="ir.ui.view">
            <field name="name">forum.post.form.doc</field>
            <field name="model">forum.post</field>
            <field name="inherit_id" ref="website_forum.view_forum_post_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='parent_id']" position="after">
                    <field name="documentation_toc_id"/>
                </xpath>
                <xpath expr="//sheet" position="before">
                    <header>
                        <field name="documentation_stage_id" widget="statusbar"/>
                    </header>
                </xpath>
            </field>
        </record>

        <record id="view_forum_post_doc_list" model="ir.ui.view">
            <field name="name">forum.post.list.doc</field>
            <field name="model">forum.post</field>
            <field name="inherit_id" ref="website_forum.view_forum_post_list"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='forum_id']" position="after">
                    <field name="documentation_toc_id"/>
                </xpath>
            </field>
        </record>
</odoo>