yaltik_odoo_custom/note_tags/note_tags_view.xml

50 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<openerp>
<data>
<!-- List View -->
<record id="view_tree_note_tags" model="ir.ui.view">
<field name="name">Note Tags</field>
<field name="model">note.tag</field>
<field name="arch" type="xml">
<tree string="Note Tags">
<field name="name"/>
</tree>
</field>
</record>
<!-- Action -->
<record id="action_note_tags_tree" model="ir.actions.act_window">
<field name="name">Note Tags</field>
<field name="res_model">note.tag</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<!-- MenuItems -->
<menuitem name="Notes" id="menu_note" parent="mail.mail_my_stuff"
sequence="21" />
<menuitem name="List" id="note.menu_note_notes" parent="menu_note"
sequence="1" action="note.action_note_note"/>
<menuitem name="Stages" id="note.menu_notes_stage"
parent="menu_note" action="note.action_note_stage" />
<menuitem id="menu_note_tags" name="Tags" parent="menu_note"
action="action_note_tags_tree" />
</data>
</openerp>