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
479
py
PYTHON
15.0
# Copyright 2016 Acsone SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Account Invoice Blocking", "summary": "Set a blocking (No Follow-up) flag on invoices", "version": "15.0.1.0.1", "license": "AGPL-3", "category": "Accounting", "author": "Acsone SA/NV,Odoo ...
34.214286
479
1,906
py
PYTHON
15.0
# Copyright 2016 Acsone SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo.tests import tagged from odoo.addons.account.tests.common import AccountTestInvoicingCommon @tagged("post_install", "-at_install") class TestAccountMoveBlocking(AccountTestInvoicingCommon): @classmethod ...
40.553191
1,906
2,037
py
PYTHON
15.0
# Copyright 2016 Acsone SA/NV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class AccountMove(models.Model): _inherit = "account.move" blocked = fields.Boolean( "No Follow-up", states={"draft": [("readonly", True)]}, compute="_c...
35.12069
2,037
667
py
PYTHON
15.0
# Copyright 2017 Creu Blanca # Copyright 2022 Moduon # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). { "name": "Purchase Self Invoice", "version": "15.0.1.3.0", "author": "CreuBlanca, Moduon, Odoo Community Association (OCA)", "category": "Accounting & Finance", "website": "htt...
31.761905
667
925
py
PYTHON
15.0
# Copyright 2022 Creu Blanca # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). from openupgradelib import openupgrade @openupgrade.migrate() def migrate(env, version): companies = env["res.company"].search([]).ids main_company = env.ref("base.main_company", False) or companies[0] openu...
33.035714
925
5,378
py
PYTHON
15.0
# © 2017 Creu Blanca # Copyright 2022 - Moduon # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). from odoo.tests import Form, common class TestSelfInvoice(common.TransactionCase): def setUp(self): res = super(TestSelfInvoice, self).setUp() self.user = self.env.ref("base.user_ad...
39.82963
5,377
3,294
py
PYTHON
15.0
# © 2017 Creu Blanca # Copyright 2022 - Moduon # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). from odoo import api, fields, models class AccountMove(models.Model): _inherit = "account.move" self_invoice_number = fields.Char( string="Self-Bill Invoice Number", readonly=T...
37.420455
3,293
259
py
PYTHON
15.0
from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" self_invoice_prefix = fields.Char( string="Default Self Billing prefix", help="Self Billing prefix for Bills generated by this company", )
25.9
259
285
py
PYTHON
15.0
from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" self_invoice_prefix = fields.Char( string="Default Self Billing prefix", related="company_id.self_invoice_prefix", readonly=False, )
25.909091
285
4,446
py
PYTHON
15.0
# © 2017 Creu Blanca # Copyright 2022 - Moduon # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). from odoo import _, api, exceptions, fields, models class ResPartner(models.Model): _inherit = "res.partner" self_invoice = fields.Boolean( string="Approves Self Billing", defa...
36.138211
4,445
501
py
PYTHON
15.0
# Copyright 2020 Camptocamp # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Acccount Invoice Section Sale Order", "version": "15.0.1.0.2", "summary": "For invoices targetting multiple sale order add" "sections with sale order name.", "author": "Camptocamp, Odoo Community A...
38.538462
501
3,981
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo.tests.common import TransactionCase class TestInvoiceGroupBySaleOrder(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.partner_1 = cls.env.ref("base.res_par...
36.522936
3,981
2,288
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import models class SaleOrder(models.Model): _inherit = "sale.order" def _create_invoices(self, grouped=False, final=False, date=None): """Add sections by sale order in the invoice line. ...
38.133333
2,288
702
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). { "name": "Account Move Post Block", "author": "ForgeFlow, Odoo Community Association (OCA)", "version": "15.0.1.0.1", "category": "Accounting & Finance", "website": "https://...
35.1
702
3,259
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo.tests.common import TransactionCase class TestAccountMovePostBlock(TransactionCase): def setUp(self): super(TestAccountMovePostBlock, self).setUp() self.users_obj ...
37.034091
3,259
1,954
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from .test_account_move_post_block import TestAccountMovePostBlock class TestAmPostBlockReason(TestAccountMovePostBlock): def test_am_post_block_manual_release(self): """Confirming ...
38.313725
1,954
471
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo import models class AccountExceptionConfirm(models.TransientModel): _inherit = "account.exception.confirm" def action_confirm(self): self.ensure_one() if self...
33.642857
471
1,581
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo import _, api, fields, models class AccountMove(models.Model): _inherit = "account.move" post_block_id = fields.Many2one( comodel_name="account.post.block.reason", ...
31.62
1,581
403
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo import fields, models class AccountPostBlockReason(models.Model): _name = "account.post.block.reason" _description = "Account Post Block Reason" name = fields.Char(requir...
31
403
585
py
PYTHON
15.0
# Copyright 2017 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) { "name": "Account Fixed Discount", "summary": "Allows to apply fixed amount discounts in invoices.", "version": "15.0.1.0.0", "category": "Accounting & Finance", "website": "https://github.com/OCA/accou...
36.5625
585
4,179
py
PYTHON
15.0
# Copyright 2017 Tecnativa - David Vidal # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo.exceptions import ValidationError from odoo.tests import TransactionCase class TestInvoiceFixedDiscount(TransactionCase): @classmethod def setUpClass(cls): super(TestInvoiceFixedDiscount...
39.056075
4,179
4,017
py
PYTHON
15.0
# Copyright 2017 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo import _, api, fields, models from odoo.exceptions import ValidationError class AccountMove(models.Model): _inherit = "account.move" def _recompute_tax_lines( self, recompute_tax_base_amount=Fal...
32.395161
4,017
771
py
PYTHON
15.0
# Copyright 2013-2017 Agile Business Group sagl # (<http://www.agilebg.com>) # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Product Customer code for account invoice", "summary": "Based on product_customer_code, th...
42.833333
771
3,022
py
PYTHON
15.0
# Copyright 2021 ForgeFlow # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase class TestProductSupplierinfoForCustomerInvoice(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.move_model = cls.env["acc...
37.775
3,022
1,125
py
PYTHON
15.0
# Copyright 2013-2017 Agile Business Group sagl # (<http://www.agilebg.com>) # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class AccountInvoiceLine(models.Model): _inherit = "account.move.l...
36.290323
1,125
545
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). { "name": "Account Invoice Tree Currency", "author": "ForgeFlow, Odoo Community Association (OCA)", "summary": "Show currencies in the invoice tree view", "version": "15.0.1.0.0",...
36.333333
545
804
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Stock Picking Invoicing", "version": "15.0.1.0.0", "category": "Warehouse Management", "author": "Agile Business Group,Odoo Community Association (OCA)", "webs...
38.285714
804
41,115
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import exceptions from odoo.tests import Form, TransactionCase class TestPickingInvoicing(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass(...
43.188025
41,115
1,945
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class StockInvoiceStateMixin(models.AbstractModel): """ Abstract model used to define invoice state with selection choices """ _name = "st...
32.966102
1,945
1,576
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models class AccountInvoice(models.Model): _inherit = "account.move" def button_cancel(self): """ Inherit to update related picking as '2binvoice...
35.818182
1,576
1,232
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association # @ 2019-Today: Akretion - www.akretion.com.br - # Magno Costa <magno.costa@akretion.com.br> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class PickingType(models.Model): _inherit = "stock.picking.typ...
35.2
1,232
2,780
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class StockMove(models.Model): _name = "stock.move" _inherit = [ _name, "stock.invoice.state.mixin", ] def _get_taxes...
36.103896
2,780
1,388
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models class StockPicking(models.Model): _name = "stock.picking" _inherit = [ _name, "stock.invoice.state.mixin", ] def set_to_be_invoice...
29.531915
1,388
772
py
PYTHON
15.0
# @ 2021-Today: Akretion - www.akretion.com - # Magno Costa <magno.costa@akretion.com.br> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class StockReturnPicking(models.TransientModel): _inherit = "stock.return.picking" invoice_state = fields.Selection...
33.565217
772
19,677
py
PYTHON
15.0
# Copyright (C) 2019-Today: Odoo Community Association (OCA) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import _, api, fields, models from odoo.exceptions import UserError JOURNAL_TYPE_MAP = { ("outgoing", "customer"): ["sale"], ("outgoing", "supplier"): ["purchase"], (...
37.337761
19,677
1,181
py
PYTHON
15.0
# Copyright 2021 ForgeFlow S.L. # (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import logging from odoo.tools.sql import column_exists logger = logging.getLogger(__name__) def pre_init_hook(cr): """ The objective of this hook is to speed up the installa...
31.078947
1,181
736
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Move Exception", "summary": "Custom exceptions on account move", "version": "15.0.1.0.0", "category": "Generic Modules/Account", "author": "ForgeFlow, Odoo ...
35.047619
736
4,415
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase class TestAccountException(TransactionCase): def setUp(self): super(TestAccountException, self).setUp() # Useful models ...
36.791667
4,415
724
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class AccountExceptionConfirm(models.TransientModel): _name = "account.exception.confirm" _description = "Account exception wizard" _inherit = ["exce...
32.909091
724
1,727
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, models class AccountMove(models.Model): _inherit = ["account.move", "base.exception"] _name = "account.move" _order = "main_exception_id asc, date desc, name d...
31.4
1,727
709
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class AccountMoveLine(models.Model): _inherit = ["account.move.line", "base.exception.method"] _name = "account.move.line" ignore_exception = f...
29.541667
709
622
py
PYTHON
15.0
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class ExceptionRule(models.Model): _inherit = "exception.rule" account_move_ids = fields.Many2many( comodel_name="account.move", string="Journal...
28.272727
622
590
py
PYTHON
15.0
# Copyright 2016 Acsone # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Unique Supplier Invoice Number in Invoice", "version": "15.0.1.0.0", "summary": "Checks that supplier invoices are not entered twice", "author": "Savoir-faire Linux, Acsone SA/NV, Odoo Community Associati...
36.875
590
3,593
py
PYTHON
15.0
# Copyright 2016 Acsone # Copyright 2020 Onestein (<https://www.onestein.eu>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields from odoo.exceptions import ValidationError from odoo.tests import tagged from odoo.addons.account.tests.common import AccountTestInvoicingCommon @tag...
35.574257
3,593
3,018
py
PYTHON
15.0
# Copyright 2016 Acsone # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class AccountMove(models.Model): _inherit = "account.move" supplier_invoice_number = fields.Char( string="Vendor invoice number"...
38.202532
3,018
563
py
PYTHON
15.0
# © 2017 Therp BV <http://therp.nl> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Account Invoice Pricelist - Sale", "summary": "Module to fill pricelist from sales order in invoice.", "author": "Therp BV,GRAP,Odoo Community Association (OCA)", "license": "AGPL-3", ...
37.466667
562
1,641
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). from odoo.tests.common import TransactionCase class TestModule(TransactionCase): def setUp(self): super(TestModule, s...
36.466667
1,641
464
py
PYTHON
15.0
# © 2017 Therp BV <http://therp.nl> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models class SaleOrder(models.Model): _inherit = "sale.order" def _prepare_invoice(self): """Pricelist_id is set on invoice.""" self.ensure_one() val = super(SaleO...
30.866667
463
704
py
PYTHON
15.0
# Copyright 2023 Moduon Team S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) { "name": "Account Invoice Clearing", "summary": "Account invoice clearing wizard", "version": "15.0.0.1.3", "development_status": "Alpha", "category": "Accounting/Accounting", "website": "http...
30.608696
704
5,647
py
PYTHON
15.0
# Copyright 2023 Moduon Team S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) from datetime import timedelta from odoo import fields from odoo.tests.common import tagged from odoo.tools import float_is_zero from odoo.addons.account.tests.common import AccountTestInvoicingCommon @tagged("pos...
41.218978
5,647
758
py
PYTHON
15.0
# Copyright 2023 Moduon Team S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) from odoo import models class AccountMove(models.Model): _inherit = "account.move" def action_open_invoice_clearing_wizard(self): wizard = ( self.env["account.invoice.clearing.wizard"] ...
30.32
758
24,650
py
PYTHON
15.0
# Copyright 2023 Moduon Team S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) import json from collections import OrderedDict from itertools import groupby from odoo import _, api, exceptions, fields, models from odoo.tools import float_is_zero class AccountInvoiceClearingWizard(models.Trans...
37.57622
24,650
492
py
PYTHON
15.0
# Copyright 2014-2020 Agile Business Group sagl # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { "name": "Stock Picking Invoicing Incoterm", "version": "15.0.1.0.0", "category": "Inventory/Inventory", "author": "Agile Business Group, Odoo Community Association (OCA)", "website": "h...
37.846154
492
334
py
PYTHON
15.0
# Copyright 2014-2020 Agile Business Group sagl # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields, models class StockPicking(models.Model): _inherit = "stock.picking" incoterm = fields.Many2one( related="sale_id.incoterm", string="Incoterm", store=True, readonl...
27.833333
334
605
py
PYTHON
15.0
# Copyright <2020> PESOL <info@pesol.es> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) { "name": "Account Move Tier Validation", "summary": "Extends the functionality of Account Moves to " "support a tier validation process.", "version": "15.0.1.1.1", "category": "Accounts", "w...
37.8125
605
674
py
PYTHON
15.0
# Copyright 2018 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class TierValidationTester(models.Model): _name = "tier.validation.tester" _description = "Tier Validation Tester" _inherit = ["tier.validation"] state = fields.Selection(...
28.083333
674
2,212
py
PYTHON
15.0
# Copyright 2018 ForgeFlow S.L. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from odoo.tests import common from odoo.tests.common import tagged from .common import setup_test_model, teardown_test_model from .tier_validation_tester import TierValidationTester @tagged("post_install", "-at_inst...
34.030769
2,212
598
py
PYTHON
15.0
# Copyright 2018 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). def setup_test_model(env, model_clses): for model_cls in model_clses: model_cls._build_model(env.registry, env.cr) env.registry.setup_models(env.cr) env.registry.init_models( env.cr, ...
29.9
598
745
py
PYTHON
15.0
# Copyright <2020> PESOL <info@pesol.es> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo import _, models class AccountMove(models.Model): _name = "account.move" _inherit = ["account.move", "tier.validation"] _state_from = ["draft"] _state_to = ["posted"] def _get_to_va...
32.391304
745
401
py
PYTHON
15.0
# Copyright <2020> PESOL <info@pesol.es> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo import api, models class TierDefinition(models.Model): _inherit = "tier.definition" @api.model def _get_tier_validation_model_names(self): res = super(TierDefinition, self)._get_tie...
28.642857
401
565
py
PYTHON
15.0
# Copyright 2020 Camptocamp # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Partner Invoicing Mode At Shipping", "version": "15.0.1.0.0", "summary": "Create invoices automatically when goods are shipped.", "author": "Camptocamp, Odoo Community Association (OCA)", "website"...
37.666667
565
2,330
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo.tests.common import TransactionCase class TestInvoiceModeAtShipping(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.env = cls.env(context=dict(cls.env.cont...
40.877193
2,330
588
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import models class StockMove(models.Model): _inherit = "stock.move" def _get_related_invoices(self): """Overridden from stock_account to return the customer invoices related to this ...
30.947368
588
1,879
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import _, models class StockPicking(models.Model): _inherit = "stock.picking" def _action_done(self): res = super()._action_done() for picking in self: if picking._invoice...
38.346939
1,879
346
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import fields, models class ResPartner(models.Model): _inherit = "res.partner" invoicing_mode = fields.Selection( selection_add=[("at_shipping", "At Shipping")], ondelete={"at_shippin...
26.615385
346
565
py
PYTHON
15.0
# Copyright 2023 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Invoice Analytic Search", "summary": "Search invoices by analytic account or by project manager", "version": "15.0.1.0.0", "author": "Project Expert Team, ForgeFlow, Odoo Community Associati...
37.666667
565
2,442
py
PYTHON
15.0
# Copyright 2023 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase class TestAccountMove(TransactionCase): def setUp(self): super(TestAccountMove, self).setUp() self.account_invoice = self.env["account.move"] ...
40.7
2,442
848
py
PYTHON
15.0
# Copyright 2023 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class AccountMove(models.Model): _inherit = "account.move" @api.depends("invoice_line_ids.analytic_account_id") def _compute_analytic_accounts(self): for inv...
32.615385
848
587
py
PYTHON
15.0
# Copyright 2016 Acsone SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Account Invoice Check Total", "summary": """ Check if the verification total is equal to the bill's total""", "version": "15.0.1.0.0", "website": "https://github.com/OCA/account-invoicing", ...
32.611111
587
1,365
py
PYTHON
15.0
# Copyright 2016 Acsone SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.exceptions import ValidationError from odoo.tests import Form, TransactionCase from ..models.account_move import GROUP_AICT class TestAccountInvoice(TransactionCase): @classmethod def setUpClass(cls): ...
37.916667
1,365
2,363
py
PYTHON
15.0
# Copyright 2016 Acsone SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError from odoo.tools.float_utils import float_compare, float_round GROUP_AICT = "account_invoice_check_total.group_supplier_inv_check_total" cl...
36.921875
2,363
396
py
PYTHON
15.0
# Copyright 2016 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models from ..models.account_move import GROUP_AICT class AccountConfigSettings(models.TransientModel): _inherit = "res.config.settings" group_supplier_inv_check_total = fields.Boolean( ...
26.4
396
879
py
PYTHON
15.0
# Copyright (C) 2019 Open Source Integrators # Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Account Invoice Refund Reason", "version": "15.0.1.0.3", "summary": "Account Invoice Refund Reason.", "category": "Accountin...
33.807692
879
3,351
py
PYTHON
15.0
# Copyright (C) 2019 Open Source Integrators # Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import datetime from odoo.tests.common import TransactionCase class TestAccountInvoiceRefundReason(TransactionCase): @classmethod def setUpCl...
38.079545
3,351
696
py
PYTHON
15.0
# Copyright (C) 2019 Open Source Integrators # Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class AccountMoveReversal(models.TransientModel): _inherit = "account.move.reversal" reason_id = fields....
34.8
696
381
py
PYTHON
15.0
# Copyright (C) 2019 Open Source Integrators # Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class AccountMove(models.Model): _inherit = "account.move" reason_id = fields.Many2one( "account.move...
31.75
381
465
py
PYTHON
15.0
# Copyright (C) 2019 Open Source Integrators # Copyright (C) 2019 Serpent Consulting Services Pvt. Ltd. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class AccountMoveRefundReason(models.Model): _name = "account.move.refund.reason" _description = "Account Move...
35.769231
465
731
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Sales order invoicing grouping criteria", "version": "15.0.1.0.2", "category": "Sales Management", "license": "AGPL-3", "author": "Tecnativa, " "Odoo Community Association (OCA)", ...
34.809524
731
4,697
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import TransactionCase class TestSaleOrderInvoicingGroupingCriteria(TransactionCase): def setUp(self): super().setUp() self.env = self.env(context=dict(self.env.context, tra...
45.163462
4,697
630
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class SaleInvoicingGroupingCriteria(models.Model): _name = "sale.invoicing.grouping.criteria" _description = "Sales Invoicing Grouping Criteria" name = fields.Char(...
35
630
1,808
py
PYTHON
15.0
# Copyright 2019-2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models class SaleOrder(models.Model): _inherit = "sale.order" def _get_grouping_partner(self): """ Get the partner who contains the grouping criteria. On ...
35.45098
1,808
395
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" default_sale_invoicing_grouping_criteria_id = fields.Many2one( string="Default Sales Invoicing Grouping...
30.384615
395
395
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" res_default_sale_invoicing_grouping_criteria_id = fields.Many2one( related="com...
32.916667
395
707
py
PYTHON
15.0
# Copyright 2019 Tecnativa - Pedro M. Baeza # 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" sale_invoicing_grouping_criteria_id = fields.Many2one( string="Sales Invoicing Grouping Criteria",...
33.666667
707
562
py
PYTHON
15.0
# Copyright 2020 Camptocamp # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Partner Invoicing Mode", "version": "15.0.1.0.0", "summary": "Base module for handling multiple partner invoicing mode", "author": "Camptocamp, Odoo Community Association (OCA)", "website": "https:...
35.125
562
277
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import fields, models class SaleOrder(models.Model): _inherit = "sale.order" invoicing_mode = fields.Selection(related="partner_invoice_id.invoicing_mode")
27.7
277
1,102
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) from odoo import _, models class QueueJob(models.Model): _inherit = "queue.job" def related_action_open_invoice(self): """Open a form view with the invoice related to the job.""" self.ensure_on...
31.485714
1,102