odex30_standard/odex30_base/system_notification/views/views.xml

78 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Automation Form View -->
<record id="view_base_group_automation_form" model="ir.ui.view">
<field name="name">Automations</field>
<field name="model">automation.group</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="model_id"/>
</group>
<notebook>
<page string="Automated Actions">
<field name="atuomation_ids" context="{'default_model_id': model_id}">
<list>
<field name="name"/>
<field name="model_id"/>
<!-- <field name="state"/>-->
<field name="trigger"/>
<field name="active"/>
</list>
<form>
<sheet>
<group>
<field name="name"/>
<field name="model_id"/>
<!-- <field name="state"/>-->
<field name="trigger"/>
<field name="active"/>
</group>
</sheet>
</form>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Automation List View -->
<record id="view_base_group_automation_list" model="ir.ui.view">
<field name="name">base.automation.list</field>
<field name="model">automation.group</field>
<field name="arch" type="xml">
<list string="Automation Groups">
<field name="model_id"/>
</list>
</field>
</record>
<!-- Automation Action -->
<record id="base_automation_act" model="ir.actions.act_window">
<field name="name">Automated Actions</field>
<field name="res_model">automation.group</field>
<field name="view_mode">list,form</field>
<field name="view_id" ref="view_base_group_automation_list"/>
<field name="help" type="html">
<p class="o_view_nocontent_create">
Click to setup a new automated automation.
</p>
<p>
Use automated actions to automatically trigger actions for
various screens. Example: a lead created by a specific user may
be automatically set to a specific sales channel, or an
opportunity which still has status pending after 14 days might
trigger an automatic reminder email.
</p>
</field>
</record>
<menuitem id="menu_base_group_automation_form"
parent="base_automation.menu_base_automation_form"
name="states notification"
action="base_automation_act"/>
</odoo>