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 |
|---|---|---|---|---|---|---|
4,937 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Vicent Cubells
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo.tests.common import TransactionCase
class TestDeliveryFreeFeeRemoval(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpCla... | 37.386364 | 4,935 |
644 | py | PYTHON | 15.0 | # Copyright 2020 Camptocamp
# 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 action_confirm(self):
res = super().action_confirm()
# Invoice all the free delivery line on order confirmation
... | 33.894737 | 644 |
553 | py | PYTHON | 15.0 | # Copyright 2020 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
is_free_delivery = fields.Boolean(compute="_compute_is_free_delivery", store=True)
@api.depends("is_deliv... | 32.529412 | 553 |
607 | py | PYTHON | 15.0 | # Copyright 2020 Akretion (https://www.akretion.com).
# @author Sébastien BEAU <sebastien.beau@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery Carrier Info",
"summary": "Add code and description on carrier",
"version": "15.0.1.0.1",
"category": "Deliv... | 30.3 | 606 |
379 | py | PYTHON | 15.0 | # Copyright 2020 Akretion (https://www.akretion.com).
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
code = fields.Char(
help="Delivery Method Code (acc... | 27.071429 | 379 |
500 | py | PYTHON | 15.0 | # © 2020 Thomas Rehn (initOS GmbH)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Make Delivery Text Properties Translatable",
"category": "Hidden",
"summary": """name and website_description field of delivery carrier setup translatable.""",
"version": "15.0.1.0.0",
"dep... | 33.266667 | 499 |
261 | py | PYTHON | 15.0 | # © 2022 Thomas Rehn (initOS GmbH)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class DeliveryCarrier(models.Model):
_inherit = "delivery.carrier"
name = fields.Char(required=True, translate=True)
| 26 | 260 |
646 | py | PYTHON | 15.0 | # Copyright 2016-2019 Tecnativa - Pedro M. Baeza
# Copyright 2017 Tecnativa - Luis M. Ontalba
# Copyright 2021 Gianmarco Conte <gconte@dinamicheaziendali.it>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Multiple destinations for the same delivery method",
"version": "15.0.1.0.2",... | 38 | 646 |
7,294 | py | PYTHON | 15.0 | # Copyright 2017 Tecnativa - Luis M. Ontalba
# Copyright 2019-2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import Form, common
class TestDeliveryMultiDestination(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setU... | 40.977528 | 7,294 |
5,097 | py | PYTHON | 15.0 | # Copyright 2016-2020 Tecnativa - Pedro M. Baeza
# Copyright 2017 Tecnativa - Luis M. Ontalba
# Copyright 2021 Gianmarco Conte <gconte@dinamicheaziendali.it>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class Deli... | 41.104839 | 5,097 |
602 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
import logging
_logger = logging.getLogger(__name__)
try:
from odoo.addons.base_multi_company import hooks
except ImportError:
_logger.info("Cannot find `base_multi_company` modul... | 23.153846 | 602 |
659 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Product multi-company",
"summary": "Select individually the product template visibility on each " "company",
"author": "Tecnativa," "Odoo Community Association (OCA)"... | 41.1875 | 659 |
2,592 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2021 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo.exceptions import AccessError
from odoo.tests import common
from .common import ProductMultiCompanyCommon
class TestProductMu... | 36 | 2,592 |
2,446 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2021 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
class ProductMultiCompanyCommon(object):
@classmethod
def _create_products(cls):
cls.product_obj = cls.env["product.produ... | 37.060606 | 2,446 |
763 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import fields, models
class ProductCategory(models.Model):
_inherit = "product.category"
total_route_ids = fields.Many2many(
domain=lambda self: [
"... | 26.310345 | 763 |
341 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import models
class ProductTemplate(models.Model):
_inherit = ["multi.company.abstract", "product.template"]
_name = "product.template"
_description = "Product Templ... | 34.1 | 341 |
2,483 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2017 LasLabs Inc.
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
from odoo import SUPERUSER_ID, api
__all__ = [
"post_init_hook",
"uninstall_hook",
]
def set_security_rule(env, rule_ref):
"""Set the condition f... | 29.915663 | 2,483 |
566 | py | PYTHON | 15.0 | # Copyright 2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Multi Company Base",
"summary": "Provides a base for adding multi-company support to models.",
"version": "15.0.1.0.1",
"author": "ACSONE SA/NV, LasLabs, Tecnativa, Odoo Community Association (... | 35.375 | 566 |
372 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MultiCompanyAbstractTester(models.Model):
_name = "multi.company.abstract.tester"
_inherit = "multi.company.abstract"
_description = "Multi... | 31 | 372 |
8,667 | py | PYTHON | 15.0 | # Copyright 2017 LasLabs Inc.
# Copyright 2021 ACSONE SA/NV
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
from odoo_test_helper import FakeModelLoader
from odoo.tests import common
class TestMultiCompanyAbstract(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().se... | 37.197425 | 8,667 |
4,343 | py | PYTHON | 15.0 | # Copyright 2017 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class MultiCompanyAbstract(models.AbstractModel):
_name = "multi.company.abstract"
_description = "Multi-Company Abstract"
company_id = fields.Many2one(
string... | 36.495798 | 4,343 |
1,064 | py | PYTHON | 15.0 | import logging
from odoo import SUPERUSER_ID, api
_logger = logging.getLogger(__name__)
try:
from odoo.addons.base_multi_company import hooks
except ImportError:
_logger.info("Cannot find `base_multi_company` module in addons path.")
def post_init_hook(cr, registry):
hooks.post_init_hook(
cr,
... | 25.95122 | 1,064 |
684 | py | PYTHON | 15.0 | # Copyright 2015 Oihane Crucelaegui
# Copyright 2015-2019 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Partner multi-company",
"summary": "Select individually the partner visibility on each company",
"version": "15.0.1.0.0",
"lic... | 38 | 684 |
7,170 | py | PYTHON | 15.0 | # Copyright 2015 Oihane Crucelaegui
# Copyright 2015-2019 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo.exceptions import AccessError
from odoo.tests import common, tagged
@tagged("post_install", "-at_install")
class TestPartnerMultiCompany(comm... | 40.971429 | 7,170 |
1,032 | py | PYTHON | 15.0 | # Copyright 2015-2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html.html
from odoo import api, models
class ResUsers(models.Model):
_inherit = "res.users"
@api.model
def create(self, vals):
res = super(ResUsers, self).create(vals)
... | 35.586207 | 1,032 |
2,260 | py | PYTHON | 15.0 | # Copyright 2015 Oihane Crucelaegui
# Copyright 2015-2019 Pedro M. Baeza <pedro.baeza@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html.html
from odoo import api, fields, models
class ResPartner(models.Model):
_inherit = ["multi.company.abstract", "res.partner"]
_name = "res.par... | 37.666667 | 2,260 |
735 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Inter Company Module for Purchase to Sale Order with warehouse",
"summary": "Intercompany PO/SO rules with w... | 40.833333 | 735 |
2,618 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2019-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.addons.purchase_sale_inter_company.tests.test_inter_comp... | 38.5 | 2,618 |
1,052 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
def _prepare_sale_order_data(... | 32.875 | 1,052 |
533 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
warehouse_id = fields.Many... | 29.611111 | 533 |
2,406 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2018 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
from odoo.exceptions import UserError
class StockPicking(models.Model):
_inherit = "stock.picking"
intercompany_picking_i... | 42.210526 | 2,406 |
644 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class InterCompanyRulesConfig(models.TransientModel):
_inherit = "res.config.settings"
... | 32.2 | 644 |
1,068 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-multi-company",
description="Meta package for oca-multi-company Odoo addons",
version=version,
install_requires=[
'odoo-addon-account_invoice_inter_company>=15.0dev,<15.... | 39.555556 | 1,068 |
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 |
704 | py | PYTHON | 15.0 | # Copyright 2013-2014 Odoo SA
# Copyright 2015-2017 Chafique Delli <chafique.delli@akretion.com>
# Copyright 2020 Tecnativa - David Vidal
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Inter Company Invoices",
"summary": "Intercompany inv... | 39.111111 | 704 |
23,874 | py | PYTHON | 15.0 | # Copyright 2015-2017 Chafique Delli <chafique.delli@akretion.com>
# Copyright 2020 Tecnativa - David Vidal
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common impor... | 41.884211 | 23,874 |
14,857 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import _, api, fields, models
from odoo.exceptions import AccessError, UserError
from odoo.tests.common import Form
from odoo.tools import float_compare
from odoo.tools.misc import clean_context
_logger = logging.getLogger(__na... | 41.850704 | 14,857 |
1,288 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
company_share_product = fields.Boolean(
"Share product to all companies",
compute="_compute_share_product",
compute_sudo=True,
... | 33.025641 | 1,288 |
1,765 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
invoice_auto_validation = fields.Boolean(
related="company_id.invoice_auto_validation",
string="Invoices Aut... | 37.553191 | 1,765 |
562 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Intercompany Delivery-Reception",
"Summary": "Module that adds possibility for intercompany Delivery-Reception",
"version": "15.0.1.1.1",
"author": "Camptocamp, Odoo Community Association (... | 33.058824 | 562 |
4,496 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import RecordCapturer, TransactionCase
class TestIntercompanyDelivery(TransactionCase):
def setUp(self):
super().setUp()
self.user_demo = self.env["res.users"].create(
... | 38.758621 | 4,496 |
188 | py | PYTHON | 15.0 | from odoo import fields, models
class StockMoveLine(models.Model):
_inherit = "stock.move.line"
counterpart_of_line_id = fields.Many2one("stock.move.line", check_company=False)
| 26.857143 | 188 |
174 | py | PYTHON | 15.0 | from odoo import fields, models
class StockMove(models.Model):
_inherit = "stock.move"
counterpart_of_move_id = fields.Many2one("stock.move", check_company=False)
| 24.857143 | 174 |
216 | py | PYTHON | 15.0 | from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
intercompany_in_type_id = fields.Many2one(
"stock.picking.type", string="Intercompany operation type"
)
| 24 | 216 |
3,478 | py | PYTHON | 15.0 | from odoo import fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
counterpart_of_picking_id = fields.Many2one("stock.picking", check_company=False)
def _create_counterpart_picking(self):
companies = self.env["res.company"].sudo().search([])
partners = {cp.partn... | 37.804348 | 3,478 |
343 | py | PYTHON | 15.0 | # Copyright 2021 Camptocamp SA
# 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"
intercompany_in_type_id = fields.Many2one(
related="company_id.intercompany_in_type_id"... | 28.583333 | 343 |
642 | py | PYTHON | 15.0 | # Copyright 2018 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Quick Company Creation Wizard",
"summary": "This module adds a wizard to create companies easily",
"version": "15.0.1.0.0",
"category": "Multicompany",
... | 42.8 | 642 |
2,580 | py | PYTHON | 15.0 | # Copyright 2021-2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo.tests import Form, common, new_test_user
from odoo.tests.common import users
class TestEasyCreation(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass... | 40.28125 | 2,578 |
15,355 | py | PYTHON | 15.0 | # Copyright 2018 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
from odoo.exceptions import ValidationError
from odoo.tools import ormcache
from odoo.tools.safe_eval import safe_eval
class AccountMulticompanyEasyCreationWiz(models.Transie... | 37 | 15,355 |
669 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Inter Company Module for Purchase to Sale Order",
"summary": "Intercompany PO/SO rules",
"version": "15.... | 39.352941 | 669 |
6,696 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2019-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError
from odoo.tests.common import... | 39.621302 | 6,696 |
1,232 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, models
class AccountMove(models.Model):
_inherit = "account.move"
def _inter_company_create_invo... | 39.741935 | 1,232 |
1,020 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class SaleOrder(models.Model):
_inherit = "sale.order"
auto_purchase_order_id = fiel... | 29.142857 | 1,020 |
7,504 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import _, models
from odoo.exceptions import UserError
class PurchaseOrder(models.Model):
_inherit = "purchase.... | 42.157303 | 7,504 |
950 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
so_from_po = fields.Boolea... | 33.928571 | 950 |
1,291 | py | PYTHON | 15.0 | # Copyright 2013-Today Odoo SA
# Copyright 2016-2019 Chafique DELLI @ Akretion
# Copyright 2018-2019 Tecnativa - Carlos Dauden
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class InterCompanyRulesConfig(models.TransientModel):
_inherit = "res.config.settings"
... | 36.885714 | 1,291 |
527 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Mail Template Multi Company",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/multi-company",
"... | 35.133333 | 527 |
335 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MailTemplate(models.Model):
_inherit = "mail.template"
company_id = fields.Many2one(
"res.company",
default=lambda self: self.env.company,
ondelete="se... | 22.333333 | 335 |
525 | py | PYTHON | 15.0 | # Copyright 2017-2019 Tecnativa - Carlos Dauden
# Copyright 2018 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Tax Multi Company Default",
"version": "15.0.1.0.1",
"category": "Account",
"website": "https://github.com/OCA/multi-company",
... | 35 | 525 |
12,269 | py | PYTHON | 15.0 | # Copyright 2017 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
# Copyright 2018 Vicent Cubells - Tecnativa <vicent.cubells@tecnativa.com>
# Copyright 2023 Eduardo de Miguel - Moduon Team <edu@moduon.team>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import Form
from odoo.te... | 41.87372 | 12,269 |
6,210 | py | PYTHON | 15.0 | # Copyright 2017 Carlos Dauden - Tecnativa <carlos.dauden@tecnativa.com>
# Copyright 2018 Vicent Cubells - Tecnativa <vicent.cubells@tecnativa.com>
# Copyright 2023 Eduardo de Miguel - Moduon <edu@moduon.team>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from typing import List
from odoo import api... | 37.409639 | 6,210 |
706 | py | PYTHON | 15.0 | # Copyright 2022 Le Filament
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Account move update analytic",
"version": "15.0.1.1.0",
"category": "Accounting & Finance",
"summary": "This module allows the user to update analytic on posted moves",
"author": "Le Filame... | 35.3 | 706 |
363 | py | PYTHON | 15.0 | # Copyright 2022 Moduon - Eduardo de Miguel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
analytic_account_id = fields.Many2one(
tracking=True,
)
analytic_tag_ids = fiel... | 25.928571 | 363 |
2,381 | py | PYTHON | 15.0 | # Copyright 2022 Le Filament
# Copyright 2022 Moduon - Eduardo de Miguel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class AccountMoveUpdateAnalytic(models.TransientModel):
_name = "account.move.update.analytic.wizard"
_description = "Account Mov... | 41.051724 | 2,381 |
709 | py | PYTHON | 15.0 | # Copyright 2015 Akretion (http://www.akretion.com/) - Alexis de Lattre
# Copyright 2016 Antiun Ingeniería S.L. - Javier Iniesta
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Product Analytic",
"version": "15.0.1.0.0",
"category":... | 39.277778 | 707 |
3,732 | py | PYTHON | 15.0 | # Copyright 2015 Antiun Ingenieria - Javier Iniesta
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestAccountInvoiceLine(TransactionCase):
@classmethod
def setUpClass(cls):
super().se... | 37.31 | 3,731 |
1,682 | py | PYTHON | 15.0 | # Copyright 2015 Akretion (http://www.akretion.com/) - Alexis de Lattre
# Copyright 2016 Antiun Ingeniería S.L. - Javier Iniesta
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
INV_TYPE_MAP = {
"out_invoice": "income",
... | 37.333333 | 1,680 |
683 | py | PYTHON | 15.0 | # Copyright 2015 Akretion (http://www.akretion.com/) - Alexis de Lattre
# Copyright 2016 Antiun Ingeniería S.L. - Javier Iniesta
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductCategory(models.Model):
_inh... | 34.05 | 681 |
1,009 | py | PYTHON | 15.0 | # Copyright 2015 Akretion (http://www.akretion.com/) - Alexis de Lattre
# Copyright 2016 Antiun Ingeniería S.L. - Javier Iniesta
# Copyright 2017 Tecnativa - Luis Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductTemplate(models.Model):
_in... | 33.566667 | 1,007 |
844 | py | PYTHON | 15.0 | # Copyright 2013 Julius Network Solutions
# Copyright 2015 Clear Corp
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2017 ForgeFlow S.L.
# Copyright 2018 Hibou Corp.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Analytic",
"summary": "Adds an analytic account and anal... | 33.76 | 844 |
2,923 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestStockScrap(TransactionCase):
def setUp(self):
super(TestStockScrap, self).setUp()
self.product = self.env.ref("product.product_... | 39.5 | 2,923 |
9,874 | py | PYTHON | 15.0 | # Copyright 2013 Julius Network Solutions
# Copyright 2015 Clear Corp
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2017 ForgeFlow S.L.
# Copyright 2018 Hibou Corp.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from datetime import datetime
from odoo.tests.common import TransactionCase
c... | 38.874016 | 9,874 |
722 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class StockScrap(models.Model):
_inherit = "stock.scrap"
analytic_account_id = fields.Many2one(
string="Analytic Account", comodel_name="account.analytic.a... | 32.818182 | 722 |
3,087 | py | PYTHON | 15.0 | # Copyright 2013 Julius Network Solutions
# Copyright 2015 Clear Corp
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2017 ForgeFlow S.L.
# Copyright 2018 Hibou Corp.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class StockMove(models.Model):
_inher... | 34.685393 | 3,087 |
310 | py | PYTHON | 15.0 | # Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID, api
def post_init_hook(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env["account.analytic.account"]._assign_default_codes()
| 34.444444 | 310 |
578 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Analytic Sequence",
"summary": """
Restore the analytic account sequence""",
"version": "15.0.1.0.1",
"license": "AGPL-3",... | 28.9 | 578 |
656 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestAccountAnalyticSequence(TransactionCase):
def setUp(self):
super().setUp()
self.analyt... | 34.526316 | 656 |
1,027 | py | PYTHON | 15.0 | # Copyright 2017 ACSONE SA/NV
# Copyright 2020 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class AccountAnalyticAccount(models.Model):
_inherit = "account.analytic.account"
code = fields.Char(
default... | 27.756757 | 1,027 |
1,281 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-account-analytic",
description="Meta package for oca-account-analytic Odoo addons",
version=version,
install_requires=[
'odoo-addon-account_analytic_parent>=15.0dev,<15.... | 41.322581 | 1,281 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
106 | 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 |
106 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.