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
2,308
py
PYTHON
15.0
# Copyright 2017-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). import base64 from odoo import fields, models, tools class ResCompany(models.Model): _inherit = "res.company" xml_forma...
34.447761
2,308
518
py
PYTHON
15.0
# Copyright 2017-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.html). from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" fa...
37
518
781
py
PYTHON
15.0
# Copyright 2020 ACSONE # @author: Simone Orsi <simahawk@gmail.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "EDI Storage backend support", "summary": """ Base module to allow exchanging files via storage backend (eg: SFTP). """, "version": "15.0.1.2.0", "develo...
32.541667
781
2,758
py
PYTHON
15.0
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import base64 import mock from odoo.addons.edi_oca.tests.common import EDIBackendCommonComponentRegistryTestCase from odoo.addons.edi_oca.tests.fake_components import FakeInputProcess LISTENER...
38.84507
2,758
3,182
py
PYTHON
15.0
# Copyright 2020 ACSONE # @author: Simone Orsi <simahawk@gmail.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo.addons.component.core import Component from odoo.addons.edi_oca.tests.common import EDIBackendCommonComponentRegistryTestCase class EDIBackendTestCase(EDIBackendCommonComponen...
34.215054
3,182
9,036
py
PYTHON
15.0
# Copyright 2020 ACSONE SA/NV (<http://acsone.eu>) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from freezegun import freeze_time from odoo.tools import mute_logger from .common import TestEDIStorageBase LOGGERS = ( "odoo.addons.edi_storage_oca.components.check", "odoo.addons.edi_oca....
37.966387
9,036
6,607
py
PYTHON
15.0
# Copyright 2020 ACSONE SA/NV (<http://acsone.eu>) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). import base64 import functools import mock from odoo.addons.edi_oca.tests.common import EDIBackendCommonComponentTestCase STORAGE_BACKEND_MOCK_PATH = ( "odoo.addons.storage_backend.models.stora...
38.864706
6,607
1,927
py
PYTHON
15.0
# Copyright 2020 ACSONE # @author: Simone Orsi <simahawk@gmail.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import mock from .common import STORAGE_BACKEND_MOCK_PATH, TestEDIStorageBase class EDIStorageComponentTestCase(TestEDIStorageBase): def test_remote_file_path(self): to_tes...
42.822222
1,927
2,539
py
PYTHON
15.0
# Copyright 2022 Camptocamp SA (https://www.camptocamp.com). # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo.addons.edi_oca.tests.common import EDIBackendCommonTestCase class EDIExchangeTypeTestCase(EDIBackendCommonTestCase): def _check_test_storage_fullpath(self, wanted_fullpath, direc...
37.895522
2,539
6,427
py
PYTHON
15.0
# Copyright 2020 ACSONE SA # @author Simone Orsi <simahawk@gmail.com> # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import logging import os from odoo import fields, models _logger = logging.getLogger(__name__) class EDIBackend(models.Mo...
38.029586
6,427
2,171
py
PYTHON
15.0
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from pathlib import PurePath from odoo import fields, models class EDIExchangeType(models.Model): _inherit = "edi.exchange.type" # Extend help to explain new usage. exchange_filen...
35.016129
2,171
3,198
py
PYTHON
15.0
# Copyright 2020 ACSONE # @author: Simone Orsi <simahawk@gmail.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import logging from odoo.tools import pycompat from odoo.addons.component.core import Component _logger = logging.getLogger(__name__) class EDIStorageCheckComponentMixin(Component): ...
34.76087
3,198
552
py
PYTHON
15.0
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo.addons.component.core import Component class EDIStorageReceiveComponent(Component): _name = "edi.storage.component.receive" _inherit = [ "edi.component.receive.mixin"...
29.052632
552
1,315
py
PYTHON
15.0
# Copyright 2020 ACSONE # @author: Simone Orsi <simahawk@gmail.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo.addons.component.core import Component class EDIStorageSendComponent(Component): _name = "edi.storage.component.send" _inherit = [ "edi.component.send.mixin",...
36.527778
1,315
3,809
py
PYTHON
15.0
# Copyright 2020 ACSONE # Copyright 2022 Camptocamp # @author: Simone Orsi <simahawk@gmail.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import logging from pathlib import PurePath from odoo.addons.component.core import AbstractComponent _logger = logging.getLogger(__file__) class EDIStorageC...
38.474747
3,809
2,792
py
PYTHON
15.0
# Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import functools from pathlib import PurePath from odoo.addons.component.core import Component class EdiStorageListener(Component): _name = "edi.storage.component.listener" _inherit = ...
40.463768
2,792
993
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2014-2022 Tecnativa - Pedro M. Baeza { "name": "Commissions", "version": "15.0.2.1.0", "author": "Tecnativa, Odoo Community Association (OCA)", "category": "Invoicing", "license": "AGPL-3", "depends": ["product"], ...
35.464286
993
6,122
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2016-2022 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from dateutil.relativedelta import relativedelta from odoo import fields from odoo.exceptions import ValidationError from odoo.tests.c...
36.224852
6,122
2,153
py
PYTHON
15.0
# Copyright 2016-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, api, exceptions, fields, models class Commission(models.Model): _name = "commission" _description = "Commission" name = fields.Char(required=True) commission_type = f...
34.174603
2,153
5,504
py
PYTHON
15.0
# Copyright 2018-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models class CommissionMixin(models.AbstractModel): _name = "commission.mixin" _description = ( "Mixin model for applying to any object that wants to hand...
34.616352
5,504
253
py
PYTHON
15.0
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class ProductTemplate(models.Model): _inherit = "product.template" commission_free = fields.Boolean(string="Free of commission", default=False)
28.111111
253
4,186
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2014-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class CommissionSettlement(models.Model): _name = "commission.settlement" _description =...
30.115108
4,186
1,871
py
PYTHON
15.0
# Copyright 2018 Tecnativa - Ernesto Tejeda # Copyright 2016-2022 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import api, fields, models class ResPartner(models.Model): """Add some fields related to commissions""" _inherit = "res.partner" agent...
30.672131
1,871
6,461
py
PYTHON
15.0
# Copyright 2022 Quartile # Copyright 2014-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from datetime import date, timedelta from dateutil.relativedelta import relativedelta from odoo import _, api, fields, models class CommissionMakeSettle(models.TransientModel):...
42.228758
6,461
574
py
PYTHON
15.0
# Copyright 2015-2020 Tecnativa - Pedro M. Baeza # Copyright 2021 Tecnativa - João Marques # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html { "name": "HR commissions", "version": "15.0.1.0.0", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/c...
31.833333
573
1,526
py
PYTHON
15.0
# Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import exceptions from odoo.addons.commission.tests.test_commission import TestCommissionBase class TestHrCommission(TestCommissionBase): @classmethod def setUpClass(cls): super()....
39.128205
1,526
747
py
PYTHON
15.0
# Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import _, exceptions, models class HrEmployee(models.Model): _inherit = "hr.employee" def write(self, vals): """Check if there's an agent linked to that employee.""" if "us...
35.571429
747
1,898
py
PYTHON
15.0
# Copyright 2015-2018 Tecnativa - Pedro M. Baeza # Copyright 2021 Tecnativa - João Marques # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import _, api, exceptions, fields, models class ResPartner(models.Model): _inherit = "res.partner" agent_type = fields.Selection( sel...
36.480769
1,897
292
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import models class CommissionSettlement(models.Model): _inherit = "commission.settlement" def mark_as_invoiced(self): self.write({"state": "invoiced"})
26.545455
292
736
py
PYTHON
15.0
import setuptools with open('VERSION.txt', 'r') as f: version = f.read().strip() setuptools.setup( name="odoo-addons-oca-commission", description="Meta package for oca-commission Odoo addons", version=version, install_requires=[ 'odoo-addon-account_commission>=15.0dev,<15.1dev', 'o...
32
736
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
893
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2014-2022 Tecnativa - Pedro M. Baeza { "name": "Account commissions", "version": "15.0.2.2.0", "author": "Tecnativa, Odoo Community Association (OCA)", "category": "Sales Management", "license": "AGPL-3", "depends":...
31.892857
893
18,163
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2016-2022 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from dateutil.relativedelta import relativedelta from odoo import fields from odoo.exceptions import UserError, ValidationError from o...
43.142518
18,163
326
py
PYTHON
15.0
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class Commission(models.Model): _inherit = "commission" invoice_state = fields.Selection( [("open", "Invoice Based"), ("paid", "Payment Based")], string="Invoice Status", default="open", ...
25.076923
326
9,295
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2014-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from lxml import etree from odoo import _, api, exceptions, fields, models class AccountMove(models.Model): _inherit = "account.move" commission_total...
36.027132
9,295
6,952
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2014-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import UserError from odoo.tests import Form from odoo.tools import groupby...
38.40884
6,952
3,915
py
PYTHON
15.0
# Copyright 2014-2018 Tecnativa - Pedro M. Baeza # Copyright 2020 Tecnativa - Manuel Calero # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from psycopg2.extensions import AsIs from odoo import api, fields, models, tools class InvoiceCommissionAnalysisReport(models.Model): _name = "invoice.comm...
36.933962
3,915
1,543
py
PYTHON
15.0
# Copyright 2014-2022 Tecnativa - Pedro M. Baeza # Copyright 2022 Quartile # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class CommissionMakeSettle(models.TransientModel): _inherit = "commission.make.settle" settlement_type = fields.Selection( sele...
35.068182
1,543
3,259
py
PYTHON
15.0
from odoo import _, exceptions, fields, models class CommissionMakeInvoice(models.TransientModel): _name = "commission.make.invoice" _description = "Wizard for making an invoice from a settlement" def _default_journal_id(self): return self.env["account.journal"].search( [("type", "=",...
37.034091
3,259
773
py
PYTHON
15.0
# Copyright 2016 Nicola Malcontenti - Agile Business Group # Copyright 2016 Davide Corio - Abstract # Copyright 2021 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html { "name": "Commission Formula", "version": "15.0.1.0.0", "category": "Commission", "license": ...
35.136364
773
572
py
PYTHON
15.0
# © 2016 Nicola Malcontenti - Agile Business Group # © 2016 Davide Corio - Abstract # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import fields, models class Commission(models.Model): _inherit = "commission" commission_type = fields.Selection( selection_add=[("formula",...
30
570
1,176
py
PYTHON
15.0
# © 2016 Nicola Malcontenti - Agile Business Group # © 2016 Davide Corio - Abstract # Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import api, models from odoo.tools.safe_eval import safe_eval class CommissionLineMixin(models.AbstractModel): ...
34.529412
1,174
586
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2014-2022 Tecnativa - Pedro M. Baeza { "name": "Sales commissions", "version": "15.0.2.1.0", "author": "Tecnativa, Odoo Community Association (OCA)", "category": "Sales Management", "license": "AGPL-3", "depends": [...
27.904762
586
5,762
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2022 Quartile # Copyright 2016-2022 Tecnativa - Pedro M. Baeza # License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo.tests import Form, tagged from odoo.addons.account_commission.tests.test_account_commission import ( TestAccountCommissi...
40.293706
5,762
3,004
py
PYTHON
15.0
# Copyright 2014-2022 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class SaleOrder(models.Model): _inherit = "sale.order" @api.depends("order_line.agent_ids.amount") def _compute_commission_total(self): for recor...
31.957447
3,004
462
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Sales commissions from salesman", "version": "15.0.1.0.0", "author": "Tecnativa, " "Odoo Community Association (OCA)", "category": "Sales", "website": "https://github.com/OCA/comm...
33
462
3,435
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import exceptions from odoo.tests import Form, TransactionCase class TestSaleCommissionSalesman(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.p...
39.034091
3,435
823
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import models class AccountMoveLine(models.Model): _inherit = "account.move.line" def _compute_agent_ids(self): """Add salesman agent if configured so and no other commission ...
34.291667
823
709
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import models class SaleOrdeLine(models.Model): _inherit = "sale.order.line" def _compute_agent_ids(self): """Add salesman agent if configured so and no other commission alr...
37.315789
709
849
py
PYTHON
15.0
# 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 class ResPartner(models.Model): _inherit = "res.partner" salesman_as_agent = fields.Boolean( string="Convert salesman into agent", ...
36.913043
849
640
py
PYTHON
15.0
# Copyright 2015 Therp BV (<http://therp.nl>). # Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { "name": "Reconcile payment orders", "version": "15.0.1.0.0", "author": "Therp BV, Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-...
40
640
4,171
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # Copyright 2021 Tecnativa - João Marques # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html import odoo.tests from odoo.addons.account_payment_order.tests.test_payment_order_inbound import ( TestPaymentOrderInboundBase, ) @odoo.tests.tagged("post_instal...
40.485437
4,170
2,862
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import api, models class AccountReconciliationWidget(models.AbstractModel): _inherit = "account.reconciliation.widget" @api.model def _get_possible_payment_orders_for_statement_line(sel...
38.16
2,862
1,243
py
PYTHON
15.0
# Copyright 2020 Ozono Multimedia - Iván Antón # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "account_reconciliation_widget", "version": "15.0.1.2.9", "category": "Accounting", "license": "AGPL-3", "summary": "Account reconciliation widget", "author": "Odoo, Ozono Mu...
36.5
1,241
8,171
py
PYTHON
15.0
import logging import time import requests import odoo.tests from odoo.tools.misc import NON_BREAKING_SPACE from odoo.addons.account.tests.common import TestAccountReconciliationCommon _logger = logging.getLogger(__name__) @odoo.tests.tagged("post_install", "-at_install") class TestUi(odoo.tests.HttpCase): de...
33.904564
8,171
5,499
py
PYTHON
15.0
from odoo import _, fields, models from odoo.exceptions import UserError class AccountMoveLine(models.Model): _inherit = "account.move.line" def _create_writeoff(self, writeoff_vals): """Create a writeoff move per journal for the account.move.lines in self. If debit/credit is not specified ...
43.299213
5,499
47,665
py
PYTHON
15.0
import copy import logging from psycopg2 import sql from odoo import _, api, models from odoo.exceptions import UserError from odoo.osv import expression from odoo.tools.misc import format_date, formatLang, parse_date _logger = logging.getLogger(__name__) class AccountReconciliation(models.AbstractModel): _nam...
40.394068
47,665
1,151
py
PYTHON
15.0
from odoo import models class AccountJournal(models.Model): _inherit = "account.journal" def action_open_reconcile(self): # Open reconciliation view for bank statements belonging to this journal bank_stmt = ( self.env["account.bank.statement"] .search([("journal_id", ...
31.108108
1,151
504
py
PYTHON
15.0
from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" account_bank_reconciliation_start = fields.Date( string="Bank Reconciliation Threshold", help="The bank reconciliation widget won't ask to reconcile payments " "older than this date.\n" "T...
36
504
15,603
py
PYTHON
15.0
from odoo import _, fields, models from odoo.exceptions import UserError class AccountBankStatement(models.Model): _inherit = "account.bank.statement" accounting_date = fields.Date( string="Financial Date", help="If set, the accounting entries created during the bank statement " "rec...
44.965418
15,603
376
py
PYTHON
15.0
# Copyright 2022 Akretion France - Alexis de Lattre # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" account_bank_reconciliation_start = fields.Date( related="company_id.a...
31.333333
376
395
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Account Move Reconcile Forbid Cancel", "version": "15.0.1.0.0", "category": "Finance", "website": "https://github.com/OCA/account-reconcile", "author": "Tecnativa, Odoo Community ...
32.916667
395
4,698
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields from odoo.exceptions import ValidationError from odoo.tests.common import Form, TransactionCase class TestAccountMoveReconcileForbidCancel(TransactionCase): @classmethod def se...
37.887097
4,698
1,462
py
PYTHON
15.0
# Copyright 2022 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, models, tools from odoo.exceptions import ValidationError class AccountMove(models.Model): _inherit = "account.move" def _get_receivable_payable_lines(self): return self.l...
40.611111
1,462
479
py
PYTHON
15.0
# Copyright 2017-20 ForgeFlow S.L. (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Partner Reconcile", "version": "15.0.1.0.0", "category": "Accounting", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://...
34.214286
479
1,205
py
PYTHON
15.0
# Copyright 2017-20 ForgeFlow S.L. (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase class TestAccountPartnerReconcile(TransactionCase): """Tests for Account Partner Reconcile.""" def setUp(self): super(Test...
36.515152
1,205
894
py
PYTHON
15.0
# Copyright 2017-20 ForgeFlow S.L. (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models class ResPartner(models.Model): _inherit = "res.partner" def action_open_reconcile(self): # Open reconciliation view for customers and suppliers...
33.111111
894
793
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. # @author Jordi Ballester <jordi.ballester@forgeflow.com.com> # Copyright 2022 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Bank Statement Reopen ...
39.65
793
3,245
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. # @author Jordi Ballester <jordi.ballester@forgeflow.com.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields from odoo.tests import tagged from odoo.addons.account.tests.test_account_bank_statement import ( TestAccountBankStatementCommo...
39.096386
3,245
436
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. # @author Jordi Ballester <jordi.ballester@forgeflow.com.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models class AccountMove(models.Model): _inherit = "account.move" def button_draft(self): moves_to_draft = self.filtere...
33.538462
436
451
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. # @author Jordi Ballester <jordi.ballester@forgeflow.com.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models class AccountMoveLine(models.Model): _inherit = "account.move.line" def remove_move_reconcile(self): if self._co...
32.214286
451
699
py
PYTHON
15.0
# Copyright 2022 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # Copyright 2022 ForgeFlow S.L. # @author Jordi Ballester <jordi.ballester@forgeflow.com.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models class AccountBankS...
34.95
699
542
py
PYTHON
15.0
# Copyright 2022 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # Copyright 2022 ForgeFlow S.L. # @author Jordi Ballester <jordi.ballester@forgeflow.com.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models class AccountBankSt...
36.133333
542
100
py
PYTHON
15.0
import setuptools setuptools.setup( setup_requires=['setuptools-odoo'], odoo_addon=True, )
16.666667
100
928
py
PYTHON
15.0
import setuptools with open('VERSION.txt', 'r') as f: version = f.read().strip() setuptools.setup( name="odoo-addons-oca-account-reconcile", description="Meta package for oca-account-reconcile Odoo addons", version=version, install_requires=[ 'odoo-addon-account_bank_statement_reopen_skip_...
38.666667
928
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
629
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # Copyright 2010 Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Account Mass Reconcile", "version": "15.0.1.0.0", "depends": ["account"], "author": "Akretion,Camptocamp,Odoo Community Association (OCA)", "website": "http...
31.4
628
2,560
py
PYTHON
15.0
# © 2014-2016 Camptocamp SA (Damien Crier) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import odoo.tests from odoo import exceptions, fields from odoo.addons.account.tests.common import TestAccountReconciliationCommon @odoo.tests.tagged("post_install", "-at_install") class TestReconcile(TestAcco...
39.369231
2,559
1,236
py
PYTHON
15.0
# © 2014-2016 Camptocamp SA (Damien Crier) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import common class TestOnChange(common.TransactionCase): @classmethod def setUpClass(cls): super(TestOnChange, cls).setUpClass() acc_setting = cls.env["res.config.settin...
36.323529
1,235
9,380
py
PYTHON
15.0
# © 2014-2016 Camptocamp SA (Damien Crier) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from datetime import timedelta import odoo.tests from odoo import fields from odoo.addons.account.tests.common import TestAccountReconciliationCommon @odoo.tests.tagged("post_install", "-at_install") class Te...
38.281633
9,379
12,680
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # Copyright 2010 Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging from itertools import product from odoo import api, models, registry from odoo.tools.translate import _ _logger = logging.getLogger(__name__) class MassReconcileAdvance...
40.507987
12,679
7,766
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # Copyright 2010 Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models class MassReconcileAdvancedRef(models.TransientModel): _name = "mass.reconcile.advanced.ref" _inherit = "mass.reconcile.advanced" _description = "Mas...
36.116279
7,765
2,524
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models class MassReconcileHistory(models.Model): """Store an history of the runs per profile Each history stores the list of reconciliations done """ _name = "mass.re...
33.210526
2,524
3,816
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # Copyright 2010 Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging from odoo import models _logger = logging.getLogger(__name__) class MassReconcileSimple(models.AbstractModel): _name = "mass.reconcile.simple" _inherit = "mass....
35.654206
3,815
11,044
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # Copyright 2010 Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging from datetime import datetime import psycopg2 from psycopg2.extensions import AsIs from odoo import _, api, exceptions, fields, models, sql_db from odoo.exceptions import...
36.687708
11,043
8,039
py
PYTHON
15.0
# Copyright 2012-2016 Camptocamp SA # Copyright 2010 Sébastien Beau # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from operator import itemgetter from odoo import _, fields, models from odoo.tools.safe_eval import safe_eval class MassReconcileBase(models.AbstractModel): """Abstract Model for r...
35.883929
8,038
778
py
PYTHON
15.0
# Copyright 2014-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class AccountConfigSettings(models.TransientModel): _inherit = "res.config.settings" reconciliation_commit_every = fields.Integer( related="company_id.reconciliation_co...
32.416667
778
725
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Account Reconciliation Widget Due Date", "version": "15.0.1.0.0", "website": "https://github.com/OCA/account-reconcile", "author": "Tecnativa, Odoo Community Association (OCA)", "...
34.428571
723
6,381
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from datetime import date from odoo.tests.common import Form, TransactionCase class TestAccountReconciliationWidgetDueDate(TransactionCase): def setUp(self): super().setUp() self.company...
42.245033
6,379
1,185
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # Copyright 2021 Tecnativa - Alexandre D. Díaz # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, models from odoo.tools.misc import format_date, parse_date class AccountReconciliation(models.AbstractModel): _inherit = "account...
42.214286
1,182