Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions okr_management/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
.. |company| replace:: ADHOC SA

.. |company_logo| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-logo.png
:alt: ADHOC SA
:target: https://www.adhoc.com.ar

.. |icon| image:: https://raw.githubusercontent.com/ingadhoc/maintainer-tools/master/resources/adhoc-icon.png

.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

==============
ORK Management
==============

This module add a new app and models that are use to plan and track the definition of OKR in a company and internal areas.

New Models:

* OKR Plan
* OKR Quarter
* OKR Objective
* OKR KR

Installation
============

To install this module, you need to:

#. Just install this module.

Configuration
=============

To configure this module, you need to:

#. No configuration nedeed.

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: http://runbot.adhoc.com.ar/

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/ingadhoc/miscellaneous/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* |company| |icon|

Contributors
------------

Maintainer
----------

|company_logo|

This module is maintained by the |company|.

To contribute to this module, please visit https://www.adhoc.com.ar.
1 change: 1 addition & 0 deletions okr_management/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions okr_management/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
'name': 'OKR Management',
'version': '16.0.1.0.0',
'summary': 'Objectives and Key Results Methodology',
'author': 'ADHOC SA',
'maintainer': 'ADHOC SA',
'contributors': [
'Katherine Zaoral (zaoral)',
],
'depends': [
'base',
'hr',
],
'data': [
'views/okr_plan_views.xml',
'security/ir.model.access.csv',
],
'installable': True,
'auto_install': False,
'application': False,
}
4 changes: 4 additions & 0 deletions okr_management/demo/okr_plan_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>

</odoo>
1 change: 1 addition & 0 deletions okr_management/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import okr
73 changes: 73 additions & 0 deletions okr_management/models/okr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
from odoo import fields, models


class OkrBase(models.AbstractModel):

_name = 'okr.base'
_description = 'OKR Base'

name = fields.Char()
description = fields.Text()
progress = fields.Integer()
comments = fields.Text()


class OkrPlan(models.Model):

_name = 'okr.plan'
_description = 'OKR Plan By Year'

name = fields.Char() # TODO auto compute with the year of the related quarters.
quarter_ids = fields.One2many('okr.quarter', 'plan_id') # Auto group by date?


class OkrQuarter(models.Model):

_name = 'okr.quarter'
_description = 'OKR Quarter'

plan_id = fields.Many2one('okr.plan')
scope = fields.Selection([('global', 'Global'), ('area', 'Area')], required=True)
department_id = fields.Many2one('hr.department')

# TODO improve to manage period
name = fields.Char(required=True) # TODO Improve use display_name, Q1, Q2, Q3. Auto compute with dates?
date_start = fields.Date(required=True)
date_end = fields.Date(required=True)

okr_ids = fields.One2many('okr.objective', 'quarter_id', string="OKRs")
half_q_presentation = fields.Char()
final_q_presentation = fields.Char()


class OkrObjective(models.Model):

_name = 'okr.objective'
_description = 'OKR Objective'
_inherit = 'okr.base'

quarter_id = fields.Many2one('okr.quarter')
weight = fields.Selection([
('commitment', 'Commitment'),
('inspiracional', 'Inspiracional'),
])
kr_ids = fields.One2many('okr.kr', 'objective_id')


class OkrKr(models.Model):

_name = 'okr.kr'
_description = 'OKR KR'

_inherit = 'okr.base'

objective_id = fields.Many2one('okr.objective')
weight = fields.Integer()
target = fields.Integer()
result = fields.Integer()
responsible_id = fields.Many2one('hr.employee')
team_ids = fields.Many2many('hr.employee')
interdependencies = fields.Text()
action_plan = fields.Text()
url_task_file = fields.Char()
notes_next_q = fields.Text()
5 changes: 5 additions & 0 deletions okr_management/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_okr_plan_user,access.okr.plan.user,model_okr_plan,base.group_user,1,1,1,1
access_okr_quarter_user,access.okr.quarter.user,model_okr_quarter,base.group_user,1,1,1,1
access_okr_objective_user,access.okr.objective.user,model_okr_objective,base.group_user,1,1,1,1
access_okr_kr_user,access.okr.kr.user,model_okr_kr,base.group_user,1,1,1,1
29 changes: 29 additions & 0 deletions okr_management/views/okr_plan_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>

<record id="okr_plan_view_form" model="ir.ui.view">
<field name="name">okr.plan.view.form</field>
<field name="model">okr.plan</field>
<field name="arch" type="xml">
<form string="OKR Plan">
<sheet>
<group>
<field name="name"/>
<field name="quarter_ids"/>
</group>
</sheet>
</form>
</field>
</record>

<record id="okr_plan_action" model="ir.actions.act_window">
<field name="name">okr.plan</field>
<field name="res_model">okr.plan</field>
<field name="view_mode">tree,form</field>
</record>

<menuitem id="okr_menu_root" name="OKR"/>

<menuitem id="okr_plan_menu_act" name="OKR Plan" parent="okr_menu_root" action="okr_plan_action"/>

</odoo>