yaltik_odoo_custom/note_task/note_task_view.xml

53 lines
1.8 KiB
XML
Raw Normal View History

2016-07-29 08:47:40 +02:00
<?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>
<!-- Form -->
<record id="note_task_form" model="ir.ui.view">
2016-07-29 08:47:40 +02:00
<field name="name">Note Task</field>
<field name="model">note.note</field>
<field name="inherit_id" ref="note_base.form" />
2016-07-29 08:47:40 +02:00
<field name="arch" type="xml">
<field name="tag_ids" position="before">
<field name="task_id" string="Linked task" />
</field>
2016-07-29 08:47:40 +02:00
</field>
</record>
<!-- Kanban extension -->
<record id="view_kanban_note_task" model="ir.ui.view">
<field name="name">Note Task</field>
<field name="model">note.note</field>
<field name="inherit_id" ref="note.view_note_note_kanban" />
<field name="arch" type="xml">
<field name="tag_ids" position="after">
<field name="task_id" />
</field>
<xpath
expr="//div[contains(@t-attf-class, 'oe_kanban_content')]"
position="inside">
<p t-if="record.task_id.raw_value" style="color: grey">
Linked Task : <field name="task_id"/>
</p>
</xpath>
</field>
</record>
</data>
</openerp>