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 |
|---|---|---|---|---|---|---|
7,177 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from dateutil.rrule import MONTHLY
from odoo import fields
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestStockDemandEstimate(Transac... | 35.706468 | 7,177 |
1,353 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class StockDemandEstimate(models.Model):
_inherit = "stock.demand.estimate"
date_range_id = fields.Many2one(
comodel_name="date.range... | 34.692308 | 1,353 |
571 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class DateRange(models.Model):
_inherit = "date.range"
days = fields.Integer(
string="Days between dates",
compute="_compute_... | 30.052632 | 571 |
922 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class StockDemandEstimateSheetLine(models.TransientModel):
_name = "stock.demand.estimate.sheet.line"
_description = "Stock Demand Estimate Sheet L... | 46.1 | 922 |
5,532 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo.osv import expression
class StockDemandEstimateSheet(models.TransientModel):
_name = "stock.dem... | 34.360248 | 5,532 |
2,858 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
class DemandEstimateWizard(models.TransientModel):
_name = "stock.demand.estimate.wizard... | 31.406593 | 2,858 |
641 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Scrap Reason Code",
"version": "15.0.1.1.0",
"license": "AGPL-3",
"summary": "Reason code for scrapping",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-lo... | 32.05 | 641 |
8,646 | py | PYTHON | 15.0 | # Copyright (C) 2019 IBM Corp.
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class StockScrap(TransactionCase):
def setUp(self):
super(StockScrap, self)... | 39.3 | 8,646 |
889 | py | PYTHON | 15.0 | # Copyright (C) 2019 IBM Corp.
# Copyright (C) 2019 Open Source Integrators
# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ScrapReasonCode(models.Model):
_name = "scrap.reason.code"
_description... | 34.192308 | 889 |
2,759 | py | PYTHON | 15.0 | # Copyright (C) 2019 IBM Corp.
# Copyright (C) 2019 Open Source Integrators
# Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockScrap(models.Model):
... | 34.924051 | 2,759 |
315 | py | PYTHON | 15.0 | # Copyright (C) 2019 IBM Corp.
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockMove(models.Model):
_inherit = "stock.move"
reason_code_id = fields.Many2one("scrap.reason.code", string="Reason code")
| 28.636364 | 315 |
522 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Free Quantity",
"version": "15.0.1.0.1",
"author": "akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"development_status": "Production/Stable",
"catego... | 30.705882 | 522 |
1,429 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo.tests.common import TransactionCase
class TestTemplateFreeQty(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.t... | 40.828571 | 1,429 |
1,094 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
def _compute_quantities_dict(self):
prod_available = super()._compute_quantities_dict()
for template in self:
fr... | 32.176471 | 1,094 |
1,565 | py | PYTHON | 15.0 | # Copyright 2018-22 Creu Blanca
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Request kanban",
"version": "15.0.1.1.1",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Creu Blanca, ForgeFlow, Odoo... | 40.128205 | 1,565 |
524 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from reportlab.graphics.barcode import getCodes
from odoo.tests.common import TransactionCase
class TestBaseKanban(TransactionCase):
def pass_code(self, wizard, code):
... | 30.823529 | 524 |
7,717 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo.exceptions import ValidationError
from .base_test import TestBaseKanban
class TestKanban(TestBaseKanban):
def setUp(self):
super().setUp()
self.main_... | 38.585 | 7,717 |
4,521 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from .base_test import TestBaseKanban
class TestKanban(TestBaseKanban):
def setUp(self):
super().setUp()
self.main_company = self.env.ref("base.main_company")
... | 40.366071 | 4,521 |
1,836 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, fields, models
class WizardStockRequestKanban(models.TransientModel):
_name = "wizard.stock.request.kanban"
_description = "Stock Request Kanban Wizard"... | 36.72 | 1,836 |
2,213 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, fields, models
from odoo.exceptions import ValidationError
class WizardStockRequestOrderKanban(models.TransientModel):
_name = "wizard.stock.request.order.k... | 39.517857 | 2,213 |
1,447 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, fields, models
class WizardStockRequestKanbanAbstract(models.AbstractModel):
_name = "wizard.stock.request.kanban.abstract"
_description = "Stock Reques... | 32.886364 | 1,447 |
1,247 | py | PYTHON | 15.0 | # Copyright 2017 Creu Blanca
# Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, fields, models
class WizardStockInventoryKanban(models.TransientModel):
_name = "wizard.stock.inventory.kanban"
_description = "Stock Inventory Kanban W... | 36.676471 | 1,247 |
271 | py | PYTHON | 15.0 | # Copyright 2018 Creu Blanca
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class StockRequest(models.Model):
_inherit = "stock.request"
kanban_id = fields.Many2one("stock.request.kanban", readonly=True)
| 27.1 | 271 |
1,797 | py | PYTHON | 15.0 | from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
kanban_card_count = fields.Integer(
"# Kanban Cards", compute="_compute_kanban_card_count", compute_sudo=False
)
def _compute_kanban_card_count(self):
for product in self:
c... | 33.90566 | 1,797 |
4,679 | py | PYTHON | 15.0 | # Copyright 2018 Creu Blanca
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
from odoo.osv import expression
class StockInventoryKanban(models.Model):
_name = "stock.inventory.kanban"
_description = "Inventory for Kanban"
_inherit = ["mail.thread... | 30.782895 | 4,679 |
1,881 | py | PYTHON | 15.0 | # Copyright 2018 Creu Blanca
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from reportlab.graphics.barcode import getCodes
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockRequestKanban(models.Model):
_name = "stock.request.kanban"
_descr... | 31.881356 | 1,881 |
805 | py | PYTHON | 15.0 | # Copyright 2016-2017 ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2019-2023 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock Change Quantity Reason",
"summary": """
Stock Quantity Change Reason """,
"author": "ACSONE SA/NV, Odoo Community Association ... | 35 | 805 |
654 | py | PYTHON | 15.0 | # Copyright 2023 ForgeFlow <http://www.forgeflow.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
def fill_required_reason(env):
openupgrade.logged_query(
env.cr,
"""
UPDATE stock_quant_reason sqr
SET name = '???'
... | 26.16 | 654 |
1,731 | py | PYTHON | 15.0 | # Copyright 2023 ForgeFlow <http://www.forgeflow.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
def fill_stock_quant_reason(env):
openupgrade.logged_query(
env.cr,
"""
UPDATE stock_move_line sml
SET reason = sil.rea... | 32.055556 | 1,731 |
2,740 | py | PYTHON | 15.0 | # pylint: disable=import-error,protected-access,too-few-public-methods
# Copyright 2016-2017 ACSONE SA/NV (<http://acsone.eu>)
# Copyright 2019-2023 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestStockQuantityChangeReason(Transac... | 43.492063 | 2,740 |
353 | py | PYTHON | 15.0 | # Copyright 2019-2023 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class StockMoveLine(models.Model):
_inherit = "stock.move.line"
preset_reason_id = fields.Many2one("stock.quant.reason")
reason = fields.Char(help="Type in a reason f... | 35.3 | 353 |
1,406 | py | PYTHON | 15.0 | # Copyright 2016-2017 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class StockQuant(models.Model):
"""Class to inherit model stock.quant"""
_inherit = "stock.quant"
reason = fields.Char(help="Type in a reason for ... | 35.15 | 1,406 |
563 | py | PYTHON | 15.0 | # Copyright 2019-2023 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockQuantReason(models.Model):
_name = "stock.quant.reason"
_description = "Stock Quant Reason"
name = fields.Char("Reason Name", required=True)
description = fi... | 28.15 | 563 |
547 | py | PYTHON | 15.0 | # Copyright 2019-2023 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
group_qty_reason_preset = fields.Boolean(
string="Preset Change Qty Reason",
... | 36.466667 | 547 |
522 | py | PYTHON | 15.0 | # Copyright 2018 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock Location Lockdown",
"summary": "Prevent to add stock on locked locations",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
... | 32.625 | 522 |
3,751 | py | PYTHON | 15.0 | # Copyright 2019 Akretion France
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import TransactionCase
class TestStockLocationLockdown(TransactionCase):
def setUp(self, *args, **kwargs):
super(TestStockLocation... | 38.670103 | 3,751 |
1,143 | py | PYTHON | 15.0 | # Copyright 2019 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
from odoo.exceptions import UserError
class StockLocation(models.Model):
_inherit = "stock.location"
block_stock_entrance = fields.Boolean(
help="if this box is checked, putti... | 34.636364 | 1,143 |
920 | py | PYTHON | 15.0 | # Copyright 2019 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, models
from odoo.exceptions import ValidationError
class StockQuant(models.Model):
_inherit = "stock.quant"
# Raise an error when trying to change a quant
# which corresponding stock locati... | 35.384615 | 920 |
544 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product template in putaway strategies",
"summary": "Add product template in putaway strategies from the product view",
"version": "15.0.1.0.1",
"category": "Inventory",
"website": "https://github.com/OCA/stock-logistics-ware... | 41.846154 | 544 |
4,979 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Copyright 2020 Tecnativa - Sergio Teruel
# Copyright 2020-2021 Víctor Martínez - Tecnativa
from odoo.tests import common
class TestStockPutawayRule(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
... | 45.245455 | 4,977 |
1,616 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Copyright 2020 Sergio Teruel - Tecnativa
# Copyright 2020 Víctor Martínez - Tecnativa
from odoo import api, fields, models
class StockPutawayRule(models.Model):
_inherit = "stock.putaway.rule"
product_tmpl_id = fields.Many2one(
comode... | 32.28 | 1,614 |
618 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Copyright 2020 Tecnativa - Sergio Teruel
from odoo import models
class StockLocation(models.Model):
_inherit = "stock.location"
def _get_putaway_strategy(
self, product, quantity=0, package=None, packaging=None, additional_qty=None
... | 29.428571 | 618 |
572 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Copyright 2021 Tecnativa - Víctor Martínez
from odoo import models
class ProductTemplate(models.Model):
_inherit = "product.template"
def action_view_related_putaway_rules(self):
self.ensure_one()
domain = [
"|",
... | 30 | 570 |
482 | py | PYTHON | 15.0 | # Copyright 2020-2021 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Helpers",
"summary": "Add methods shared between various stock modules",
"version": "15.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://g... | 32.133333 | 482 |
1,626 | py | PYTHON | 15.0 | # Copyright 2020-2021 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from .common import StockHelperCommonCase
class TestStockLocationIsSublocationOf(StockHelperCommonCase):
def test_is_sublocation_of_equal(self):
self.assertTrue(self.shelf1_loc.is_sublocation_of(self... | 33.875 | 1,626 |
721 | py | PYTHON | 15.0 | # Copyright 2020-2021 Camptocamp SA
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo.tests import TransactionCase
class StockHelperCommonCase(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, ... | 37.947368 | 721 |
788 | py | PYTHON | 15.0 | # Copyright 2020-2021 Camptocamp SA (http://www.camptocamp.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo import models
class StockLocation(models.Model):
_inherit = "stock.location"
def is_sublocation_of(self, others, func=any):
"""Return True if self is a sublo... | 39.4 | 788 |
684 | py | PYTHON | 15.0 | # Copyright 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Demand Estimate",
"summary": "Allows to create demand estimates.",
"version": "15.0.1.1.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"... | 36 | 684 |
6,558 | py | PYTHON | 15.0 | # Copyright 2017-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from datetime import date, timedelta as td
from odoo.tests.common import TransactionCase
class TestStockDemandEstimate(TransactionCase):
@classmethod
def setUpClass(cls):
... | 39.269461 | 6,558 |
5,033 | py | PYTHON | 15.0 | # Copyright 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# Copyright 2016 Aleph Objects, Inc. (https://www.alephobjects.com/)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from datetime import date, timedelta
from odoo import _, api, fields, models
from odoo.exceptions import UserError
... | 37.559701 | 5,033 |
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 |
3,045 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-stock-logistics-warehouse",
description="Meta package for oca-stock-logistics-warehouse Odoo addons",
version=version,
install_requires=[
'odoo-addon-account_move_line_p... | 52.5 | 3,045 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
511 | py | PYTHON | 15.0 | # Copyright 2014 Numérigraphe SARL, Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Consider the production potential is available to promise",
"version": "15.0.1.0.1",
"author": "Numérigraphe," "Odoo Community Association (OCA)",
"website": "https://github.com... | 39.153846 | 509 |
15,937 | py | PYTHON | 15.0 | # Copyright 2014 Numérigraphe SARL
# Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.osv.expression import TRUE_LEAF
from odoo.tests.common import TransactionCase
class TestPotentialQty(TransactionCase):
"""Test the potential quantity on a... | 35.165563 | 15,930 |
6,682 | py | PYTHON | 15.0 | # Copyright 2014 Numérigraphe SARL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from collections import Counter
from odoo import api, models
from odoo.fields import first
from odoo.tools import float_round
class ProductProduct(models.Model):
_inherit = "product.product"
@api.depends... | 39.070175 | 6,681 |
650 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Warehouse Calendar",
"summary": "Adds a calendar to the Warehouse",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/sto... | 38.235294 | 650 |
4,580 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields
from odoo.tests.common import TransactionCase
class TestStockWarehouseCalendar(TransactionCase):
def setUp(self):
super(TestStockWarehouseCalendar, ... | 38.166667 | 4,580 |
1,524 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from datetime import datetime, timedelta
from odoo import fields, models
class StockWarehouse(models.Model):
_inherit = "stock.warehouse"
calendar_id = fields.Many2one(
... | 35.44186 | 1,524 |
926 | py | PYTHON | 15.0 | # Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import models
class StockRule(models.Model):
_inherit = "stock.rule"
def _get_stock_move_values(
self,
product_id,
product_qty,
prod... | 25.722222 | 926 |
1,738 | py | PYTHON | 15.0 | # Copyright 2023 ForgeFlow, S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from collections import deque
from odoo import SUPERUSER_ID, api
from odoo.tools import sql
_logger = logging.getLogger(__name__)
def pre_init_hook(cr):
_logger.info(
"Create temporary table t... | 37.782609 | 1,738 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.