Skip to content
Snippets Groups Projects
Commit 5f02fe9a authored by Jigar Patel's avatar Jigar Patel Committed by Yannick Tivisse
Browse files

[MIG] pad_project: Migrate into new api

parent 0312063b
Branches
Tags
No related merge requests found
......@@ -3,16 +3,18 @@
{
'name': 'Pad on tasks',
'version': '1.0',
'category': 'Project',
'description': """
This module adds a PAD in all project form views.
=================================================
""",
'website': 'https://www.odoo.com/page/project-management',
'depends': ['project', 'pad'],
'data': ['views/project_task.xml'],
'demo': [],
'installable': True,
'depends': [
'project',
'pad'
],
'data': [
'views/project_task.xml'
],
'auto_install': True,
}
# -*- coding: utf-8 -*-
from openerp.tools.translate import _
from openerp.osv import fields, osv
# Part of Odoo. See LICENSE file for full copyright and licensing details.
class task(osv.osv):
from odoo import fields, models
class ProjectTask(models.Model):
_name = "project.task"
_inherit = ["project.task",'pad.common']
_columns = {
'description_pad': fields.char('Pad URL', pad_content_field='description')
}
_inherit = ["project.task", 'pad.common']
description_pad = fields.Char('Pad URL', pad_content_field='description')
<openerp>
<data>
<record id="view_task_form_with_pad" model="ir.ui.view">
<field name="name">project.task.form.pad</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<field name="description" position="replace">
<field name="description_pad" widget="pad"/>
</field>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_task_form2_inherit_pad_project" model="ir.ui.view">
<field name="name">project.task.form.inherit</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2" />
<field name="arch" type="xml">
<field name="description" position="replace">
<field name="description_pad" widget="pad" />
</field>
</record>
</data>
</openerp>
</field>
</record>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment