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 |
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 |
662 | py | PYTHON | 15.0 | # Copyright 2015 Pedro M. Baeza
# Copyright 2017 Vicent Cubells - Tecnativa <vicent.cubells@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Account netting",
"version": "15.0.1.0.0",
"summary": "Compensate AR/AP accounts from the same partner",
"category": "Ac... | 34.842105 | 662 |
8,750 | py | PYTHON | 15.0 | # Copyright 2015 Pedro M. Baeza
# Copyright 2017 Tecnativa - Vicent Cubells
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from datetime import datetime
import odoo.tests.common as common
from odoo.exceptions import ValidationError
from odoo.tests import ... | 41.459716 | 8,748 |
5,370 | py | PYTHON | 15.0 | # Copyright 2015 Pedro M. Baeza
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import _, api, exceptions, fields, models
class AccountMoveMakeNetting(models.TransientModel):
_name = "account.move.make.netting"
_description = "Wizard to g... | 39.777778 | 5,370 |
619 | py | PYTHON | 15.0 | # Copyright 2010-2014 Camptocamp - Vincent Renaville
# Copyright 2016 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Balance on journal items",
"summary": "Display balance totals in move line view",
"version": "15.0.1.1.0",
"category": "Accounting",... | 38.6875 | 619 |
488 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow, S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Assets Management Menu",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"depends": ["account_asset_management", "account_usability"],
"author": "ForgeFlow, Odoo Community Association (OCA)",
... | 34.857143 | 488 |
505 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Move Fiscal Month",
"summary": """Display the fiscal month on journal entries/item""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (O... | 38.846154 | 505 |
6,387 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.fields import Date
from odoo.tests.common import TransactionCase
class TestAccountMoveFiscalMonth(TransactionCase):
def setUp(self):
super(TestAccountMoveFiscalMonth, self).setUp()
self.Account... | 32.586735 | 6,387 |
1,581 | 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
from odoo.osv import expression
class AccountMove(models.Model):
_inherit = "account.move"
date_range_fm_id = fields.Many2one(
comodel_name="date.range",
string... | 31.62 | 1,581 |
293 | 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 AccountMoveLine(models.Model):
_inherit = "account.move.line"
date_range_fm_id = fields.Many2one(
related="move_id.date_range_fm_id",
)
| 22.538462 | 293 |
984 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
def pre_init_hook(cr):
"""Precreate account_internal_group and fill with appropriate values to prevent
a MemoryError when the ORM attempts to call its compute method on a large
amount of preexis... | 37.846154 | 984 |
669 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Move Total By Account Internal Group",
"version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"summary": "Adds Totals by Account Internal Group in Journal Entrie... | 33.45 | 669 |
4,423 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestAccountMoveTotalsByAccountType(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestAccountMoveTotalsByAccountType, cls).setUpClass()
... | 35.95935 | 4,423 |
3,050 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountMove(models.Model):
_inherit = "account.move"
amount_total_signed_account_internal_group_equity = fields.Monetary(
compute="_compute_amount_total_signed_... | 40.666667 | 3,050 |
471 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
# Making standard field stored in order to do the calculations faster
account_internal_group = fields.... | 29.4375 | 471 |
637 | 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": "Assets Management - Low Value Asset",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.... | 33.526316 | 637 |
3,352 | 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
from odoo.tests import tagged
from odoo.tests.common import Form
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@tagged("post_install", "-at_insta... | 41.382716 | 3,352 |
560 | 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 models
class AccountAssetRemove(models.TransientModel):
_inherit = "account.asset.remove"
def remove(self):
self.ensure_one()
asset_id = self.env.context... | 32.941176 | 560 |
2,842 | 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 _, api, fields, models
class AccountAsset(models.Model):
_inherit = "account.asset"
low_value = fields.Boolean(
string="Low Value Asset",
compute="_compu... | 36.909091 | 2,842 |
809 | py | PYTHON | 15.0 | # Copyright 2022 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "General sequence in account journals",
"summary": "Add configurable sequence to account moves, per journal",
"version": "15.0.1.1.0",
"category": "Accounting/Accounting",
"website": "ht... | 35.173913 | 809 |
3,750 | py | PYTHON | 15.0 | # Copyright 2022 Moduon
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from freezegun import freeze_time
from odoo.tests.common import Form, new_test_user, tagged, users
from odoo.tools import mute_logger
from odoo.addons.account.tests.common import TestAccountReconciliationCommon
@freeze_tim... | 41.666667 | 3,750 |
2,634 | py | PYTHON | 15.0 | # Copyright 2022 Moduon
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
import logging
from odoo import api, fields, models
_logger = logging.getLogger(__name__)
ADDON = "account_journal_general_sequence"
class AccountMove(models.Model):
_inherit = "account.move"
_sql_constraints = [... | 36.082192 | 2,634 |
1,295 | py | PYTHON | 15.0 | # Copyright 2022 Moduon
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
import logging
from odoo import _, fields, models
_logger = logging.getLogger(__name__)
class AccountJournal(models.Model):
_inherit = "account.journal"
entry_number_sequence_id = fields.Many2one(
comodel_... | 33.205128 | 1,295 |
265 | py | PYTHON | 15.0 | # Copyright 2022 Moduon
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
entry_number = fields.Char(related="move_id.entry_number")
| 26.5 | 265 |
3,088 | py | PYTHON | 15.0 | # Copyright 2022 Moduon
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from datetime import date
from odoo import _, api, exceptions, fields, models
class AccountMoveRenumberWizard(models.TransientModel):
_name = "account.move.renumber.wizard"
_description = "Account move entry renumb... | 37.204819 | 3,088 |
499 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Move Line Tax Editable",
"summary": "Allows to edit taxes on non-posted account move lines",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Associa... | 38.384615 | 499 |
3,083 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import odoo.tests.common as common
from odoo import fields
class TestAccountMoveLineTaxEditable(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
acc... | 34.640449 | 3,083 |
1,805 | 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 AccountMoveLine(models.Model):
_inherit = "account.move.line"
is_tax_editable = fields.Boolean(
string="Is tax data editable?", compute="_compute_is_tax_editable"... | 38.404255 | 1,805 |
1,220 | py | PYTHON | 15.0 | # Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Account - Missing Menus & Saxon Accounting",
"version": "15.0.1.0.2",
"category": "Accounting",
"license... | 39.354839 | 1,220 |
358 | py | PYTHON | 15.0 | # Copyright 2018 FOREST AND BIOMASS ROMANIA SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountTaxGroup(models.Model):
_inherit = "account.tax.group"
tax_ids = fields.One2many(
comodel_name="account.tax",
inverse_name="tax_gro... | 25.571429 | 358 |
358 | py | PYTHON | 15.0 | # Copyright 2018 FOREST AND BIOMASS ROMANIA SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountGroup(models.Model):
_inherit = "account.group"
account_ids = fields.One2many(
comodel_name="account.account",
inverse_name="group_... | 25.571429 | 358 |
560 | py | PYTHON | 15.0 | # Copyright 2021 Opener B.V. <stefan@opener.amsterdam>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
anglo_saxon_accounting = fields.Boolean(
related="company_id.ang... | 32.941176 | 560 |
385 | py | PYTHON | 15.0 | # Copyright 2018 FOREST AND BIOMASS ROMANIA SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountAccountTag(models.Model):
_inherit = "account.account.tag"
account_ids = fields.Many2many(
comodel_name="account.account",
relation... | 27.5 | 385 |
1,189 | py | PYTHON | 15.0 | # Copyright 2009-2019 Noviat
# Copyright 2019 Tecnativa - Pedro M. Baeza
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Assets Management",
"version": "15.0.1.0.4",
"license": "AGPL-3",
"depends": ["account", "report_xlsx_helper"],
... | 36 | 1,188 |
38,435 | py | PYTHON | 15.0 | # Copyright (c) 2014 ACSONE SA/NV (acsone.eu).
# Copyright 2009-2018 Noviat
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import calendar
import time
from datetime import date, datetime
from odoo import Command, fields
from odoo.tests import tagged
from odoo... | 40.499473 | 38,434 |
3,264 | py | PYTHON | 15.0 | # Copyright 2009-2019 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import time
from odoo import fields
from odoo.tests import tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@tagged("post_install", "-at_install")
class TestAssetManagementXls(AccountTestInvoi... | 37.090909 | 3,264 |
2,078 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
class AccountAssetCompute(models.TransientModel):
_name = "account.asset.compute"
_description = "Compute Assets"
date_end = fields.Date(
string="Date",
require... | 33.516129 | 2,078 |
14,110 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from dateutil.relativedelta import relativedelta
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
_logger = logging.getL... | 37.624 | 14,109 |
2,052 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow, S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class WizAssetMoveReverse(models.TransientModel):
_name = "wiz.asset.move.reverse"
_description = "Reverse posted journal entry on depreciation line"
line_id = fields.Many... | 34.779661 | 2,052 |
2,421 | py | PYTHON | 15.0 | # Copyright 2009-2019 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import unicodedata
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class WizAccountAssetReport(models.TransientModel):
_name = "wiz.account.asset.report"
_description = "Financial Asset... | 33.164384 | 2,421 |
9,927 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# Copyright 2021 Tecnativa - João Marques
# Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo.tests.common import Form
_logger =... | 37.590909 | 9,924 |
13,191 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class AccountAssetLine(models.Model):
_name = "account.asset.line"
_description = "Asset depreci... | 39.491018 | 13,190 |
946 | py | PYTHON | 15.0 | # Copyright 2009-2017 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class AccountAccount(models.Model):
_inherit = "account.account"
asset_profile_id = fields.Many2one(
comodel_name="account.... | 32.62069 | 946 |
9,032 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class AccountAssetProfile(models.Model):
_name = "account.asset.profile"
_check_company_auto = True
_description = "Asset profile"
... | 38.931034 | 9,032 |
782 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountAssetRecomputeTrigger(models.Model):
_name = "account.asset.recompute.trigger"
_description = "Asset table recompute triggers"
reason = fields.Char(required=True)
... | 34 | 782 |
2,523 | py | PYTHON | 15.0 | # Copyright 2009-2020 Noviat
# Copyright 2019 Tecnativa - Pedro M. Baeza
# Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo.osv import expression
class AccountAssetGroup(models.Model):
_name = "account.asset.... | 31.123457 | 2,521 |
50,136 | py | PYTHON | 15.0 | # Copyright 2009-2018 Noviat
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import calendar
import logging
from datetime import date
from functools import reduce
from sys import exc_info
from traceback import format_exception
from dateutil.relativedelta imp... | 37.331348 | 50,136 |
28,593 | py | PYTHON | 15.0 | # Copyright 2009-2019 Noviat
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import _, models
from odoo.exceptions import UserError
from odoo.tools.translate import translate
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import (
FORMATS,
XLS_HEADERS,
... | 38.639189 | 28,593 |
492 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Fiscal Month",
"summary": """Provide a fiscal month date range type""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"web... | 37.846154 | 492 |
2,377 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from psycopg2 import IntegrityError
from odoo.exceptions import UserError
from odoo.fields import Date
from odoo.tests.common import TransactionCase
from odoo.tools import mute_logger
class TestAccountFiscalMonth(Transacti... | 34.449275 | 2,377 |
612 | 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
from odoo.exceptions import UserError
class DateRangeType(models.Model):
_inherit = "date.range.type"
fiscal_month = fields.Boolean(string="Is fiscal month?", readonly=True)
... | 32.210526 | 612 |
721 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class ResCompany(models.Model):
_inherit = "res.company"
def find_daterange_fm(self, date_str):
self.ensure_one()
fm_id = self.env.ref("account_fiscal_month.date_range_fisca... | 28.84 | 721 |
556 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Chart update OSS OCA",
"version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"maintainers": ["LoisRForgeFlow"],
"website": "http... | 30.888889 | 556 |
462 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class WizardUpdateChartsAccounts(models.TransientModel):
_inherit = "wizard.update.charts.accounts"
def _domain_taxes_to_deactivate(self, found_taxes_ids):
... | 35.538462 | 462 |
963 | py | PYTHON | 15.0 | # Copyright 2021 Akretion France (http://www.akretion.com/)
# Copyright 2022 Vauxoo (https://www.vauxoo.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# @author: Moisés López <moylop260@vauxoo.com>
# @author: Francisco Luna <fluna@vauxoo.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/ag... | 35.592593 | 961 |
1,334 | py | PYTHON | 15.0 | # Copyright 2021 Akretion France (http://www.akretion.com/)
# Copyright 2022 Vauxoo (https://www.vauxoo.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# @author: Moisés López <moylop260@vauxoo.com>
# @author: Francisco Luna <fluna@vauxoo.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/ag... | 41.625 | 1,332 |
8,758 | py | PYTHON | 15.0 | # Copyright 2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# @author: Moisés López <moylop260@vauxoo.com>
# @author: Francisco Luna <fluna@vauxoo.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from fre... | 39.264574 | 8,756 |
2,987 | py | PYTHON | 15.0 | # Copyright 2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class AccountMove(models.Model):
_inherit = "account.move"
name = fields.Char(compute="_... | 40.917808 | 2,987 |
10,225 | py | PYTHON | 15.0 | # Copyright 2021 Akretion France (http://www.akretion.com/)
# Copyright 2022 Vauxoo (https://www.vauxoo.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# @author: Moisés López <moylop260@vauxoo.com>
# @author: Francisco Luna <fluna@vauxoo.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/ag... | 41.722449 | 10,222 |
1,919 | py | PYTHON | 15.0 | from odoo import fields, models
class IrSequence(models.Model):
_inherit = "ir.sequence"
def _create_date_range_seq(self, date):
# Fix issue creating new date range for future dates
# It assigns more than one month
# TODO: Remove if odoo merge the following PR:
# https://githu... | 36.903846 | 1,919 |
848 | py | PYTHON | 15.0 | # Copyright 2015-2017 See manifest
# Copyright 2018 Raf Ven <raf.ven@dynapps.be>
# Copyright 2019 Akretion France (http://www.akretion.com/)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Account Move Template",
"version": "15.0.1.0.0",
"category": "Accounting",
"summary": ... | 36.869565 | 848 |
8,299 | py | PYTHON | 15.0 | # Copyright 2018-2019 ForgeFlow, S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from psycopg2 import IntegrityError
from odoo import Command, fields
from odoo.tests.common import TransactionCase
from odoo.tools import mute_logger
_logger = logging.getLogger(__name__)
class... | 37.722727 | 8,299 |
10,896 | py | PYTHON | 15.0 | # Copyright 2020 Ecosoft (http://ecosoft.co.th)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import Command
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import Form, TransactionCase
class TestAccountMoveTemplateEnhanced(TransactionCase):
def setUp(sel... | 40.206642 | 10,896 |
12,136 | py | PYTHON | 15.0 | # Copyright 2015-2019 See manifest
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from ast import literal_eval
from odoo import Command, _, fields, models
from odoo.exceptions import UserError, ValidationError
class AccountMoveTemplateRun(models.TransientModel):
_name = "account.move.template.r... | 40.052805 | 12,136 |
7,491 | py | PYTHON | 15.0 | # Copyright 2015-2019 See manifest
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools.safe_eval import safe_eval
class AccountMoveTemplate(models.Model):
_name = "account.move.template"
... | 37.084158 | 7,491 |
561 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Residual amount on journal items",
"summary": "Display residual amount in move line view",
"version": "15.0.1.0.1",
"category": "Accounting",
"website": "https://github.com/OCA/acco... | 37.4 | 561 |
480 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Account Maturity Date Default",
"version": "15.0.1.0.0",
"category": "Accounting",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/... | 34.142857 | 478 |
3,960 | py | PYTHON | 15.0 | # Copyright 2021-2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import fields
from odoo.tests import Form, common
class TestAccountMove(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.account_tax =... | 37.695238 | 3,958 |
573 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class AccountMove(models.Model):
_inherit = "account.move"
def write(self, vals):
res = super().write(vals)
if vals.get("date"):
self.mapped("line_... | 31.722222 | 571 |
685 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
if... | 40.176471 | 683 |
674 | py | PYTHON | 15.0 | # Copyright 2019-2020 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Account Move Line Purchase Info",
"summary": "Introduces the purchase order line to the journal items",
"version": "15.0.1.1.1",
"author": "ForgeFlow, Od... | 33.7 | 674 |
9,254 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields
from odoo.tests import Form, common
class TestAccountMoveLinePurchaseInfo(common.TransactionCase):
@classmethod
def setUpClass(cls):
super(Test... | 37.771429 | 9,254 |
368 | 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.html).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
purchase_order_id = fields.Many2one(
comodel_name="purchase.order"... | 24.533333 | 368 |
673 | py | PYTHON | 15.0 | # Copyright 2019-2020 ForgeFlow S.L.
# (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
def name_get(self):
result = []
orig_name = dict(super(Pur... | 33.65 | 673 |
2,482 | py | PYTHON | 15.0 | from odoo import api, fields, models
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
@api.depends("order_line.invoice_lines.move_id")
def _compute_journal_entries(self):
for order in self:
journal_entries = order.mapped("order_line.invoice_lines.move_id").filtered(
... | 39.396825 | 2,482 |
616 | 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.html).
from odoo import api, models
class StockMove(models.Model):
_inherit = "stock.move"
@api.model
def _prepare_account_move_line(
self, qty, cost, credit_account_id,... | 30.8 | 616 |
670 | py | PYTHON | 15.0 | # Copyright 2013-2020 Akretion France (https://akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Fiscal Position VAT Check",
"version": "15.0.1.0.1",
"category": "Invoices & Payments",
"license": ... | 35.263158 | 670 |
1,459 | py | PYTHON | 15.0 | # Copyright 2013-2020 Akretion France (https://akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, models
from odoo.exceptions import UserError
class AccountMove(models.Model):
_inherit = "account.move"
... | 40.527778 | 1,459 |
785 | py | PYTHON | 15.0 | # Copyright 2013-2022 Akretion France (https://akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
show_warning_vat_required = f... | 34.130435 | 785 |
535 | py | PYTHON | 15.0 | # Copyright 2018 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Sale Order Priority",
"summary": "Define priority on sale orders",
"version": "15.0.1.0.1",
"category": "Sale Workflow",
"website": "https://github.com/OCA/sale-workflow"... | 35.666667 | 535 |
2,586 | py | PYTHON | 15.0 | # Copyright 2018 Simone Rubino - Agile Business Group
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.addons.sale.tests.common import TestSaleCommonBase
class TestSaleStock(TestSaleCommonBase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.company = cls... | 36.422535 | 2,586 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.