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 |
1,174 | py | PYTHON | 15.0 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Document Page",
"version": "15.0.1.3.1",
"category": "Knowledge Management",
"author": "OpenERP SA, Odoo Community Association (OCA)",
"images": [
"images/cate... | 31.72973 | 1,174 |
2,327 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
class TestDocumentPage(common.TransactionCase):
def setUp(self):
super(TestDocumentPage, self).setUp()
self.page_obj = self.env["document.page"]
self.history_obj = self.env["document.page.history"... | 39.440678 | 2,327 |
995 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
class TestDocumentPageCreateMenu(common.TransactionCase):
"""document_page_create_menu test class."""
def test_page_menu_creation(self):
"""Test page menu creation."""
menu_parent = self.env.ref("kno... | 34.310345 | 995 |
1,116 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError
from odoo.tests import common
class TestDocumentPageShowDiff(common.TransactionCase):
"""document_page_show_diff test class."""
def test_show_demo_page1_diff(self):
"""Show test page history differen... | 34.875 | 1,116 |
806 | py | PYTHON | 15.0 | from odoo.tests import common
class TestDocumentPageHistory(common.TransactionCase):
"""document_page_history test class."""
def test_page_history_demo_page1(self):
"""Test page history demo page1."""
page = self.env.ref("document_page.demo_page1")
page.content = "Test content updated... | 42.421053 | 806 |
1,034 | py | PYTHON | 15.0 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
from odoo.exceptions import UserError
class DocumentPageShowDiff(models.TransientModel):
"""Display Difference for History."""
_name = "wizard.document.p... | 34.466667 | 1,034 |
2,205 | py | PYTHON | 15.0 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class DocumentPageCreateMenu(models.TransientModel):
"""Create Menu."""
_name = "document.page.create.menu"
_description = "Wizard Create Menu"
... | 35 | 2,205 |
5,986 | py | PYTHON | 15.0 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class DocumentPage(models.Model):
"""This class is use to manage Document."""
_name = "document.page"
... | 31.177083 | 5,986 |
2,382 | py | PYTHON | 15.0 | # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import difflib
from odoo import _, api, fields, models
class DocumentPageHistory(models.Model):
"""This model is necessary to manage a document history."""
_name = "document.page.history"... | 34.028571 | 2,382 |
479 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Document Page Group",
"summary": """
Define access groups on documents""",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"web... | 34.214286 | 479 |
1,666 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestDocumentPageGroup(TransactionCase):
def setUp(self):
super(TestDocumentPageGroup, self).setUp()
knowledge_group = self.browse_ref("knowledge.group_d... | 35.446809 | 1,666 |
1,036 | py | PYTHON | 15.0 | # Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class DocumentPage(models.Model):
_inherit = "document.page"
group_ids = fields.Many2many(
"res.groups",
store=True,
recursive=True,
relation="do... | 29.6 | 1,036 |
716 | py | PYTHON | 15.0 | # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Knowledge",
"version": "15.0.1.0.2",
"author": "OpenERP SA,"
"MONK Software, "
"Tecnativa, "
"ForgeFlow, "
"Odoo Community Association (OCA)",
"category": "K... | 28.64 | 716 |
335 | py | PYTHON | 15.0 | # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class IrAttachment(models.Model):
_inherit = "ir.attachment"
# Add index to res_model because filtering on it is a common use case
res_model = fields.Ch... | 30.454545 | 335 |
1,720 | py | PYTHON | 15.0 | # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class KnowledgeConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
module_attachment_indexation = fields.Boolean(
"Attachments L... | 37.391304 | 1,720 |
733 | py | PYTHON | 15.0 | # Copyright 2014 Tecnativa - Pedro M. Baeza
# Copyright 2020 Tecnativa - Manuel Calero
{
"name": "URL attachment",
"version": "15.0.1.1.1",
"category": "Tools",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"license": "AGPL-3",
"depen... | 29.32 | 733 |
384 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.logged_query(
env.cr,
"""
UPDATE ir_attachment
SET mimetype = 'app... | 23.875 | 382 |
1,180 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests import common
class TestDocumentUrl(common.TransactionCase):
def setUp(self):
super().setUp()
wizard_add_url = self.env["ir.attachment.add_url"]
self.wizard_add_url = wizard_add_url.with_context(
... | 40.689655 | 1,180 |
1,258 | py | PYTHON | 15.0 | # Copyright 2014 Tecnativa - Pedro M. Baeza
# Copyright 2020 Tecnativa - Manuel Calero
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
from urllib import parse
from odoo import fields, models
class AddUrlWizard(models.TransientModel):
_name = "ir.attachment.add_url"
_description = "Wizard to add URL attac... | 37 | 1,258 |
401 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class IrAttachment(models.Model):
_inherit = "ir.attachment"
def _compute_mimetype(self, values):
if values.get("url") and values.get("type", "url") == "url":
... | 30.692308 | 399 |
763 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Luis M. Ontalba
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Bank statement import move lines",
"version": "15.0.1.0.0",
"category": "Accounting",
"summary": "Import journal items into bank statement",
"author": "Tecnativa, " "Odoo Communi... | 34.681818 | 763 |
3,105 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Luis M. Ontalba
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0
from odoo import fields
from odoo.tests import TransactionCase
class TestAccountBankStatementImportMoveLine(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestAccountBankStatementImport... | 36.964286 | 3,105 |
1,187 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Luis M. Ontalba
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
def _prepare_statement_line_vals(self, statement):
self.ensure_one()
amount = 0.0
... | 31.236842 | 1,187 |
4,646 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Luis M. Ontalba
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import _, api, fields, models
class AccountStatementLineCreate(models.TransientModel):
_name = "account.statement.line.create"
_description = "Wizard to create statement lines"
stateme... | 36.296875 | 4,646 |
522 | py | PYTHON | 15.0 | {
"name": "Import OFX Bank Statement",
"category": "Banking addons",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Odoo SA,"
"Akretion,"
"La Louve,"
"GRAP,"
"Nicolas JEUDY,"
"Le Filament,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/b... | 29 | 522 |
3,939 | py | PYTHON | 15.0 | import base64
import datetime
from odoo.modules.module import get_module_resource
from odoo.tests.common import TransactionCase
class TestOfxFile(TransactionCase):
"""Tests for import bank statement ofx file format
(account.bank.statement.import)
"""
def setUp(self):
super(TestOfxFile, self)... | 35.809091 | 3,939 |
2,864 | py | PYTHON | 15.0 | import io
import logging
from odoo import _, api, models
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
try:
from ofxparse import OfxParser
except ImportError:
_logger.debug("ofxparse not found.")
OfxParser = None
class AccountStatementImport(models.TransientModel):
_in... | 32.545455 | 2,864 |
327 | py | PYTHON | 15.0 | from odoo import models
class AccountJournal(models.Model):
_inherit = "account.journal"
def _get_bank_statements_available_import_formats(self):
"""Adds ofx to supported import formats."""
rslt = super()._get_bank_statements_available_import_formats()
rslt.append("ofx")
retur... | 29.727273 | 327 |
647 | py | PYTHON | 15.0 | # Copyright 2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
{
"name": "Base module for Bank Statement Import",
"category": "Accounting",
"version": "15.0.1.0.0",
"license": "L... | 34.052632 | 647 |
2,885 | py | PYTHON | 15.0 | # Copyright 2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import api, models
from odoo.addons.base.models.res_bank import sanitize_account_number
class AccountJournal(models.Model)... | 41.811594 | 2,885 |
751 | py | PYTHON | 15.0 | # Copyright 2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line"
# Ens... | 34.136364 | 751 |
1,066 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow, S.L.
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Bank Statement TXT/CSV/XLSX Import",
"summary": "Import TXT/CSV or XLSX files as Bank Statements in Odoo",
"version": "15.0.2.0.1",
"categ... | 36.758621 | 1,066 |
1,206 | py | PYTHON | 15.0 | # Copyright 2022 AppsToGROW - Henrik Norlin
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
_fields_to_add = [
(
"amount_debit_column",
"account.statement.import.sheet.mapping",
"account_statement_import_sheet_mapping",
"char"... | 28.714286 | 1,206 |
18,085 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow, S.L.
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from base64 import b64encode
from os import path
from odoo import fields
from odoo.exceptions import UserError
from odoo.tests import common
class TestAccountBank... | 40.011062 | 18,085 |
6,191 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow, S.L.
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class AccountStatementImportSheetMapping(models.Model):
_name = "account.statement.import.sheet.mapping"
_description ... | 35.786127 | 6,191 |
562 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow, S.L.
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountJournal(models.Model):
_inherit = "account.journal"
default_sheet_mapping_id = fields.Many2one(
comod... | 31.222222 | 562 |
15,711 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow, S.L.
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import itertools
import logging
from datetime import datetime
from decimal import Decimal
from io import StringIO
from os import path
from odoo import _, api, model... | 36.117241 | 15,711 |
1,805 | py | PYTHON | 15.0 | # Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import fields, models
_logger = logging.getLogger(__name__)
class AccountStatementImport(models.TransientModel):
_inherit = "account.statement.import"
def _get_... | 36.836735 | 1,805 |
6,594 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow, S.L.
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json
from base64 import b64decode
from os import path
from odoo import _, api, fields, models
class AccountStatementImportSheetMappingWizard(models.Transie... | 35.451613 | 6,594 |
1,100 | py | PYTHON | 15.0 | # Copyright 2004-2020 Odoo S.A.
# Copyright 2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
{
"name": "Import Statement Files",
"category": "Accounting",
"version": "15.0.3.1.0",
... | 33.333333 | 1,100 |
1,122 | py | PYTHON | 15.0 | # pylint: disable=C7902
# Copyright 2022 ForgeFlow S.L. <https://www.forgeflow.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
if openupgrade.column_exists(
env.cr, "account_bank_statement_l... | 41.555556 | 1,122 |
15,177 | py | PYTHON | 15.0 | # Copyright 2004-2020 Odoo S.A.
# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
import base64
import logging
from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo.addons.base.models.res_bank import sanitize_account_number
logger = logging.getLogger(__name__)
... | 42.275766 | 15,177 |
717 | py | PYTHON | 15.0 | # Copyright 2004-2020 Odoo S.A.
# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
from odoo import models
class AccountSetupBankManualConfig(models.TransientModel):
_inherit = "account.setup.bank.manual.config"
def validate(self):
"""Default the bank statement source of new bank j... | 35.85 | 717 |
1,305 | py | PYTHON | 15.0 | # Copyright 2004-2020 Odoo S.A.
# Copyright 2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
from odoo import _, models
class AccountJournal(models.Model):
_inherit = "account.journal"
... | 38.382353 | 1,305 |
487 | py | PYTHON | 15.0 | # Copyright 2013-2017 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "CAMT Format Bank Statements Import",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"author": "Therp BV, Odoo Community Association (OCA)",
"website": "https://github.com... | 40.583333 | 487 |
6,225 | py | PYTHON | 15.0 | # Copyright 2013-2016 Therp BV <https://therp.nl>
# Copyright 2017 Open Net Sàrl
# Copyright 2020 Camptocamp
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import base64
import difflib
import pprint
import tempfile
from datetime import date
from odoo.modules.module import get_module_resource
fro... | 37.047619 | 6,224 |
480 | py | PYTHON | 15.0 | # Copyright 2019 ACSONE SA/NV <thomas.binsfeld@acsone.eu>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, models
class AccountJournal(models.Model):
_inherit = "account.journal"
def _get_bank_statements_available_import_formats(self):
res = super(
Acc... | 32 | 480 |
10,603 | py | PYTHON | 15.0 | """Class to parse camt files."""
# Copyright 2013-2016 Therp BV <https://therp.nl>
# Copyright 2017 Open Net Sàrl
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import re
from lxml import etree
from odoo import models
class CamtParser(models.AbstractModel):
_name = "account.statement.impo... | 37.864286 | 10,602 |
406 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class AccountBankStatement(models.Model):
_inherit = "account.bank.statement"
def reconciliation_widget_preprocess(self):
return super(
AccountBankStatement, self.w... | 31.230769 | 406 |
1,451 | py | PYTHON | 15.0 | # Copyright 2013-2016 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import logging
import zipfile
from io import BytesIO
from odoo import models
_logger = logging.getLogger(__name__)
class AccountBankStatementImport(models.TransientModel):
_inherit = "account.... | 38.184211 | 1,451 |
907 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line"
def write(self, vals):
"""
Purpose of this hook is catch updates for records with... | 33.592593 | 907 |
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 |
1,292 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-bank-statement-import",
description="Meta package for oca-bank-statement-import Odoo addons",
version=version,
install_requires=[
'odoo-addon-account_bank_statement_clea... | 44.551724 | 1,292 |
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 |
681 | py | PYTHON | 15.0 | # Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020-2021 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Online Bank Statements: PayPal.com",
"version": "15.0.1.1.1",
"author": "CorporateHub, Odoo Community Associat... | 40.058824 | 681 |
29,337 | py | PYTHON | 15.0 | # Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2021-2022 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json
from datetime import datetime
from decimal import Decimal
from unittest import mock
from urllib.error import HTTPError
f... | 31.044444 | 29,337 |
22,041 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2021 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import itertools
import json
import urllib.request
from base64 import b64encode
from datetime import datetime
from decimal impor... | 41.508475 | 22,041 |
580 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - João Marques
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Clear all partners in bank statement lines",
"version": "15.0.1.0.1",
# see https://odoo-community.org/page/development-status
"development_status": "Production/Stable",
"category": ... | 41.357143 | 579 |
4,465 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - João Marques
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0
from odoo.tests import common
class TestAccountBankStatementClearPartner(common.SavepointCase):
@classmethod
def setup_multi_currency_data(cls, default_values=None, rate2016=3.0, rate2017=2.0):
defau... | 38.153846 | 4,464 |
384 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - João Marques
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class AccountBankStatementClearPartner(models.Model):
_inherit = "account.bank.statement"
def clear_partners(self):
for line in self.line_ids:
if not line.is... | 29.461538 | 383 |
1,055 | py | PYTHON | 15.0 | # Copyright 2014-2017 Akretion (http://www.akretion.com).
# Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "PayPal CSV Forma... | 37.678571 | 1,055 |
1,094 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade
_model_renames = [
(
"account.bank.statement.import.paypal.mapping",
"account.statement.import.paypal.mapping",
),
(
"account.bank.statem... | 27.35 | 1,094 |
7,692 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from base64 import b64encode
from os import path
from odoo import fields
from odoo.exceptions... | 39.854922 | 7,692 |
3,581 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class AccountBankStatementImportPayPalMapping(models.Mo... | 29.352459 | 3,581 |
9,151 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import itertools
import logging
from datetime import datetime
from decimal import Decimal
from... | 36.604 | 9,151 |
509 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class AccountJournal(models.Model):
_inherit = "account.journal"... | 33.933333 | 509 |
1,383 | py | PYTHON | 15.0 | # Copyright 2014-2017 Akretion (http://www.akretion.com).
# Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import fie... | 35.461538 | 1,383 |
5,838 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import json
from base64 import b64decode
from os import path
from odoo import _, api, fi... | 34.75 | 5,838 |
426 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Bank Account Camt54 Import",
"version": "15.0.1.0.0",
"category": "Account",
"website": "https://github.com/OCA/bank-statement-import",
"author": "camptocamp, " "Odoo Community Association (OCA... | 35.5 | 426 |
2,598 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError
from odoo.tests import common
class TestGetPartnerRef(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.Parser = cls.env["accou... | 39.363636 | 2,598 |
2,553 | py | PYTHON | 15.0 | # Copyright 2020 Camptocamp SA
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import base64
from odoo.modules.module import get_module_resource
from odoo.tests.common import TransactionCase
class TestGenerateBankStatement(TransactionCase):
@classmethod... | 37.544118 | 2,553 |
363 | py | PYTHON | 15.0 | # Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountBankStatementImport(models.Model):
_inherit = "account.journal"
transfer_line = fields.Boolean(
string="Add balance Line",
help="Generate balance line... | 25.928571 | 363 |
3,605 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, exceptions, models
class CamtParser(models.AbstractModel):
"""Parser for camt bank statement import files."""
_inherit = "account.statement.import.camt.parser"
def _get_partner_ref(self, i... | 36.05 | 3,605 |
1,997 | py | PYTHON | 15.0 | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import models
_logger = logging.getLogger(__name__)
class AccountStatementImport(models.TransientModel):
"""Add process_camt method to account.bank.statement.import."""
_inherit = "accou... | 39.156863 | 1,997 |
998 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2020 CorporateHub (https://corporatehub.eu)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Online Bank Statements",
"version": "15.0.3.0.0",
"author": "CorporateHub, Odoo Community Association (OCA)",
... | 35.642857 | 998 |
542 | py | PYTHON | 15.0 | # Copyright 2022 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 openupgradelib import openupgrade
_column_renames = {
"account_bank_statement_line": [
("online_raw_data", None),
... | 28.526316 | 542 |
623 | py | PYTHON | 15.0 | # Copyright 2022 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 openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
column = openupgrade.get_legacy_name("onl... | 36.647059 | 623 |
2,834 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2019-2020 Dataplug (https://dataplug.io)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime, timedelta
from random import randrange
from dateutil.relativedelta import relativedelta
from pytz i... | 36.805195 | 2,834 |
27,159 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2019-2020 Dataplug (https://dataplug.io)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from datetime import date, datetime
from unittest import mock
from urllib.error import HTTPError
from dateutil.relativedelta import rel... | 35.409387 | 27,159 |
835 | py | PYTHON | 15.0 | # Copyright 2021 Therp BV (https://therp.nl).
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from unittest.mock import patch
from odoo.tests import common
class TestAccountJournal(common.TransactionCase):
"""Test some functions adde d to account.journal model."""
def setUp(self):
s... | 37.954545 | 835 |
14,664 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2019-2020 Dataplug (https://dataplug.io)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import logging
from datetime import datetime
from decimal import Decimal
from html import escape
from dateutil.relativedelta impor... | 38.1875 | 14,664 |
3,277 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2019-2020 Dataplug (https://dataplug.io)
# 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 AccountJournal(models.Model)... | 39.011905 | 3,277 |
2,388 | py | PYTHON | 15.0 | # Copyright 2019-2020 Brainbean Apps (https://brainbeanapps.com)
# Copyright 2019-2020 Dataplug (https://dataplug.io)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class OnlineBankStatementPullWizard(models.TransientModel):
_name = "online.bank.statement.pu... | 38.516129 | 2,388 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.