Browse Source

[INIT][SPEC1001] First module task modification

pull/1/merge
Thibault Francois 9 years ago
parent
commit
333694995e
  1. 34
      .gitignore
  2. 2
      beesdoo_project/__init__.py
  3. 23
      beesdoo_project/__openerp__.py
  4. 1
      beesdoo_project/models/__init__.py
  5. 21
      beesdoo_project/models/task.py
  6. 22
      beesdoo_project/views/task.xml

34
.gitignore

@ -0,0 +1,34 @@
# sphinx build directories
_build/
# dotfiles
.*
!.gitignore
!.mailmap
# compiled python files
*.py[co]
# setup.py egg_info
*.egg-info
# emacs backup files
*~
# hg stuff
*.orig
status
# odoo filestore
openerp/filestore
# maintenance migration scripts
openerp/addons/base/maintenance
# generated for windows installer?
install/win32/*.bat
install/win32/meta.py
# various virtualenv
/bin/
/build/
/dist/
/include/
/lib/
/man/
/share/
/src/

2
beesdoo_project/__init__.py

@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
import models

23
beesdoo_project/__openerp__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
{
'name': "Beescoop Project Management",
'summary': """
Module that customize project management for Beescoop
""",
'description': """
""",
'author': "Beescoop - Cellule IT",
'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Project Management',
'version': '0.1',
'depends': ['project'],
'data': [
'views/task.xml',
],
}

1
beesdoo_project/models/__init__.py

@ -0,0 +1 @@
import task

21
beesdoo_project/models/task.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
'''
Created on 5 déc. 2015
@author: Thibault François
'''
from openerp import models, fields, api
class Task(models.Model):
_inherit = 'project.task'
author_id = fields.Many2one('res.users', string="Author")
reviewer_id = fields.Many2one('res.users', string="Reviewer")
tester_id = fields.Many2one('res.users', string="Tester")
link_task_ids = fields.Many2many('project.task',
relation="link_task_relation_table",
column1='user1_id',
column2='user2_id', string="Linked Tasks")

22
beesdoo_project/views/task.xml

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="beesdoo_project_task_view_form">
<field name="name">beesdoo.project.task.view.form</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2" />
<field name="arch" type="xml" >
<field name="user_id" position="before">
<field name="author_id" />
</field>
<field name="user_id" position="after">
<field name="reviewer_id" />
<field name="tester_id" />
</field>
<notebook position="inside">
<page string="Linked Tasks" name="link_tasks">
<field name="link_task_ids" />
</page>
</notebook>
</field>
</record>
</odoo>
Loading…
Cancel
Save