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 |
|---|---|---|---|---|---|---|
6,737 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from datetime import date, datetime
from lxml import etree
from odoo import _, api, models
from odoo.exceptions import UserError
from odoo.tools.safe_eval import safe_eval
class ChainedSwapperWizard(models.... | 41.067073 | 6,735 |
7,463 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Ernesto Tejeda
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, exceptions, fields, models
from odoo.exceptions import ValidationError
from odoo.tools.safe_eval import safe_eval
class ChainedSwapper(mode... | 36.583333 | 7,463 |
1,164 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json
from odoo import api, tools
from odoo.addons.base.models.ir_default import IrDefault
def post_load_hook():
@api.model
@tools.ormcache("self.env.uid", "model_name", "condition")
def new_get_model... | 36.375 | 1,164 |
604 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Default Multi User",
"summary": "Allows to share user-defined defaults among several users.",
"version": "15.0.1.0.0",
"development_status": "Beta",
"maintainers": ["LoisRForgeFlow"],
"cat... | 35.529412 | 604 |
6,345 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json
from odoo.tests import common, tagged
@tagged("post_install", "-at_install")
class TestDefaultMultiUser(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
... | 42.3 | 6,345 |
1,891 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class IrDefaultgard(models.Model):
_inherit = "ir.default"
user_ids = fields.Many2many(
comodel_name="res.users",
string="Users",
relation="ir_default... | 34.381818 | 1,891 |
542 | py | PYTHON | 15.0 | # © 2016 Opener B.V. (<https://opener.am>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Technical features group",
"summary": "Access to technical features without activating debug mode",
"version": "15.0.1.1.0",
"category": "Usability",
"website": "https://github.... | 41.615385 | 541 |
2,601 | py | PYTHON | 15.0 | from lxml import etree
from odoo.exceptions import AccessError
from odoo.tests import common
class TestBaseTechnicalFeatures(common.TransactionCase):
def test_01_visible_menus(self):
""" A technical feature is visible to the user with the technical \
features group """
menu_obj = self.env... | 41.951613 | 2,601 |
568 | py | PYTHON | 15.0 | # © 2016 Opener B.V. (<https://opener.am>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class IrUiMenu(models.Model):
_inherit = "ir.ui.menu"
@api.model
def _visible_menu_ids(self, debug=False):
"""Set debug = True, so that group_no_one is not ... | 33.352941 | 567 |
2,255 | py | PYTHON | 15.0 | # © 2016 Opener B.V. (<https://opener.am>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
from odoo.exceptions import AccessError
from odoo.tools.translate import _
class ResUsers(models.Model):
_inherit = "res.users"
technical_features = fields.Bool... | 36.95082 | 2,254 |
639 | py | PYTHON | 15.0 | # © 2016 Opener B.V. (<https://opener.am>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class Base(models.AbstractModel):
_inherit = "base"
def user_has_groups(self, groups):
"""Return True for users in the technical features group when
membersh... | 35.444444 | 638 |
562 | py | PYTHON | 15.0 | # Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Reset Sequences on selected period ranges",
"version": "15.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/server-ux",
"author": "Creu Blanca, Odoo Community Associ... | 35.125 | 562 |
3,468 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca <https://creublanca.es/>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from datetime import date
from odoo.tests import common
class TestSequence(common.TransactionCase):
def setUp(self):
super().setUp()
self.date = date(2018, 3, 14)
def ... | 35.030303 | 3,468 |
2,428 | py | PYTHON | 15.0 | # Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from datetime import date as datetime_date, timedelta
from dateutil.relativedelta import relativedelta
from odoo import fields, models
class IrSequence(models.Model):
_inherit = "ir.sequence"
range_reset ... | 33.722222 | 2,428 |
614 | py | PYTHON | 15.0 | # Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Base Cancel Confirm",
"version": "15.0.1.0.0",
"author": "Ecosoft,Odoo Community Association (OCA)",
"category": "Usability",
"license": "AGPL-3",
"website":... | 30.7 | 614 |
932 | py | PYTHON | 15.0 | # Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class CancelConfirmTester(models.Model):
_name = "cancel.confirm.tester"
_description = "Cancel Confirm Tester"
_inherit = ["base.cancel.confirm"]
... | 27.411765 | 932 |
4,011 | py | PYTHON | 15.0 | # Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from lxml import etree
from odoo_test_helper import FakeModelLoader
from odoo.tests import Form, common
class TestCancelConfirm(common.TransactionCase):
@classmethod
def setUpClass(c... | 37.839623 | 4,011 |
1,070 | py | PYTHON | 15.0 | # Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class CancelConfirm(models.TransientModel):
_name = "cancel.confirm"
_description = "Cancel Confirm"
cancel_reason = fields.Text()
has_cancel_... | 33.4375 | 1,070 |
3,050 | py | PYTHON | 15.0 | # Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import inspect
from lxml import etree
from odoo import _, fields, models, tools
from odoo.exceptions import ValidationError
class BaseCancelConfirm(models.AbstractModel):
_name = "base.... | 38.607595 | 3,050 |
666 | py | PYTHON | 15.0 | # Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Base Tier Validation - Reports",
"summary": "Reports related to tier validation",
"version": "15.0.1.0.1",
"category": "Tools",
"website": "https://github.com/OCA/ser... | 33.3 | 666 |
1,666 | py | PYTHON | 15.0 | # Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class TierReview(models.Model):
_inherit = "tier.review"
resource_ref = fields.Reference(
selection="_selection_resource_ref",
compu... | 30.851852 | 1,666 |
736 | py | PYTHON | 15.0 | # Migrated to v14.0 by Ashish Hirpara (https://www.ashish-hirpara.com)
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Add custom filters in standard filters and group by dropdowns",
"version": "15.0.1.0.0",
"categor... | 38.736842 | 736 |
2,783 | py | PYTHON | 15.0 | from odoo.tests.common import Form, TransactionCase, tagged
@tagged("post_install", "-at_install")
class Test(TransactionCase):
@classmethod
def setUpClass(cls, chart_template_ref=None):
super().setUpClass()
filters_obj = cls.env["ir.filters"]
filters_group = Form(filters_obj)
... | 41.537313 | 2,783 |
1,599 | py | PYTHON | 15.0 | # Migrated to v14.0 by Ashish Hirpara (https://www.ashish-hirpara.com)
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
from odoo.osv import expression
class IrFilters(models.Model):
_inherit = "i... | 34.021277 | 1,599 |
1,169 | py | PYTHON | 15.0 | # Migrated to v14.0 by Ashish Hirpara (https://www.ashish-hirpara.com)
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class IrFiltersGroup(models.Model):
_name = "ir.filters.group"
_descript... | 31.594595 | 1,169 |
4,428 | py | PYTHON | 15.0 | # Migrated to v14.0 by Ashish Hirpara (https://www.ashish-hirpara.com)
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from lxml import etree
from odoo import api, models
class Base(models.AbstractModel):
_inherit = "base"
@ap... | 38.842105 | 4,428 |
657 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Base Menu Visibility Restriction",
"version": "15.0.1.0.0",
"category": "Extra Tools",
"development_status": "Production/Stable",
"author": "Tecnativa, Odoo Community Associ... | 36.388889 | 655 |
1,075 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestIrUiMenuCase(TransactionCase):
def setUp(self):
super(TestIrUiMenuCase, self).setUp()
self.user_admin = self.browse_ref("base.... | 46.652174 | 1,073 |
970 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models, tools
class IrUiMenu(models.Model):
_inherit = "ir.ui.menu"
excluded_group_ids = fields.Many2many(
comodel_name="res.groups",
relation="ir_... | 35.851852 | 968 |
1,012 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Date Range",
"summary": "Manage all kind of date range",
"version": "15.0.1.1.0",
"category": "Uncategorized",
"website": "https://github.com/OCA/server-ux",
"author": "A... | 30.666667 | 1,012 |
265 | py | PYTHON | 15.0 | from odoo import fields, models
class TestDateRangeSearchMixin(models.Model):
_name = "test.date.range.search.mixin"
_inherit = ["date.range.search.mixin"]
_date_range_search_field = "test_date"
name = fields.Char()
test_date = fields.Date()
| 26.5 | 265 |
5,842 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2021 Opener B.V. <stefan@opener.amsterdam>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from dateutil.rrule import MONTHLY
from odoo_test_helper import FakeModelLoader
from odoo.tests.common import TransactionCase
class TestDateRangeea... | 37.690323 | 5,842 |
4,585 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
import datetime
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class DateRangeTest(TransactionCase):
def setUp(self):
super(DateRangeTest, self).se... | 32.75 | 4,585 |
6,324 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from dateutil.relativedelta import relativedelta
from dateutil.rrule import MONTHLY, YEARLY
from psycopg2 import IntegrityError
from odoo import fields
from odoo.exceptions import ValidationError
from odo... | 39.279503 | 6,324 |
4,909 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2022 XCG Consulting (<https://xcg-consulting.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)nses/agpl).
import datetime
from dateutil.rrule import MONTHLY
from odoo.exceptions import ValidationError
from odoo.tests.common import Form,... | 38.944444 | 4,907 |
11,602 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2021 Opener B.V. (<https://opener.amsterdam>)
# Copyright 2022 XCG Consulting (<https://xcg-consulting.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from typing import Any
from dateutil.relativedelta import relativedel... | 34.736527 | 11,602 |
5,434 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from dateutil.relativedelta import relativedelta
from dateutil.rrule import DAILY, MONTHLY, WEEKLY, YEARLY
from odoo import _, api, fields, models
from odoo.exceptions import ValidationErr... | 36.469799 | 5,434 |
3,943 | py | PYTHON | 15.0 | # Copyright 2021 Opener B.V. <stefan@opener.amsterdam>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from lxml import etree
from odoo import _, api, fields, models
from odoo.osv.expression import FALSE_DOMAIN, NEGATIVE_TERM_OPERATORS, TRUE_DOMAIN
class DateRangeSearchMixin(models.AbstractModel):
... | 37.198113 | 3,943 |
4,342 | py | PYTHON | 15.0 | # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2022 XCG Consulting (<https://xcg-consulting.fr>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class DateRange(models.Model):
_name = "date.range"
... | 35.300813 | 4,342 |
882 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Document Quick Access",
"summary": """
Document quick access""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "ht... | 32.666667 | 882 |
1,949 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase, tagged
@tagged("post_install", "-at_install")
class TestDocumentQuickAccess(TransactionCase):
def setUp(self):
super().setUp()
... | 37.480769 | 1,949 |
3,628 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import base64
import binascii
import json
import re
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class DocumentQuickAccessRule(models.Model):
_name = "document.quick.access.rule"
_de... | 35.568627 | 3,628 |
452 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class Base(models.AbstractModel):
_inherit = "base"
def get_quick_access_code(self):
self.ensure_one()
rule = self.env["document.quick.access.rule"].search(
[("mod... | 26.588235 | 452 |
871 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2020 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Barcode action launcher",
"version": "15.0.1.0.0",
"category": "Extra Tools",
"website": "https://github.com/OCA/server-ux",
"author": "Creu Blanca, ForgeFlo... | 32.259259 | 871 |
874 | py | PYTHON | 15.0 | # Copyright 2018 Creu Blanca
# Copyright 2020 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo.tests.common import TransactionCase
class TestPartnerFind(TransactionCase):
def test_partner(self):
partner_obj = self.env["res.partner"]
ref = "testing_part... | 39.727273 | 874 |
540 | py | PYTHON | 15.0 | from odoo import fields, models
class BarcodeAction(models.TransientModel):
_name = "barcode.action"
_inherit = "barcodes.barcode_events_mixin"
_description = "Barcode Action"
model = fields.Char(required=True, readonly=True)
res_id = fields.Integer()
method = fields.Char(required=True, reado... | 31.764706 | 540 |
1,280 | py | PYTHON | 15.0 | # Copyright 2018 Creu Blanca
# Copyright 2020 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
import json
from odoo import _, models
from odoo.tools.safe_eval import safe_eval
class ResPartner(models.Model):
_inherit = "res.partner"
def find_res_partner_by_ref_using_barc... | 36.571429 | 1,280 |
783 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Announcement",
"version": "15.0.1.1.0",
"summary": "Notify internal users about relevant organization stuff",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGP... | 34.043478 | 783 |
324 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class IrConfigParameter(models.Model):
_inherit = "ir.config_parameter"
@api.model
def announcement_full_size(self):
return self.sudo().get_param("announcement.full_siz... | 29.454545 | 324 |
2,483 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ResUsers(models.Model):
_inherit = "res.users"
unread_announcement_ids = fields.Many2many(
comodel_name="announcement",
relation="unread_announc... | 40.704918 | 2,483 |
6,775 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
class AnnouncementLog(models.Model):
_name = "announcement.log"
_description = "Log user reads"
_order = "create_date desc"
announcement_id = fields.Many2o... | 37.638889 | 6,775 |
587 | py | PYTHON | 15.0 | # Copyright 2022 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ReadAnnouncementWizard(models.TransientModel):
_name = "read.announcement.wizard"
_description = "Show altogether users who read and users who didn't"
_order = "d... | 41.928571 | 587 |
1,446 | py | PYTHON | 15.0 | # Copyright 2017-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Base Tier Validation",
"summary": "Implement a validation process based on tiers.",
"version": "15.0.1.2.4",
"development_status": "Mature",
"maintainers": ["Loi... | 38.052632 | 1,446 |
1,338 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class TierValidationTester(models.Model):
_name = "tier.validation.tester"
_description = "Tier Validation Tester"
_inherit = ["tier.validation"]... | 29.086957 | 1,338 |
20,311 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from lxml import etree
from odoo.exceptions import ValidationError
from odoo.tests.common import Form, tagged
from .common import CommonTierValidation
@tagged("post_install", "-at_ins... | 41.45102 | 20,311 |
2,673 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo_test_helper import FakeModelLoader
from odoo.tests import common
class CommonTierValidation(common.TransactionCase):
@classmethod
def setUpClass(cls):
super(C... | 33.835443 | 2,673 |
855 | py | PYTHON | 15.0 | # Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class CommentWizard(models.TransientModel):
_name = "comment.wizard"
_description = "Comment Wizard"
validate_reject = fields.Char()
res_model = ... | 34.2 | 855 |
2,952 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
class TierDefinition(models.Model):
_name = "tier.definition"
_description = "Tier Definition"
@api.model
def _get_default_name(self):
... | 33.931034 | 2,952 |
2,245 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models, modules
class Users(models.Model):
_inherit = "res.users"
review_ids = fields.Many2many(string="Reviews", comodel_name="tier.review")
@api.m... | 40.089286 | 2,245 |
563 | 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 ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
module_base_tier_validation_formula = fields.Boolean(string="Tier Formula"... | 46.916667 | 563 |
20,296 | py | PYTHON | 15.0 | # Copyright 2017-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from ast import literal_eval
from lxml import etree
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class TierValidation(models.AbstractModel):
_na... | 39.333333 | 20,296 |
4,361 | py | PYTHON | 15.0 | # Copyright 2017-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class TierReview(models.Model):
_name = "tier.review"
_description = "Tier Review"
name = fi... | 40.009174 | 4,361 |
709 | py | PYTHON | 15.0 | # Copyright 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Mass Editing",
"version": "15.0.1.0.1",
"author": "Serpent Consulting Services Pvt. Ltd., "
"Tecnativa, "
"GRAP, "
"Iván Todorovich, "
"Od... | 29.5 | 708 |
13,476 | py | PYTHON | 15.0 | # Copyright 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com)
# Copyright 2018 Aitor Bouzas <aitor.bouzas@adaptivecity.com)
# Copyrithg 2020 Iván Todorovich <ivan.todorovich@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from ast import literal_eval
from odoo.exceptions im... | 36.917808 | 13,475 |
9,821 | py | PYTHON | 15.0 | # Copyright (C) 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com)
# Copyright (C) 2020 Iván Todorovich (https://twitter.com/ivantodorovich)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from lxml import etree
from odoo import _, api, fields, models
class MassEditingWizard(models.T... | 41.610169 | 9,820 |
2,357 | py | PYTHON | 15.0 | # Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
# Copyright (C) 2020 Iván Todorovich (https://twitter.com/ivantodorovich)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
from odoo.excepti... | 34.647059 | 2,356 |
2,021 | py | PYTHON | 15.0 | # Copyright (C) 2020 Iván Todorovich (https://twitter.com/ivantodorovich)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class IrActionsServer(models.Model):
_inherit = "ir.actions.server"
state = fields.Selection(
selection_add=[("mass_edit", "M... | 33.666667 | 2,020 |
377 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Multi-Steps Wizards",
"version": "15.0.1.0.1",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["base"],
"website": "https://github.com/OCA/server-ux",
"data": ["views/m... | 31.416667 | 377 |
405 | py | PYTHON | 15.0 | # Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models
class MultiStepWizardTest(models.TransientModel):
_name = "multi.step.wizard.test"
_description = "Multi Step Wizard Test"
_inherit = "multi.step.wizar... | 31.153846 | 405 |
781 | py | PYTHON | 15.0 | # Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import tagged
from .common import CommonTestMultiStepWizard
@tagged("post_install", "-at_install")
class TestMultiStepWizard(CommonTestMultiStepWizard):
def se... | 33.956522 | 781 |
683 | py | PYTHON | 15.0 | # Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo_test_helper import FakeModelLoader
from odoo.tests import common
class CommonTestMultiStepWizard(common.TransactionCase):
@classmethod
def setUpClass(cls):
supe... | 31.045455 | 683 |
2,504 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import logging
from odoo import api, fields, models
_logger = logging.getLogger(__name__)
class MultiStepWizard(models.AbstractModel):
"""Mixin to ease the creation of multisteps wizards
_selection_state m... | 30.536585 | 2,504 |
762 | py | PYTHON | 15.0 | # Copyright 2017-2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "MIS Builder Demo",
"summary": """
Demo addon for MIS Builder""",
"version": "15.0.3.1.1",
"license": "AGPL-3",
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
"we... | 31.75 | 762 |
2,585 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from os.path import dirname, join as opj
from odoo import fields, models, tools
class MisCommittedPurchase(models.Model):
_name = "mis.committed.purchase"
_description = "MIS Commitment"
_auto = False
lin... | 38.58209 | 2,585 |
562 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-mis-builder",
description="Meta package for oca-mis-builder Odoo addons",
version=version,
install_requires=[
'odoo-addon-mis_builder>=15.0dev,<15.1dev',
'odoo-a... | 28.1 | 562 |
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 |
5,481 | py | PYTHON | 15.0 | #
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup --------------------------------------------------------------
# If extensions (or ... | 30.281768 | 5,481 |
954 | py | PYTHON | 15.0 | # Copyright 2017-2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "MIS Builder Budget",
"summary": """
Create budgets for MIS reports""",
"version": "15.0.4.0.2",
"license": "AGPL-3",
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
... | 34.071429 | 954 |
4,767 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
from odoo.addons.mis_builder.models.expression_evaluator import ExpressionEvaluator
from odoo.addons.mis_builder.tests.common import assert_matrix
fro... | 35.051471 | 4,767 |
5,931 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import datetime
from odoo.tests.common import TransactionCase
from odoo.addons.mis_builder.tests.common import assert_matrix
from ..models.mis_report_instance_period import SRC_MIS_BUDGET
class... | 34.684211 | 5,931 |
2,523 | py | PYTHON | 15.0 | # Copyright 2023 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
from odoo.addons.mis_builder_budget.models.mis_report_instance import (
MisBudgetAwareExpressionEvaluator,
)
class TestBudgetAwareExpressionEvalu... | 37.102941 | 2,523 |
512 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MisBudget(models.Model):
_name = "mis.budget"
_description = "MIS Budget by KPI"
_inherit = ["mis.budget.abstract", "mail.thread"]
report_id = fields.Many2one(
... | 28.444444 | 512 |
2,314 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
SRC_MIS_BUDGET = "mis_budget"
SRC_MIS_BUDGET_BY_ACCOUNT = "mis_budget_by_account"
class MisReportInstancePeriod(models.Model):
_inherit = "mis.report.instance.period"
source = fiel... | 35.6 | 2,314 |
3,103 | py | PYTHON | 15.0 | # Copyright 2017-2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class MisBudgetByAccountItem(models.Model):
_inherit = ["mis.budget.item.abstract", "prorata.read_group.mixin"]
_name = "mis.budget.by.account.item"
_description = "MIS... | 31.989691 | 3,103 |
1,206 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class MisBudgetItem(models.Model):
_inherit = ["mis.budget.item.abstract", "mis.kpi.data"]
_name = "mis.budget.item"
_description = "MIS Budget Item (by KPI)"
_order = "... | 30.15 | 1,206 |
244 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MisReportKpi(models.Model):
_inherit = "mis.report.kpi"
budgetable = fields.Boolean(default=False)
| 22.181818 | 244 |
597 | py | PYTHON | 15.0 | # Copyright 2017-2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MisBudgetByAccount(models.Model):
_name = "mis.budget.by.account"
_description = "MIS Budget by Account"
_inherit = ["mis.budget.abstract", "mail.thread"]
item_id... | 31.421053 | 597 |
3,665 | py | PYTHON | 15.0 | # Copyright 2017-2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class MisBudgetItemAbstract(models.AbstractModel):
_name = "mis.budget.item.abstract"
_description = "MIS Budget Item (Abstra... | 37.020202 | 3,665 |
4,454 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
from odoo.osv.expression import AND
from odoo.addons.mis_builder.models.accounting_none import AccountingNone
from odoo.addons.mis_builder.models.expression_evaluator import ExpressionEvaluator
... | 36.809917 | 4,454 |
2,040 | py | PYTHON | 15.0 | # Copyright 2017-2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
class MisBudgetAbstract(models.AbstractModel):
_name = "mis.budget.abstract"
_description = "MIS Budget (Abstract Base Class)"
_inherit = ["mail.thread"]
name =... | 32.903226 | 2,040 |
811 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
class MisReportKpiExpression(models.Model):
_inherit = "mis.report.kpi.expression"
@api.model
def name_search(self, name="", args=None, operator="ilike", limit=100):
args =... | 33.791667 | 811 |
1,559 | py | PYTHON | 15.0 | # Copyright 2014-2018 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "MIS Builder",
"version": "15.0.4.1.3",
"category": "Reporting",
"summary": """
Build 'Management Information System' Reports and Dashboards
""",
"auth... | 32.479167 | 1,559 |
521 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
def migrate(cr, version):
cr.execute(
"""
ALTER TABLE mis_report_kpi
RENAME COLUMN expression TO old_expression
"""
)
# this migration to date_range type is ... | 26.05 | 521 |
801 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
def migrate(cr, version):
cr.execute(
"""
INSERT INTO mis_report_kpi_expression
(create_uid, create_date, write_uid, write_date,
kpi_id, name, sequence)... | 27.62069 | 801 |
3,198 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import SavepointCase
from odoo.addons.mis_builder.models.expression_evaluator import ExpressionEvaluator
from odoo.addons.mis_builder.models.mis_report_subreport import (
... | 33.3125 | 3,198 |
5,611 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestAnalyticFilters(TransactionCase):
def setUp(self):
super().setUp()
self.aag = self.env["account.analytic.group"].search(... | 41.873134 | 5,611 |
239 | py | PYTHON | 15.0 | # Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from ..models import accounting_none
from .common import load_doctests
load_tests = load_doctests(accounting_none)
| 29.875 | 239 |
8,385 | py | PYTHON | 15.0 | # Copyright 2014 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import datetime
import odoo.tests.common as common
from odoo import fields
from odoo.tools.safe_eval import safe_eval
from ..models.accounting_none import AccountingNone
from ..models.aep import A... | 39.928571 | 8,385 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.