size int64 0 304k | ext stringclasses 1
value | lang stringclasses 1
value | branch stringclasses 1
value | content stringlengths 0 304k | avg_line_length float64 0 238 | max_line_length int64 0 304k |
|---|---|---|---|---|---|---|
24,444 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools import float_compare, float_is_zero
class StockReturnRequest(models.Model):
_name = "stock.re... | 39.362319 | 24,444 |
622 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Production Lot Traceability",
"summary": "Drill down/up the lots produced or consumed",
"version": "15.0.... | 38.8125 | 621 |
6,160 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import TransactionCase
class CommonStockLotTraceabilityCase(TransactionCase):
@classmethod
def setUpClass(cl... | 35.80814 | 6,159 |
2,760 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from .common import CommonStockLotTraceabilityCase
class TestStockLotTraceability(CommonStockLotTraceabilityCase):
def test_prod... | 43.109375 | 2,759 |
1,248 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class StockMoveLine(models.Model):
_inherit = "stock.move.line"
def write(self, vals):
... | 34.638889 | 1,247 |
7,837 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <ivan.todorovich@camptocamp.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
class StockProductionLot(models.Model):
_inherit = "stock.production.lot"
produce_lot_id... | 45.034483 | 7,836 |
553 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock Production Lot Active",
"summary": """
Allow to archive/unarchive a lot.""",
"version": "15.0.1.0.2",
"development_status": "Beta",
"license": "AGPL-3",
"author": "ACSONE SA/NV... | 32.529412 | 553 |
1,283 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestLotActive(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.product = cls.env.ref("product.product_pro... | 37.735294 | 1,283 |
720 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockProductionLot(models.Model):
_inherit = "stock.production.lot"
active = fields.Boolean(default=True)
@api.constrains("name", "product_id", "company_id")
def ... | 34.285714 | 720 |
641 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Stock lot product qty search",
"summary": "Allows to search on Quantity field of Lot/Serial Numbers",
"version": "15.0.1.0.0",
"development_status": "Alpha",
"category": "Inventory/Inventory",
... | 32.05 | 641 |
2,930 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo.exceptions import UserError
from odoo.tests import TransactionCase
from odoo.tools import float_compare, float_is_zero
class TestSearchLotProductQty(TransactionCase):
@classmethod
def setUpClass(cls):
... | 32.921348 | 2,930 |
2,720 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import _, fields, models
from odoo.exceptions import UserError
from odoo.osv.expression import OR
from odoo.tools import float_compare, float_is_zero
from odoo.addons.stock.models.product import OPERATORS
class P... | 41.212121 | 2,720 |
574 | py | PYTHON | 15.0 | # copyright 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "HR Contract Reference",
"version": "15.0.1.0.0",
"category": "Generic Modules/Human Resources",
"author": "Michael Telahun Makonnen, "
"Fekete Mihai (F... | 38.266667 | 574 |
541 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestContractReference(TransactionCase):
def setUp(self):
super(TestContractReference, self).setUp()
self.employee = self.env["hr.employee"].create({"nam... | 33.8125 | 541 |
572 | py | PYTHON | 15.0 | # copyright 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class HrContract(models.Model):
_inherit = "hr.contract"
name = fields.Char(
"Contract Reference", required=False, readonly=T... | 31.777778 | 572 |
712 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "HR Course",
"summary": """
This module allows your to manage employee's training courses""",
"version": "15.0.1.1.1",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Associatio... | 32.363636 | 712 |
635 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade # pylint: disable=W7936
_models_renames = [
("hr.course", "hr.course.schedule"),
]
_column_renames = {
"hr_course_attendee": [("course_id", "course_schedule_id")],
}
_table_renames = [("hr_course", "hr... | 31.75 | 635 |
1,093 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade # pylint: disable=W7936
@openupgrade.migrate()
def migrate(env, version):
if openupgrade.column_exists(env.cr, "hr_course", "migration_course_id"):
return
openupgrade.logged_query(
env... | 26.658537 | 1,093 |
3,278 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import odoo.tests.common as common
from odoo.exceptions import ValidationError
class TestHrCourse(common.TransactionCase):
def setUp(self):
super(TestHrCourse, self).setUp()
self.course_categ = self.env["... | 42.571429 | 3,278 |
704 | py | PYTHON | 15.0 | from odoo import api, fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
count_courses = fields.Integer(
"Number of courses", compute="_compute_count_courses"
)
courses_ids = fields.One2many(
"hr.course.attendee",
"employee_id",
string="Courses",
... | 26.074074 | 704 |
5,002 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class HrCourseSchedule(models.Model):
_name = "hr.course.schedule"
_description = "Course Schedule"
_inherit = "mail.thread"
name = fields.Char(required... | 33.125828 | 5,002 |
2,101 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class HRCourseAttendee(models.Model):
_name = "hr.course.attendee"
_description = "Course Attendee"
course_schedule_id = fields.Many2one(
"hr.course.schedule", ondele... | 31.358209 | 2,101 |
748 | py | PYTHON | 15.0 | # © 2012 Odoo Canada
# © 2015 Acysos S.L.
# © 2017 ForgeFlow S.L.
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "HR Worked Days From Timesheet",
"summary": "Adds a button to import worked days from timesheet.",
"version"... | 32.391304 | 745 |
4,805 | py | PYTHON | 15.0 | # © 2012 Odoo Canada
# © 2015 Acysos S.L.
# © 2017 ForgeFlow S.L.
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
import time
from odoo import fields
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class T... | 35.308824 | 4,802 |
3,954 | py | PYTHON | 15.0 | # © 2012 Odoo Canada
# © 2015 Acysos S.L.
# © 2017 ForgeFlow S.L.
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import _, api, models
from odoo.exceptions import UserError
class HrPayslip(models.Model):
_inherit = "hr.payslip"... | 39.51 | 3,951 |
479 | py | PYTHON | 15.0 | # © 2012 Odoo Canada
# © 2015 Acysos S.L.
# © 2017 ForgeFlow S.L.
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class HrPayslipWorkedDays(models.Model):
_inherit = "hr.payslip.worked_days"
imported_f... | 29.75 | 476 |
608 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "HR Branch",
"summary": "Allow define company branch for employee process",
"version": "15.0.1.0.0",
"development_status": "Mature",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "Va... | 33.777778 | 608 |
339 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class HrDepartment(models.Model):
_inherit = "hr.department"
branch_id = fields.Many2one(
"res.partner",
help="Indicate the department branch, to ensure that the "
"employees are assigned... | 26.076923 | 339 |
490 | py | PYTHON | 15.0 | # Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Employee Digitized Signature",
"version": "15.0.1.0.0",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/hr",
"category": "Hu... | 32.666667 | 490 |
251 | py | PYTHON | 15.0 | # Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
signature = fields.Binary()
| 25.1 | 251 |
650 | py | PYTHON | 15.0 | # Copyright 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "HR Job Employee Categories",
"version": "15.0.1.0.0",
"category": "Generic Modules/Human Resources",
"summary": "Adds tags to employee through contract and job posi... | 36.111111 | 650 |
3,132 | py | PYTHON | 15.0 | # Copyright 2014 Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
class TestHrJobCategories(common.TransactionCase):
def setUp(self):
super(TestHrJobCategories, self).setUp()
self.employee_model = self.env["hr.employee"]
self... | 37.73494 | 3,132 |
1,588 | py | PYTHON | 15.0 | # Copyright 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import api, fields, models
_logger = logging.getLogger(__name__)
class HRJob(models.Model):
_inherit = "hr.job"
category_ids = fields.Many2many(
... | 29.407407 | 1,588 |
1,226 | py | PYTHON | 15.0 | from odoo import SUPERUSER_ID
from odoo.api import Environment
def post_init_hook(cr, _):
# This SQL statement is necessary to call _install_employee_lastnames() and
# set name fields correctly.
#
# After the installation, previously the dependency hr_employee_firstname
# splitting the name into t... | 42.275862 | 1,226 |
605 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "HR Employee First Name and Two Last Names",
"version": "15.0.1.0.0",
"author": "Vauxoo, Odoo Community Association (OCA)",
"maintainer": "Vauxoo",
"website": "https://github.com/OCA/hr",
"license": "AGPL-3",
"category... | 35.588235 | 605 |
6,562 | py | PYTHON | 15.0 | from odoo import exceptions
from odoo.tests.common import TransactionCase
class TestEmployeeLastnames(TransactionCase):
def setUp(self):
super(TestEmployeeLastnames, self).setUp()
self.env["ir.config_parameter"].sudo().set_param(
"employee_names_order", "first_last"
)
s... | 40.257669 | 6,562 |
5,813 | py | PYTHON | 15.0 | import logging
from odoo import api, models
from odoo.addons.hr_employee_firstname.models.hr_employee import UPDATE_PARTNER_FIELDS
_logger = logging.getLogger(__name__)
UPDATE_PARTNER_FIELDS += ["lastname2"]
class HrEmployee(models.Model):
_inherit = "hr.employee"
@api.model
def _get_name_lastnames(s... | 36.33125 | 5,813 |
243 | py | PYTHON | 15.0 | from odoo import fields, models
class HrEmployeeBase(models.AbstractModel):
_inherit = "hr.employee.base"
firstname = fields.Char("First name")
lastname = fields.Char("Last name")
lastname2 = fields.Char("Second last name")
| 27 | 243 |
693 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Employees study field",
"summary": "Structured study field for employees",
"version": "15.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
... | 32.904762 | 691 |
1,102 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import Form, common, new_test_user
from odoo.tests.common import users
class TestHrStudy(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
... | 33.333333 | 1,100 |
395 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class HrStudy(models.Model):
_name = "hr.study"
_description = "Study"
_order = "sequence, id"
sequence = fields.Integer(default=10)
name = fields.Char(req... | 28.071429 | 393 |
507 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
study_id = fields.Many2one(
comodel_name="hr.study",
string="Study",
groups="hr.g... | 25.25 | 505 |
313 | py | PYTHON | 15.0 | # Copyright 2016-2019 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID
from odoo.api import Environment
def post_init_hook(cr, _):
env = Environment(cr, SUPERUSER_ID, {})
env["hr.employee"]._install_employee_firstname()
| 31.3 | 313 |
721 | py | PYTHON | 15.0 | # Copyright 2010-2014 Savoir-faire Linux (<http://www.savoirfairelinux.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "HR Employee First Name, Last Name",
"version": "15.0.1.0.0",
"author": "Savoir-faire Linux, "
"Fekete Mihai (Forest and Biomass Services Romania), "
... | 36.05 | 721 |
6,840 | py | PYTHON | 15.0 | # Copyright (C) 2014 Savoir-faire Linux. All Rights Reserved.
# Copyright 2016-2019 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import odoo
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestEmployeeFirstname(T... | 39.537572 | 6,840 |
6,580 | py | PYTHON | 15.0 | # Copyright 2010-2014 Savoir-faire Linux (<http://www.savoirfairelinux.com>)
# Copyright 2016-2019 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import _, api, models
from odoo.exceptions import ValidationError
_logger = logging.getLogg... | 36.759777 | 6,580 |
932 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from odoo import fields, models
_logger = logging.getLogger(__name__)
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
employee_nam... | 31.066667 | 932 |
172 | py | PYTHON | 15.0 | from odoo import fields, models
class HrEmployeeBase(models.AbstractModel):
_inherit = "hr.employee.base"
firstname = fields.Char()
lastname = fields.Char()
| 21.5 | 172 |
518 | py | PYTHON | 15.0 | # Copyright (C) 2015 Salton Massally (<smassally@idtlabs.sl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Employee Age",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Salton Massally <smassally@idtlabs.sl>, "
"Odoo Community Association (OCA)",
"websit... | 32.375 | 518 |
604 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from dateutil.relativedelta import relativedelta
from odoo import fields
from odoo.tests import common
class TestHrEmployee(common.TransactionCase):
def setUp(self):
super().setUp()
self.employee_admin = self.env.ref("hr.employee_ad... | 33.555556 | 604 |
574 | py | PYTHON | 15.0 | # Copyright (C) 2015 Salton Massally (<smassally@idtlabs.sl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
age = fields.Integer(compute="_compute... | 30.210526 | 574 |
1,224 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "HR Org Chart Overview",
"version": "15.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "ForgeFlow S.L., Odoo Commun... | 40.8 | 1,224 |
2,909 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, models
from odoo.exceptions import ValidationError
org_chart_classes = {
0: "level-0",
1: "level-1",
2: "level-2",
3: "level-3",
4: "level-4",
}... | 34.223529 | 2,909 |
560 | py | PYTHON | 15.0 | # Copyright 2020 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo <http://odoo.pnlug.it>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Employee external Partner",
"summary": "Associate an external Partner to Employee",
"version": "15.0.1.0.0",
"category": "Human Resources",
... | 37.333333 | 560 |
725 | py | PYTHON | 15.0 | # Copyright 2020 Stefano Consolaro (Ass. PNLUG - Gruppo Odoo <http://odoo.pnlug.it>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class EmployeePartner(models.Model):
"""
Add administrative Partner reference to Employee
"""
_inherit = "hr.employee"... | 27.884615 | 725 |
604 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "HR Employee SSN & SIN",
"version": "15.0.1.0.0",
"category": "Human Resources",
"website": "https://gi... | 35.529412 | 604 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
2,123 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-hr",
description="Meta package for oca-hr Odoo addons",
version=version,
install_requires=[
'odoo-addon-hr_branch>=15.0dev,<15.1dev',
'odoo-addon-hr_contract_emp... | 47.177778 | 2,123 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
721 | py | PYTHON | 15.0 | # Copyright 2021 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Hr Personal Equipment Request",
"summary": """
This addon allows to manage employee personal equipment""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Commun... | 34.333333 | 721 |
5,370 | py | PYTHON | 15.0 | # Copyright 2021 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import TransactionCase
class TestHRPersonalEquipmentRequest(TransactionCase):
def setUp(self):
super().setUp()
self.product_personal_equipment_1 = self.env["product.template"].create(
... | 40.992366 | 5,370 |
2,660 | py | PYTHON | 15.0 | # Copyright 2021 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo.fields import Date
class HrPersonalEquipment(models.Model):
_name = "hr.personal.equipment"
_description = "Adds personal equipment information and allocation"
_inh... | 30.574713 | 2,660 |
314 | py | PYTHON | 15.0 | # Copyright 2021 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
is_personal_equipment = fields.Boolean(
default=False, string="Is Employee Personal Equipment"
)
| 24.153846 | 314 |
2,226 | py | PYTHON | 15.0 | # Copyright 2021 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
class HrPersonalEquipmentRequest(models.Model):
_name = "hr.personal.equipment.request"
_description = "This model allows to create a personal equipment request"
_inherit ... | 31.352113 | 2,226 |
1,781 | py | PYTHON | 15.0 | # Copyright 2021 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
equipment_request_ids = fields.One2many(
comodel_name="hr.personal.equipment.request",
inverse_name="emplo... | 31.803571 | 1,781 |
697 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Hr Employee Medical Examination",
"summary": """
Adds information about employee's medical examinations""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Commu... | 34.85 | 697 |
2,207 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestHrEmployeeMedicalExamination(TransactionCase):
def setUp(self):
super(TestHrEmployeeMedicalExamination, self).setUp()
self.department = self.env["h... | 39.410714 | 2,207 |
1,623 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import datetime
from odoo import api, fields, models
class HrEmployeeMedicalExamination(models.Model):
_name = "hr.employee.medical.examination"
_description = "Hr Employee Medical Examination"
_inherit = ["mai... | 23.867647 | 1,623 |
1,031 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
medical_examination_ids = fields.One2many(
comodel_name="hr.employee.medical.examination",
inverse_name=... | 30.323529 | 1,031 |
2,463 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import date
from odoo import _, fields, models
class WizardGenerateMedicalExamination(models.TransientModel):
_name = "wizard.generate.medical.examination"
_description = "Generation wizard for medica... | 31.987013 | 2,463 |
806 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "HR Employee Relatives",
"version": "15.0.1.0.0",
"category": "Human Resources",
"website": "https://gi... | 35.043478 | 806 |
1,817 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from dateutil.relativedelta import relativedelta
from odoo.tests import Form, common
_ns = "hr_employee_relative"
class TestHrEmployeeRelatives(common... | 36.34 | 1,817 |
1,437 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import datetime
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models
class HrEmployeeRelative(models.Model):
_name = "hr.employee.relati... | 31.933333 | 1,437 |
380 | py | PYTHON | 15.0 | # Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class HrEmployeeRelativeRelation(models.Model):
_name = "hr.employee.relative.relation"
_description = "HR Employee Relative Relation"
name = fi... | 34.545455 | 380 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.