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 |
|---|---|---|---|---|---|---|
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
556 | py | PYTHON | 15.0 | # Copyright 2015 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Matomo analytics",
"version": "15.0.1.0.0",
"author": "Onestein,Therp BV,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Website",
"summary": "Track websi... | 27.8 | 556 |
4,668 | py | PYTHON | 15.0 | # Copyright 2023 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from lxml import html
from odoo.tests import common, tagged
@tagged("-at_install", "post_install")
class TestWebsiteAnalyticsMatomo(common.HttpCase):
def setUp(self):
super().setUp... | 42.436364 | 4,668 |
1,015 | py | PYTHON | 15.0 | # Copyright 2015 Therp BV <http://therp.nl>
# Copyright 2023 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
has_matomo_analytics = fields.Bo... | 33.833333 | 1,015 |
2,743 | py | PYTHON | 15.0 | # Copyright 2015 Therp BV <http://therp.nl>
# Copyright 2023 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from urllib.parse import urlparse
from odoo import api, fields, models
class Website(models.Model):
_inherit = "website"
has_matomo_analytics = ... | 40.940299 | 2,743 |
596 | py | PYTHON | 15.0 | # Copyright 2021 Studio73 - Ioan Galan <ioan@studio73.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website Cookiefirst",
"summary": "Cookiefirst integration",
"category": "Website",
"version": "15.0.1.0.0",
"author": "Studio73, Odoo Community Association (OCA)",
... | 33.111111 | 596 |
995 | py | PYTHON | 15.0 | # Copyright 2021 Studio73 - Ioan Galan <ioan@studio73.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
@api.depends("website_id.cookiefirst_identifier")
def _compute_c... | 34.310345 | 995 |
372 | py | PYTHON | 15.0 | # Copyright 2021 Studio73 - Ioan Galan <ioan@studio73.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
cookiefirst_identifier = fields.Char(
string="Cookiefirst ID",
help="This field holds th... | 28.615385 | 372 |
858 | py | PYTHON | 15.0 | # Copyright 2022 Odoo S. A.
# Copyright 2022 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
{
"name": "Plausible analytics",
"version": "15.0.1.1.0",
"author": "Odoo S.A., ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/website",
... | 30.642857 | 858 |
1,755 | py | PYTHON | 15.0 | # Copyright 2022 Odoo S. A.
# Copyright 2022 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from werkzeug import urls
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
plausible_shared_key = fields.Char... | 34.411765 | 1,755 |
1,124 | py | PYTHON | 15.0 | # Copyright 2022 Odoo S. A.
# Copyright 2022 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from werkzeug import urls
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
plausible_shared_key = fields.Char()
plausible_site = fields.Char(... | 27.414634 | 1,124 |
757 | py | PYTHON | 15.0 | from odoo import http
from odoo.http import request
from odoo.addons.website.controllers.backend import WebsiteBackend
class WebsitePlausibleBackend(WebsiteBackend):
@http.route("/website/fetch_dashboard_data", type="json", auth="user")
def fetch_dashboard_data(self, website_id, date_from, date_to):
... | 39.842105 | 757 |
607 | py | PYTHON | 15.0 | # Copyright 2014 Jorge Camacho <jcamacho@trey.es>
# Copyright 2015 Antonio Espinosa <antonioea@antiun.com>
# Copyright 2016-2018 Vicent Cubells <vicent.cubells@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Website CRM privacy policy",
"category": "Website",
"... | 40.466667 | 607 |
685 | py | PYTHON | 15.0 | # Copyright 2016 ABF OSIELL <http://osiell.com>
# Copyright 2018 Tecnativa - Cristina Martin R.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Google Tag Manager",
"version": "15.0.2.0.0",
"author": "ABF OSIELL, Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3... | 40.294118 | 685 |
413 | py | PYTHON | 15.0 | # Copyright 2016 ABF OSIELL <http://osiell.com>
# Copyright 2018 Tecnativa - Cristina Martin R.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
google_tag_manager_key = fields.Cha... | 31.769231 | 413 |
307 | py | PYTHON | 15.0 | # Copyright 2016 ABF OSIELL <http://osiell.com>
# Copyright 2018 Tecnativa - Cristina Martin R.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
google_tag_manager_key = fields.Char("Container ID")
| 27.909091 | 307 |
646 | py | PYTHON | 15.0 | # Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis
# Copyright 2019 Tecnativa - Cristina Martin R.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Website Breadcrumbs",
"summary": "Let you have breadcrumbs in website pages",
"version": "15.0.1.0.0",
... | 40.25 | 644 |
986 | py | PYTHON | 15.0 | # Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import models
class WebsiteMenu(models.Model):
_inherit = "website.menu"
def get_parents(self, revert=False, include_self=False):
"""List current... | 33.965517 | 985 |
789 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Carlos Roca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Website Form Require Legal",
"summary": "Add possibility to require confirm legal terms.",
"version": "15.0.1.0.0",
"category": "Website",
"license": "LGPL-3",
"website": "htt... | 34.304348 | 789 |
645 | py | PYTHON | 15.0 | # Copyright 2020 Trey - Antonio González <antonio@trey.es>
# Copyright 2021 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Website Cookiebot",
"summary": "Ask for cookies consent connecting with Cookiebot",
"category": "Website",
"version": "15.0.1.0.... | 35.777778 | 644 |
372 | py | PYTHON | 15.0 | # Copyright 2020 Trey - Antonio González <antonio@trey.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
cookiebot_dgid = fields.Char(
string="Cookiebot Domain Group ID",
help="Get this code f... | 28.538462 | 371 |
763 | py | PYTHON | 15.0 | # Copyright 2020 Trey - Antonio González <antonio@trey.es>
# Copyright 2021 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
cookiebot_dgid = fields.C... | 30.48 | 762 |
642 | py | PYTHON | 15.0 | # Copyright 2023 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Website Snippet Dynamic Link",
"category": "Website",
"version": "15.0.1.0.0",
"author": "Onestein, Odoo Community Association (OCA)",
"license": "AGPL-3",
"websit... | 30.571429 | 642 |
392 | py | PYTHON | 15.0 | from odoo import fields, models
class WebsiteDynamicLink(models.Model):
_name = "website.dynamic.link"
_description = "Website Dynamic Link"
active = fields.Boolean(default=True)
name = fields.Char(required=True)
url = fields.Char(required=True)
website_id = fields.Many2one("website")
ic... | 30.153846 | 392 |
534 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Project Task Milestones",
"summary": "Project Task Milestones",
"author": "Mantas Šniukas, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/project",
"category": "Project Management",
"version": "15.... | 29.611111 | 533 |
1,800 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
class TestProjectMilestone(common.TransactionCase):
def setUp(self):
super().setUp()
self.test_project = self.env["project.project"].create({"name": "TestProject"})
self.test_project_milestone_1 ... | 40.909091 | 1,800 |
696 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
milestone_id = fields.Many2one(
"project.milestone",
string="Milestone",
group_expand="_read_group_milestone_ids",
d... | 31.636364 | 696 |
282 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProjectMilestone(models.Model):
_inherit = "project.milestone"
project_task_ids = fields.One2many(
"project.task", "milestone_id", string="Project Tasks"
)
| 25.636364 | 282 |
612 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Project Stock Product Set",
"version": "15.0.1.0.2",
"category": "Project Management",
"website": "https://github.com/OCA/project",
"author": "Tecnativa, Odoo Community Associatio... | 33.888889 | 610 |
3,098 | py | PYTHON | 15.0 | # Copyright 2022-2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import Form
from odoo.tests.common import users
from odoo.addons.project_stock.tests.common import TestProjectStockBase
class TestProjectStockProductSet(TestProjectStockBase):
@classm... | 43 | 3,096 |
1,312 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import fields, models
class ProductSetAddFromTask(models.TransientModel):
_inherit = "product.set.add"
_name = "product.set.add.from.task"
_description = "product.set.add.from.task"
o... | 35.405405 | 1,310 |
1,047 | py | PYTHON | 15.0 | # Copyright 2022-2023 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo import models
class ProductSetLine(models.Model):
_inherit = "product.set.line"
def _prepare_stock_move_values(self, task, quantity):
self.ensure_one()
return {
... | 40.192308 | 1,045 |
617 | py | PYTHON | 15.0 | # Copyright 2017 Specialty Medical Drugstore
# Copyright 2018 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Project Task Pull Request",
"summary": "Adds a field for a PR URI to project tasks",
"version": "15.0.1.0.1",
"category": "Project Managemen... | 38.5625 | 617 |
2,630 | py | PYTHON | 15.0 | # Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestProjectTaskPullRequest(TransactionCase):
post_install = True
at_install = False
def setUp(self)... | 34.605263 | 2,630 |
928 | py | PYTHON | 15.0 | # Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, exceptions, fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
pr_uri = fields.Char(string="PR URI", tracking=True)
pr_required_states = fields.Ma... | 37.12 | 928 |
418 | py | PYTHON | 15.0 | # Copyright 2017 Specialty Medical Drugstore
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Project(models.Model):
_inherit = "project.project"
_name = "project.project"
pr_required_states = fields.Many2many(
"project.task.type",
"pr... | 24.588235 | 418 |
703 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
{
"name": "Project Sequence",
"summary": "Add a sequence field to projects, filled automatically",
"version": "15.0.0.2.1",
"development_status": "Alpha",
"category": "Services/Project",
"websi... | 31.954545 | 703 |
5,762 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
from freezegun import freeze_time
from psycopg2 import IntegrityError
from odoo.tests.common import Form, SavepointCase, new_test_user, users
from odoo.tools import mute_logger
@freeze_time("2023-01-01 12:00:00")
cl... | 44.666667 | 5,762 |
3,860 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
from odoo import api, fields, models
class ProjectProject(models.Model):
_inherit = "project.project"
_sql_constraints = [
# Ensure compatibility with other modules that always expect a value in nam... | 39.387755 | 3,860 |
560 | py | PYTHON | 15.0 | # Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
project_display_name_pattern = fields.Char(
config_parameter="project_sequence.displ... | 31.111111 | 560 |
594 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Project Stage Management",
"version": "15.0.1.0.0",
"development_status": "Beta",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"summary": "Allows to assign and create task stages o... | 33 | 594 |
507 | py | PYTHON | 15.0 | # Copyright 2021 Open Source Integrators - Daniel Reis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
def populate_date_start(cr, registry):
"""
The date_start was introduced to be used instead of date_assign.
To keep same behaviour on upgrade, initialize it
to have the same data... | 31.6875 | 507 |
908 | py | PYTHON | 15.0 | # Copyright 2016-2017 Tecnativa - Pedro M. Baeza
# Copyright 2017 Tecnativa - Carlos Dauden
# Copyright 2021 Open Source Integrators - Daniel Reis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Project timeline",
"summary": "Timeline view for projects",
"version": "15.0.1.1.0",
... | 34.923077 | 908 |
716 | py | PYTHON | 15.0 | # Copyright 2018 Onestein
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.tests.common import TransactionCase
class TestProjectTimeline(TransactionCase):
def test_date_end_doesnt_unset(self):
stage_id = self.ref("project.project_stage_2")
task = s... | 34.095238 | 716 |
505 | py | PYTHON | 15.0 | # Copyright 2016-2017 Tecnativa - Pedro M. Baeza
# Copyright 2017 Tecnativa - Carlos Dauden
# Copyright 2021 Open Source Integrators - Daniel Reis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
d... | 29.705882 | 505 |
513 | py | PYTHON | 15.0 | # Copyright 2022 Moduon - Eduardo de Miguel <edu@moduon.team>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Project Task Personal Stage auto Fold",
"summary": "Moves task to the first fold personal stage when done",
"version": "15.0.1.0.3",
"category": "Project",
"websi... | 34.2 | 513 |
5,977 | py | PYTHON | 15.0 | # Copyright 2022 Moduon - Eduardo de Miguel <edu@moduon.team>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import TransactionCase
class TestAutoFoldPersonalStages(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
user_group_employee =... | 41.506944 | 5,977 |
1,225 | py | PYTHON | 15.0 | from odoo import models
class Task(models.Model):
_inherit = "project.task"
def write(self, vals):
result = super().write(vals)
if (
vals.get("stage_id")
and self.env["project.task.type"].browse(vals.get("stage_id")).is_closed
):
self._fold_personal... | 31.410256 | 1,225 |
489 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Project Milestones",
"summary": "Project Milestones",
"author": "Patrick Wilson, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/project",
"category": "Project Management",
"version": "15.0.1.0.1",
... | 32.6 | 489 |
361 | py | PYTHON | 15.0 | from openupgradelib import openupgrade
namespec = [("project_milestone", "project_task_milestone")]
field_spec = [
("project.milestone", "project_milestone", "target_date", "deadline"),
]
@openupgrade.migrate()
def migrate(env, version):
openupgrade.update_module_names(env.cr, namespec, False)
openupgra... | 27.769231 | 361 |
622 | py | PYTHON | 15.0 | # Copyright 2017 C2i Change 2 improve - Eduardo Magdalena <emagdalena@c2i.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Project Parent Task Filter",
"summary": "Add a filter to show the parent tasks",
"version": "15.0.1.1.0",
"category": "Project",
"website": "https... | 38.875 | 622 |
1,728 | py | PYTHON | 15.0 | from odoo import api, models
class TaskSub(models.Model):
_inherit = "project.task"
@api.model_create_multi
def create(self, vals_list):
res = super(TaskSub, self).create(vals_list)
for vals in vals_list:
if vals.get("parent_id", False):
res["display_project_id... | 35.265306 | 1,728 |
603 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Project Forecast Lines Holidays Public",
"summary": "Project Forecast Lines taking public holidays into account",
"version": "15.0.1.1.0",
"author": "Camptocamp SA, Odoo Community Association (OCA)... | 40.2 | 603 |
1,516 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from freezegun import freeze_time
from odoo import fields
from odoo.addons.project_forecast_line.tests import test_forecast_line
class PublicHolidaysForecastTest(test_forecast_line.BaseForecastLineTest):
@classmethod... | 32.255319 | 1,516 |
586 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class ForecastLine(models.Model):
_inherit = "forecast.line"
def prepare_forecast_lines(self, *args, **kwargs):
self = self.with_context(exclude_public_holidays=True)
return... | 39.066667 | 586 |
611 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class HrHolidaysPublicLine(models.Model):
_inherit = "hr.holidays.public.line"
@api.model_create_multi
def create(self, values):
records = super().create(values)
# ... | 38.1875 | 611 |
425 | 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
class ResCompany(models.Model):
_inherit = "res.company"
immediate_compute_forecast_line = fields.Boolean(
string="Recompute forecast lines immediately",
default=Tru... | 32.692308 | 425 |
353 | 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
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
immediate_compute_forecast_line = fields.Boolean(
related="company_id.immediate_compute_fore... | 32.090909 | 353 |
648 | py | PYTHON | 15.0 | # Copyright 2015 Incaser Informatica S.L. - Sergio Teruel
# Copyright 2015 Incaser Informatica S.L. - Carlos Dauden
# Copyright 2018 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Project Task Default Stage",
"summary": "Recovery default task stages for pr... | 40.5 | 648 |
580 | py | PYTHON | 15.0 | # Copyright 2015 Incaser Informatica S.L. - Sergio Teruel
# Copyright 2015 Incaser Informatica S.L. - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestProjectCaseDefault(TransactionCase):
# Use case : Prepare some data for curr... | 38.666667 | 580 |
547 | py | PYTHON | 15.0 | # Copyright 2015 Incaser Informatica S.L. - Sergio Teruel
# Copyright 2015 Incaser Informatica S.L. - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProjectTaskType(models.Model):
_inherit = "project.task.type"
case_default = fields.Boolea... | 36.466667 | 547 |
513 | py | PYTHON | 15.0 | # Copyright 2015 Incaser Informatica S.L. - Sergio Teruel
# Copyright 2015 Incaser Informatica S.L. - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProjectProject(models.Model):
_inherit = "project.project"
def _get_default_type_common(se... | 36.642857 | 513 |
499 | py | PYTHON | 15.0 | # Copyright 2014 Joël Grand-Guillaume (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Project Department Categorization",
"version": "15.0.1.0.1",
"author": "Camptocamp, Daniel Reis, Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Gen... | 33.2 | 498 |
568 | py | PYTHON | 15.0 | # © 2014 Joël Grand-Guillaume (Camptocamp)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
project_department_id = fields.Many2one(
related="project_id.department_id",
string="Proje... | 25.727273 | 566 |
651 | py | PYTHON | 15.0 | # Copyright 2015 ADHOC SA (http://www.adhoc.com.ar)
# Copyright 2017 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Project Types",
"version": "15.0.1.0.1",
"category": "Project",
"author": "ADHOC SA," "Tecnativa, " "Onestein, " "Odoo Community As... | 32.55 | 651 |
830 | py | PYTHON | 15.0 | # Copyright 2019 Onestein
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestProjectType(TransactionCase):
def setUp(self):
super(TestProjectType, self).setUp()
self.cat = self.env["p... | 37.727273 | 830 |
287 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProjectTask(models.Model):
_inherit = "project.task"
type_id = fields.Many2one(
comodel_name="project.type", string="Type", domain="[('task_ok', '=', True)]"
)
| 26.090909 | 287 |
333 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProjectProject(models.Model):
_inherit = "project.project"
type_id = fields.Many2one(
comodel_name="project.type",
string="Type",
copy=False,
domain="[('project_ok', '=', Tr... | 23.785714 | 333 |
1,463 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class ProjectType(models.Model):
_name = "project.type"
_description = "Project Type"
_rec_name = "complete_name"
parent_id = fields.Many2one(comodel_n... | 38.5 | 1,463 |
604 | py | PYTHON | 15.0 | {
"name": "Project Status",
"summary": """
Project Status""",
"author": "Patrick Wilson, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/project",
"category": "Project Management",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"depends": ["project"],
"da... | 28.761905 | 604 |
859 | py | PYTHON | 15.0 | import odoo.tests.common as common
class TestProjectTaskCode(common.TransactionCase):
def setUp(self):
super().setUp()
self.ProjectStatus = self.env["project.status"]
self.status = self.ProjectStatus.create(
{
"name": "New Status",
}
)
d... | 29.62069 | 859 |
879 | py | PYTHON | 15.0 | from odoo import api, fields, models
class ProjectStatus(models.Model):
_name = "project.status"
_order = "status_sequence"
_description = "Project Status"
name = fields.Char(
required=True,
translate=True,
)
company_id = fields.Many2one(
comodel_name="res.company",
... | 29.3 | 879 |
526 | py | PYTHON | 15.0 | from odoo import SUPERUSER_ID, api, fields, models
class Project(models.Model):
_inherit = "project.project"
@api.model
def _read_group_status_ids(self, statuses, domain, order):
statuse_ids = statuses._search([], order=order, access_rights_uid=SUPERUSER_ID)
return statuses.browse(statuse... | 29.222222 | 526 |
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 |
2,534 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-project",
description="Meta package for oca-project Odoo addons",
version=version,
install_requires=[
'odoo-addon-project_administrator_restricted_visibility>=15.0dev,<1... | 49.686275 | 2,534 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.