File: slide_channel_add.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (32 lines) | stat: -rw-r--r-- 1,570 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
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="slide_channel_view_form_add" model="ir.ui.view">
    <field name="name">slide.channel.view.form.add</field>
    <field name="model">slide.channel</field>
    <field name="arch" type="xml">
        <form js_class="website_new_content_form">
            <div class="oe_title">
                <label for="name" string="Course Title"/>
                <h1><field name="name" placeholder="e.g. Computer Science for kids" class="w-100"/></h1>
            </div>
            <group>
                <field name="website_url" invisible="1"/>
                <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" placeholder="Tags"/>
                <field name="channel_type" widget="image_radio" options="{'images': ['/website_slides/static/src/img/channel-training-layout.png', '/website_slides/static/src/img/channel-documentation-layout.png']}" string="Choose a layout"/>
                <field name="description" placeholder="Common tasks for a computer scientist is asking the right questions and answering questions..." class="mb-3"/>
                <field name="allow_comment" string="Allow Rating"/>
            </group>
        </form>
    </field>
</record>

<record id="slide_channel_action_add" model="ir.actions.act_window">
    <field name="name">New Course</field>
    <field name="res_model">slide.channel</field>
    <field name="view_mode">form</field>
    <field name="target">new</field>
    <field name="view_id" ref="slide_channel_view_form_add"/>
</record>

</odoo>