partner-contact/animal/views/animal_species.xml

62 lines
2.1 KiB
XML
Raw Normal View History

2021-06-06 02:14:23 +00:00
<flectra>
<!-- Animal Species Tree View -->
<record id="view_animal_species_tree" model="ir.ui.view">
<field name="name">view.animal.species.tree</field>
<field name="model">animal.species</field>
<field name="arch" type="xml">
<tree string="Species">
2022-02-13 03:14:24 +00:00
<field name="sequence" widget="handle" />
2021-06-06 02:14:23 +00:00
<field name="name" />
</tree>
</field>
</record>
<!-- Animal Species Form View -->
<record id="view_animal_species_form" model="ir.ui.view">
<field name="name">view.animal.species.form</field>
<field name="model">animal.species</field>
<field name="arch" type="xml">
<form string="Species">
<header />
<sheet>
<div class="oe_button_box" name="button_box" />
2022-02-13 03:14:24 +00:00
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<field name="active" invisible="1" />
2021-06-06 02:14:23 +00:00
<div class="oe_title">
<h1>
<field name="name" />
</h1>
</div>
<group id="main">
<group id="left" />
<group id="right" />
</group>
<notebook>
<page string="Breeds" id="breeds">
<field name="breed_ids" />
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_animal_species" model="ir.actions.act_window">
<field name="name">Species</field>
<field name="res_model">animal.species</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a species.
</p>
</field>
</record>
</flectra>