From a65e920266b35dcb4a14a58d4eb82fa8d86817ff Mon Sep 17 00:00:00 2001 From: Joel Zilli Date: Thu, 2 Nov 2023 10:55:57 -0300 Subject: [PATCH] [IMP] Added new model for exercise --- okr_management/__manifest__.py | 41 +++++++++++++++++++++++++ okr_management/init.py | 1 + okr_management/models/__init__.py | 1 + okr_management/models/okr_management.py | 22 +++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 okr_management/__manifest__.py create mode 100644 okr_management/init.py create mode 100644 okr_management/models/__init__.py create mode 100644 okr_management/models/okr_management.py diff --git a/okr_management/__manifest__.py b/okr_management/__manifest__.py new file mode 100644 index 00000000..45ba77c7 --- /dev/null +++ b/okr_management/__manifest__.py @@ -0,0 +1,41 @@ +############################################################################## +# +# Copyright (C) 2019 ADHOC SA (http://www.adhoc.com.ar) +# All Rights Reserved. +# +# 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 . +# +############################################################################## +{ + 'name': 'OKR Management', + 'version': '16.0.0.0.0', + 'category': 'Base', + 'sequence': 14, + 'summary': '', + 'author': 'ADHOC SA', + 'website': 'www.adhoc.com.ar', + 'license': 'AGPL-3', + 'images': [ + ], + 'depends': [ + 'base', + ], + 'data': [ + ], + 'demo': [ + ], + 'installable': True, + 'auto_install': False, + 'application': False, +} \ No newline at end of file diff --git a/okr_management/init.py b/okr_management/init.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/okr_management/init.py @@ -0,0 +1 @@ +from . import models diff --git a/okr_management/models/__init__.py b/okr_management/models/__init__.py new file mode 100644 index 00000000..d47bd6f6 --- /dev/null +++ b/okr_management/models/__init__.py @@ -0,0 +1 @@ +from . import okr_management \ No newline at end of file diff --git a/okr_management/models/okr_management.py b/okr_management/models/okr_management.py new file mode 100644 index 00000000..726b80f1 --- /dev/null +++ b/okr_management/models/okr_management.py @@ -0,0 +1,22 @@ +from odoo import models, fields, api + + +class OkrManagement(models.Model): + _name = 'ir.model.okr_management' + _description = 'ir.model.okr_management' + + objective_summary = fields.Text() + description_summary = fields.Text() + progress = fields.Float() + weight = fields.Float() + target = fields.Float() + result = fields.Float() + responsible_ids = fields.One2many() # me falta relacionarlo con los usuarios + team_id = fields.One2many() # me fatla relacionarlo con los equipos + action_plan = fields.Text() + comments = fields.Text() + interdependencies = fields.Text() + made_in_the_quarter = fields.Text() + notes_for_next_quarter = fields.Text() + + # Y falta todo lo otro...