You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.2 KiB
61 lines
2.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_changeset_field_rule_tree" model="ir.ui.view">
|
|
<field name="name">changeset.field.rule.tree</field>
|
|
<field name="model">changeset.field.rule</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Changeset Fields Rules">
|
|
<field name="field_id"/>
|
|
<field name="source_model_id"/>
|
|
<field name="action"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_changeset_field_rule_form" model="ir.ui.view">
|
|
<field name="name">changeset.field.rule.form</field>
|
|
<field name="model">changeset.field.rule</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Changeset Fields Rules">
|
|
<sheet string="Changeset Fields Rules">
|
|
<group>
|
|
<field name="field_id"
|
|
options="{'no_create_edit': True, 'no_open': True}"
|
|
/>
|
|
<field name="action"/>
|
|
<field name="source_model_id"
|
|
widget="selection" />
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_changeset_field_rule_search" model="ir.ui.view">
|
|
<field name="name">changeset.field.rule.search</field>
|
|
<field name="model">changeset.field.rule</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Changeset Fields Rules">
|
|
<field name="field_id"/>
|
|
<field name="source_model_id"/>
|
|
<field name="action"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="action_changeset_field_rule_view">
|
|
<field name="name">Changeset Fields Rules</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">changeset.field.rule</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="search_view_id" ref="view_changeset_field_rule_search"/>
|
|
</record>
|
|
|
|
<menuitem id="menu_changeset_field_rule"
|
|
parent="menu_changeset"
|
|
name="Field Rules"
|
|
groups="group_changeset_manager"
|
|
sequence="20"
|
|
action="action_changeset_field_rule_view"/>
|
|
</odoo>
|