[IMP]Enhance note_task with cleanups
This commit is contained in:
parent
424801ab12
commit
0425f39fdd
@ -26,5 +26,4 @@
|
||||
'installable': True,
|
||||
'depends': ['note', 'project'],
|
||||
'data': ['note_task_view.xml']
|
||||
# 'qweb': [ 'static/src/xml/note_task_view_kanban.xml' ]
|
||||
}
|
||||
|
@ -23,18 +23,3 @@ class NoteTask(models.Model):
|
||||
|
||||
_inherit = 'note.note'
|
||||
task_id = fields.Many2one('project.task', 'Linked Task')
|
||||
|
||||
# @api.one
|
||||
# def onclick_note_is_done(self):
|
||||
# self.open = False
|
||||
# self.date_done = fields.date.today()
|
||||
# if self.task_id:
|
||||
# print(self.task_id.stage_id.name)
|
||||
# print('ok')
|
||||
# return True
|
||||
|
||||
|
||||
# class ProjectTask(models.Model):
|
||||
#
|
||||
# _inherit = 'project.task'
|
||||
# note_ids = fields.One2many('note.note', 'task_id', 'Linked notes')
|
||||
|
@ -52,20 +52,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Form extension -->
|
||||
<!--
|
||||
<record id="view_form_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_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="tag_ids" position="after">
|
||||
<label for="task_id">Linked Task</label>
|
||||
<field name="task_id" class="oe_inline" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
<!-- Kanban extension -->
|
||||
<record id="view_kanban_note_task" model="ir.ui.view">
|
||||
<field name="name">Note Task</field>
|
||||
@ -84,28 +70,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Force form view -->
|
||||
<!--
|
||||
<record model="ir.actions.act_window" id="action_form_note_task">
|
||||
<field name="name">Note</field>
|
||||
<field name="res_model">note.note</field>
|
||||
<field name="inherit_id" ref="note.action_note_note" />
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_id" ref="view_form_note_task "/>
|
||||
</record>
|
||||
-->
|
||||
<!-- Extend Task form to view linked notes -->
|
||||
<!-- OFF ATM : problems with permissions and portal/public users
|
||||
<record id="view_form_task_notes" model="ir.ui.view">
|
||||
<field name="name">Note Task</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_form2" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="company_id" position="after">
|
||||
<field name="note_ids" widget="many2many_tags" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
</data>
|
||||
</openerp>
|
||||
|
@ -1,26 +0,0 @@
|
||||
<?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/>.
|
||||
-->
|
||||
|
||||
<templates>
|
||||
<t t-extend="kanban-box">
|
||||
<t t-jquery="div[name='tag_ids']" operation="after">
|
||||
<field name="task_id"/>
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
@ -1,27 +0,0 @@
|
||||
<?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/>.
|
||||
-->
|
||||
|
||||
<templates>
|
||||
<t t-extend="kanban-box">
|
||||
<t t-jquery="div.oe_clear" t-operation="after">
|
||||
<span>lol</span>
|
||||
<field name="task_id" />
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
Loading…
x
Reference in New Issue
Block a user