[FIX]Notes enhancements : better handling of form hierarchy
This commit is contained in:
parent
0425f39fdd
commit
92a4430de2
|
@ -0,0 +1,16 @@
|
||||||
|
# -*- coding: 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/>.
|
|
@ -0,0 +1,30 @@
|
||||||
|
# -*- coding: 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/>.
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Note Base Template',
|
||||||
|
'summary': 'Note form replacement',
|
||||||
|
'description': '',
|
||||||
|
'version': '0.1',
|
||||||
|
'category': 'Tools',
|
||||||
|
'author': 'Fabien Bourgeois',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'application': False,
|
||||||
|
'installable': True,
|
||||||
|
'depends': ['note'],
|
||||||
|
'data': ['views/note_view.xml']
|
||||||
|
}
|
|
@ -0,0 +1,53 @@
|
||||||
|
<?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>
|
||||||
|
<!-- New form -->
|
||||||
|
<record id="form" 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_form" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<form position="replace">
|
||||||
|
<form string="Note">
|
||||||
|
<header>
|
||||||
|
<field name="stage_id" domain="[('user_id','=',uid)]"
|
||||||
|
widget="statusbar" clickable="1" />
|
||||||
|
</header>
|
||||||
|
<sheet>
|
||||||
|
<group>
|
||||||
|
<field name="tag_ids" widget="many2many_tags" string="Tags"/>
|
||||||
|
</group>
|
||||||
|
<group>
|
||||||
|
<field name="memo" widget="html" class="oe_memo"
|
||||||
|
editor_height="450px" />
|
||||||
|
</group>
|
||||||
|
</sheet>
|
||||||
|
<div class="oe_chatter">
|
||||||
|
<field name="message_follower_ids" widget="mail_followers"/>
|
||||||
|
<field name="message_ids" widget="mail_thread"/>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</form>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
|
@ -24,6 +24,6 @@
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'depends': ['note', 'project'],
|
'depends': ['note_base', 'project'],
|
||||||
'data': ['note_task_view.xml']
|
'data': ['note_task_view.xml']
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,37 +19,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
<!-- New form -->
|
<!-- Form -->
|
||||||
<record id="note.view_note_note_form" model="ir.ui.view">
|
<record id="note_task_form" model="ir.ui.view">
|
||||||
<field name="name">Note Task</field>
|
<field name="name">Note Task</field>
|
||||||
<field name="model">note.note</field>
|
<field name="model">note.note</field>
|
||||||
|
<field name="inherit_id" ref="note_base.form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Note">
|
<field name="tag_ids" position="before">
|
||||||
<header>
|
<field name="task_id" string="Linked task" />
|
||||||
<field
|
</field>
|
||||||
name="stage_id"
|
|
||||||
domain="[('user_id','=',uid)]"
|
|
||||||
widget="statusbar"
|
|
||||||
clickable="1" />
|
|
||||||
</header>
|
|
||||||
<sheet>
|
|
||||||
<group>
|
|
||||||
<field name="task_id" string="Linked task" />
|
|
||||||
<field name="tag_ids" widget="many2many_tags" string="Tags"/>
|
|
||||||
</group>
|
|
||||||
<group>
|
|
||||||
<field
|
|
||||||
name="memo"
|
|
||||||
widget="html"
|
|
||||||
class="oe_memo"
|
|
||||||
editor_height="450px" />
|
|
||||||
</group>
|
|
||||||
</sheet>
|
|
||||||
<div class="oe_chatter">
|
|
||||||
<field name="message_follower_ids" widget="mail_followers"/>
|
|
||||||
<field name="message_ids" widget="mail_thread"/>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<!-- Kanban extension -->
|
<!-- Kanban extension -->
|
||||||
|
|
Loading…
Reference in New Issue