File: ir_actions_server_views.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 (67 lines) | stat: -rw-r--r-- 4,475 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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>

        <record model="ir.ui.view" id="view_server_action_form_template">
            <field name="name">ir.actions.server.form</field>
            <field name="model">ir.actions.server</field>
            <field name="inherit_id" ref="base.view_server_action_form"/>
            <field name="arch" type="xml">
                <xpath expr="//group[@name='action_content']" position="inside">
                    <field name="activity_type_id" options="{'no_create': True, 'no_open': True}"
                        required="state == 'next_activity'" invisible="state != 'next_activity'"/>
                    <field name="activity_summary" placeholder="e.g. Discuss proposal" invisible="state != 'next_activity'"/>
                </xpath>
                <xpath expr="//group[@name='action_content']" position="after">
                    <group invisible="state != 'next_activity'">
                        <label for="activity_date_deadline_range"/>
                        <div class="o_row">
                            <field name="activity_date_deadline_range" class="oe_inline"/>
                            <field name="activity_date_deadline_range_type" class="oe_inline" required="state == 'next_activity' and activity_date_deadline_range &gt; 0"/>
                        </div>
                        <field name="activity_user_type" required="state == 'next_activity'"/>
                        <field name="activity_user_field_name" placeholder="e.g. user_id" invisible="activity_user_type == 'specific'" required="state == 'next_activity' and activity_user_type == 'generic'"/>
                        <field name="activity_user_id" placeholder="Choose a user..." invisible="activity_user_type == 'generic'" required="state == 'next_activity' and activity_user_type == 'specific'"/>
                    </group>
                    <field name="activity_note" class="oe-bordered-editor" placeholder="Add a description to your activity..." invisible="state != 'next_activity'"/>
                </xpath>
                <xpath expr="//field[@name='link_field_id']" position="after">
                    <field name="partner_ids" string="Followers to add" widget="many2many_tags"
                           placeholder="Choose a user..."
                           invisible="state != 'followers'"
                           required="state == 'followers'"/>
                    <field name="partner_ids" string="Followers to remove" widget="many2many_tags"
                           placeholder="Choose a user..."
                           invisible="state != 'remove_followers'"
                           required="state == 'remove_followers'"/>
                    <field name="template_id"
                           placeholder="Choose a template..."
                           invisible="state != 'mail_post'"
                           required="state == 'mail_post'"
                           context="{'default_model': model_name,
                                     'default_use_default_to': True}"/>
                    <label for="mail_post_method" invisible="state != 'mail_post'"/>
                    <div class="d-flex flex-column" invisible="state != 'mail_post'">
                        <field name="mail_post_method" required="state == 'mail_post'"/>
                        <div class="text-muted">
                            <span invisible="mail_post_method != 'email'">
                                The message will be sent as an email to the recipients of the
                                template and will not appear in the messaging history.
                            </span>
                            <span invisible="mail_post_method != 'note'">
                                The message will be posted as an internal note visible to internal
                                users in the messaging history.
                            </span>
                            <span invisible="mail_post_method != 'comment'">
                                The message will be posted as a message on the record,
                                notifying all followers. It will appear in the messaging history.
                            </span>
                        </div>
                    </div>
                    <field name="mail_post_autofollow" invisible="1"/>
                </xpath>
            </field>
        </record>

    </data>
</odoo>