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 |
|---|---|---|---|---|---|---|
704 | py | PYTHON | 15.0 | # Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Picking Origin Destination Link",
"summary": """
This addon link the pickings with their respective Origin and Destination Pickings.
""",
"version": "... | 39.111111 | 704 |
3,376 | py | PYTHON | 15.0 | # Copyright 2023 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestPickingOrigDestLink(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.e... | 38.804598 | 3,376 |
1,756 | py | PYTHON | 15.0 | # Copyright 2023 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 StockPicking(models.Model):
_inherit = "stock.picking"
orig_picking_ids = fields.Many2many(
comodel_name="stock.picking",
... | 34.431373 | 1,756 |
616 | py | PYTHON | 15.0 | # Copyright 2014 Camptocamp, Akretion, Numérigraphe
# Copyright 2016 Sodexis
# Copyright 2019 Sergio Díaz <sergiodm.1989@gmail.com>
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Ignore planned receptions in quantity available to promise"... | 38.3125 | 613 |
4,781 | py | PYTHON | 15.0 | # Copyright 2014 Camptocamp, Akretion, Numérigraphe
# Copyright 2016 Sodexis
# Copyright 2019 Sergio Díaz <sergiodm.1989@gmail.com>
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
class TestStockLogisticsWa... | 38.232 | 4,779 |
953 | py | PYTHON | 15.0 | # Copyright 2014 Camptocamp, Akretion, Numérigraphe
# Copyright 2016 Sodexis
# Copyright 2019 Sergio Díaz <sergiodm.1989@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
from odoo.tools import config
class ProductProduct(models.Model):
_inherit = "produ... | 35.222222 | 951 |
841 | py | PYTHON | 15.0 | # Copyright 2015 Mikel Arregi - AvanzOSC
# Copyright 2017 ForgeFlow - Jordi Ballester
# Copyright 2018 Fanha Giang
# Copyright 2018 Tecnativa - Vicent Cubells
# Copyright 2016-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Stock - Manual Quant Assignment... | 31.148148 | 841 |
7,119 | py | PYTHON | 15.0 | # Copyright 2015 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestStockQuantManualAssign(TransactionCase):
def setUp(self):
super(TestStockQuantManualAssign, s... | 37.867021 | 7,119 |
9,429 | py | PYTHON | 15.0 | # Copyright 2015 Mikel Arregi - AvanzOSC
# Copyright 2015 Oihane Crucelaegui - AvanzOSC
# Copyright 2018 Fanha Giang
# Copyright 2018 Tecnativa - Vicent Cubells
# Copyright 2018 Tecnativa - Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo import _, api, fields, models
from odoo... | 36.126437 | 9,429 |
431 | py | PYTHON | 15.0 | # Copyright 2021 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockPickingType(models.Model):
_inherit = "stock.picking.type"
auto_fill_qty_done = fields.Boolean(
"Auto-fill Quantity Done",
help="Select this in case do... | 30.785714 | 431 |
2,970 | py | PYTHON | 15.0 | # Copyright 2019 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, fields
from odoo.exceptions import UserError
from odoo.tools.float_utils import float_compare
from odoo.addons.stock.models.stock_quant import StockQuant
def post_load_hook():
def _apply_in... | 39.078947 | 2,970 |
993 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow S.L. (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Inventory Discrepancy",
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when t... | 39.72 | 993 |
347 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr,
"stock_inventory_discrepancy",
"migrations/15.0.1.0.0/no... | 26.692308 | 347 |
9,225 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow S.L.
# (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase, tagged
@tagged("post_install", "-at_install")
class TestInventoryDiscrepancy(TransactionCase):... | 40.460526 | 9,225 |
1,344 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow S.L.
# (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class StockLocation(models.Model):
_inherit = "stock.location"
discrepancy_threshold = fields.Float(
string="Maximum Discrepancy R... | 37.333333 | 1,344 |
545 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow S.L.
# (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class StockWarehouse(models.Model):
_inherit = "stock.warehouse"
discrepancy_threshold = fields.Float(
string="Maximum Discrepancy... | 32.058824 | 545 |
2,573 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class StockQuant(models.Model):
_inherit = "stock.quant"
discrepancy_percent = fields.Float(
string="Discrepancy percent (%)",
compute="_compu... | 37.289855 | 2,573 |
1,386 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import Command, _, fields, models
from odoo.exceptions import UserError
class ConfirmDiscrepancyWiz(models.TransientModel):
_name = "confirm.discrepancy.wiz"
_description = "Confim discrepan... | 33.804878 | 1,386 |
572 | py | PYTHON | 15.0 | # Copyright 2023 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Request Separate Picking",
"summary": "Separate one picking per one stock request",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"website": "https://gith... | 38.133333 | 572 |
3,994 | py | PYTHON | 15.0 | # Copyright 2023 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields
from odoo.addons.stock_request.tests import test_stock_request
class TestStockRequestSeparatePicking(test_stock_request.TestStockRequest):
def setUp(self):
... | 44.876404 | 3,994 |
790 | py | PYTHON | 15.0 | # Copyright 2023 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class StockRequestOrder(models.Model):
_inherit = "stock.request.order"
procurement_group_id = fields.Many2one(
copy=False,
)
... | 30.384615 | 790 |
349 | py | PYTHON | 15.0 | # Copyright 2023 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
stock_request_allow_separate_picking = fields.Boolean(
string="Allow Separate Pick... | 26.846154 | 349 |
405 | py | PYTHON | 15.0 | # Copyright 2023 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
stock_request_allow_separate_picking = fields.Boolean(
rela... | 31.153846 | 405 |
824 | py | PYTHON | 15.0 | # Copyright 2023 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class StockRequestAbstract(models.AbstractModel):
_inherit = "stock.request.abstract"
procurement_group_id = fields.Many2one(
copy=Fals... | 30.518519 | 824 |
544 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock MTS+MTO Rule",
"summary": "Add a MTS+MTO route",
"version": "15.0.1.0.1",
"development_status": "Mature",
"category": "Warehouse",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Akret... | 34 | 544 |
9,792 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests.common import TransactionCase
class TestMtoMtsRoute(TransactionCase):
def _create_quant(self, qty):
self.quant = self.env["stock.quant"].create(
{
"owner_id": self.compa... | 39.643725 | 9,792 |
4,178 | py | PYTHON | 15.0 | # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, fields, models
class StockWarehouse(models.Model):
_inherit = "stock.warehouse"
mto_mts_management = fields.Boolean(
"Use MTO+MTS rules",
help="If this new route is selected on product form view, a "
... | 40.173077 | 4,178 |
4,650 | py | PYTHON | 15.0 | # 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.osv import expression
from odoo.tools import float_compare, float_is_zero
class StockRule(models.Model):
_inherit = "stock.rule"
action = fields.Selec... | 43.457944 | 4,650 |
665 | py | PYTHON | 15.0 | {
"name": "Stock Inventory Adjustment",
"version": "15.0.1.0.1",
"license": "LGPL-3",
"maintainer": ["DavidJForgeFlow"],
"development_status": "Beta",
"category": "Inventory/Inventory",
"summary": "Allows to do an easier follow up of the Inventory Adjustments",
"author": "ForgeFlow, Odoo... | 33.25 | 665 |
13,765 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from odoo.exceptions import ValidationError
from odoo.tests.common import TransactionCase
class TestStockInventory(TransactionCase):
def setUp(self):
super(TestStockInventory, self).setUp()
self.quant_... | 43.83758 | 13,765 |
189 | py | PYTHON | 15.0 | from odoo import fields, models
class StockMoveLine(models.Model):
_inherit = "stock.move.line"
inventory_adjustment_id = fields.Many2one("stock.inventory", ondelete="restrict")
| 27 | 189 |
1,254 | py | PYTHON | 15.0 | from odoo import fields, models
class StockQuant(models.Model):
_inherit = "stock.quant"
to_do = fields.Boolean(default=True)
def _apply_inventory(self):
res = super()._apply_inventory()
record_moves = self.env["stock.move.line"]
for rec in self:
adjustment = (
... | 34.833333 | 1,254 |
7,693 | py | PYTHON | 15.0 | from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.osv import expression
class InventoryAdjustmentsGroup(models.Model):
_name = "stock.inventory"
_description = "Inventory Adjustment Group"
_order = "date desc, id desc"
name = fields.Char(required... | 33.889868 | 7,693 |
951 | py | PYTHON | 15.0 | # Copyright 2017-2021 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Request",
"summary": "Internal request for stock",
"version": "15.0.1.6.2",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": ... | 35.222222 | 951 |
315 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr, "stock_request", "migrations/15.0.1.4.0/noupdate_changes.xml"
)
| 31.5 | 315 |
45,492 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L.
# Copyright 2022 Tecnativa - Víctor Martínez
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
from collections import Counter
from datetime import datetime
from odoo import exceptions, fields
from odoo.tests import common, new_test_user
class TestStockRequest(commo... | 40.724261 | 45,489 |
12,533 | 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.exceptions import UserError, ValidationError
class StockRequestOrder(models.Model):
_name = "stock.request.order"
_description = "Stock Request Order"
_inhe... | 34.621547 | 12,533 |
1,474 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, models
from odoo.exceptions import ValidationError
class StockLocation(models.Model):
_inherit = "stock.location"
@api.constrains("company_id")
def _check_company_stock_request... | 32.755556 | 1,474 |
2,867 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class StockRequestAllocation(models.Model):
_name = "stock.request.allocation"
_description = "Stock Request Allocation"
stock_request_id = fields.Many2one(
... | 31.855556 | 2,867 |
1,476 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, models
from odoo.exceptions import ValidationError
class StockWarehouse(models.Model):
_inherit = "stock.warehouse"
@api.constrains("company_id")
def _check_company_stock_reque... | 32.086957 | 1,476 |
2,773 | py | PYTHON | 15.0 | # Copyright 2017 ForgeFlow S.L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
from odoo import _, api, models
class StockMoveLine(models.Model):
_inherit = "stock.move.line"
@api.model
def _stock_request_confirm_done_message_content(self, message_data):
title = (
... | 39.056338 | 2,773 |
13,469 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools import float_compare
class StockRequest(models.Model):
_name = "stock.request"
_descriptio... | 36.10992 | 13,469 |
2,812 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockMove(models.Model):
_inherit = "stock.move"
allocation_ids = fields.One2many(
comodel_name="stock... | 34.292683 | 2,812 |
350 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow S.L.
# (http://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
stock_request_allow_virtual_loc = fields.Boolean(
string="Allow Virtual locat... | 25 | 350 |
1,343 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class StockPicking(models.Model):
_inherit = "stock.picking"
stock_request_ids = fields.One2many(
comodel_name="stock.request",
string="Stock Reque... | 32.756098 | 1,343 |
870 | py | PYTHON | 15.0 | # Copyright 2018 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, models
from odoo.exceptions import ValidationError
class StockLocationRoute(models.Model):
_inherit = "stock.location.route"
@api.constrains("company_id")
def _check_company_st... | 32.222222 | 870 |
1,085 | py | PYTHON | 15.0 | # Copyright (C) 2019 Open Source Integrators
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import api, models
class ProcurementGroup(models.Model):
_inherit = "procurement.group"
@api.model
def run(self, procurements, raise_user_error=True):
indexes_to_pop = []
... | 37.413793 | 1,085 |
1,048 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L.
# 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,
product_uom,
location_... | 24.952381 | 1,048 |
1,234 | 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
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
group_stock_request_order = fields.Boolean(
implied_group="stock_request.group_stoc... | 30.85 | 1,234 |
9,501 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockRequest(models.AbstractModel):
_name = "stock.request.abstract"
_description = "Stock Request Template"
... | 36.542308 | 9,501 |
506 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Stock archive constraint",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Tecnativa, Odoo Community A... | 33.6 | 504 |
7,691 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Víctor Martínez
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo.exceptions import ValidationError
from odoo.tests.common import Form, TransactionCase
class TestLocationArchiveConstraint(TransactionCase):
@classmethod
def setUpClass(cls):
su... | 40.046875 | 7,689 |
3,032 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, models
from odoo.exceptions import ValidationError
from odoo.tools import config
class StockLocation(models.Model):
_inherit = "stock.location"
def _skip_check_archive_c... | 36.071429 | 3,030 |
378 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, models
class ProductTemplate(models.Model):
_inherit = "product.template"
@api.constrains("active")
def _check_active_stock_archive_constraint(self):
self.produ... | 31.333333 | 376 |
2,712 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, models
from odoo.exceptions import ValidationError
from odoo.tools import config
class ProductProduct(models.Model):
_inherit = "product.product"
def _skip_check_archive... | 35.657895 | 2,710 |
561 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
"name": "Stock Location Route Description",
"version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logist... | 37.4 | 561 |
942 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestStockLocationRouteDescription(TransactionCase):
def setUp(self, *args, **kwargs):
super(TestStockLocationRouteDescription, self).setUp(*args, **kwargs)
... | 42.818182 | 942 |
713 | py | PYTHON | 15.0 | # Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo import fields, models
class StockLocationRoute(models.Model):
_inherit = "stock.location.route"
description = fields.Char(translate=True)
def name_get(self):
... | 31 | 713 |
640 | py | PYTHON | 15.0 | # Copyright 2016-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Orderpoint UoM",
"summary": "Allows to create procurement orders in the UoM indicated in "
"the orderpoint",
"version": "15.0.1.0.0",
"author": "Forge... | 40 | 640 |
5,379 | py | PYTHON | 15.0 | # Copyright 2016-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import odoo.tests.common as common
from odoo.exceptions import ValidationError
from odoo.tools import mute_logger
class TestStockOrderpointProcureUom(common.TransactionCase):
def s... | 37.880282 | 5,379 |
958 | py | PYTHON | 15.0 | # Copyright 2016-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, models
from odoo.exceptions import UserError
class ProductTemplate(models.Model):
_inherit = "product.template"
@api.constrains("uom_id")
def _che... | 35.481481 | 958 |
2,080 | py | PYTHON | 15.0 | # Copyright (C) 2018 - TODAY, Open Source Integrators
# (http://www.opensourceintegrators.com)
# 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, models
class ProcurementGroup(models.Model):
_inherit = "procureme... | 42.44898 | 2,080 |
997 | py | PYTHON | 15.0 | # Copyright 2016-19 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 ValidationError
class Orderpoint(models.Model):
_inherit = "stock.warehouse.orderpoint"
procure_uom_id = fi... | 34.37931 | 997 |
696 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Request Analytic",
"summary": "Internal request for stock",
"version": "15.0.1.0.1",
"license": "AGPL-3",
"website": "https://github.com/OCA/stock... | 34.8 | 696 |
7,816 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields
from odoo.exceptions import UserError
from odoo.tests import Form
from odoo.tests.common import TransactionCase
class TestStockRequestAnalytic(TransactionCas... | 39.474747 | 7,816 |
2,806 | py | PYTHON | 15.0 | # Copyright 2018 Creu Blanca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
MAP_ACTIONS = {
"analytic_account": "analytic.action_account_analytic_account_form",
"analytic_tag": "analytic.account_analytic... | 34.641975 | 2,806 |
1,418 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L. (https://www.forgeflow.com)
# Copyright 2021 Tecnativa - João Marques
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class StockRequest(models.Model):
_inherit = "stock.request"
_check_company_auto = True
a... | 32.953488 | 1,417 |
1,111 | py | PYTHON | 15.0 | # Copyright 2017-2020 ForgeFlow, S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models
class ProcurementRule(models.Model):
_inherit = "stock.rule"
def _get_stock_move_values(
self,
product_id,
product_qty,
... | 28.487179 | 1,111 |
995 | py | PYTHON | 15.0 | # Copyright 2017-2020 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 AccountAnalyticAccount(models.Model):
_inherit = "account.analytic.account"
stock_request_ids = fields.One2many(
comodel_name=... | 34.310345 | 995 |
691 | py | PYTHON | 15.0 | # Copyright 2012-2016 Camptocamp SA
# Copyright 2019 Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Order point generator",
"summary": "Mass configuration of stock order points",
"version": "15.0.1.0.1",
"author": "Camptocamp, Tecnativa, Odoo Community Associa... | 32.904762 | 691 |
17,062 | py | PYTHON | 15.0 | # Copyright 2016 Cyril Gaudin (Camptocamp)
# Copyright 2019 David Vidal - Tecnativa
# Copyright 2020 Víctor Martínez - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
from odoo.exceptions import UserError
from odoo.tests import Form, TransactionCase
class TestOrd... | 41.009615 | 17,060 |
1,567 | py | PYTHON | 15.0 | # Copyright 2012-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, fields, models
from odoo.exceptions import UserError
_template_register = ["orderpoint_template_id"]
class OrderpointGenerator(models.TransientModel):
"""Wizard defining stock.warehouse.... | 37.309524 | 1,567 |
6,871 | py | PYTHON | 15.0 | # Copyright 2017 Camptocamp SA
# Copyright 2019 David Vidal - Tecnativa
# Copyright 2020 Víctor Martínez - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from collections import OrderedDict
from datetime import timedelta
from odoo import api, fields, models
class ProductProduct(models... | 43.751592 | 6,869 |
8,235 | py | PYTHON | 15.0 | # Copyright 2012-2016 Camptocamp SA
# Copyright 2019 David Vidal - Tecnativa
# Copyright 2020 Víctor Martínez - Tecnativa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from statistics import mean, median_high
from odoo import api, fields, models
class OrderpointTemplate(models.Model):
"""T... | 39.581731 | 8,233 |
3,016 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
import logging
from odoo import SUPERUSER_ID, api
logger = logging.getLogger(__name__)
def post_init_hook(cr, registry):
"""
The objective of this hook is to link existing MOs
... | 41.315068 | 3,016 |
766 | py | PYTHON | 15.0 | # Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Request MRP",
"summary": "Manufacturing request for stock",
"version": "15.0.1.1.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-lo... | 34.818182 | 766 |
5,858 | py | PYTHON | 15.0 | # Copyright 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# Copyright 2022 Tecnativa - Pedro M. Baeza
# Copyright 2022 Tecnativa - Víctor Martínez
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
from odoo import fields
from odoo.tests import Form
from odoo.addons.stock_request.tests.test_stoc... | 41.531915 | 5,856 |
1,535 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class StockRequestOrder(models.Model):
_inherit = "stock.request.order"
production_ids = fields.One2many(
"mrp.production",
c... | 34.886364 | 1,535 |
1,886 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockRequest(models.Model):
_inherit = "stock.request"
production_ids = fields.Many2many... | 31.966102 | 1,886 |
806 | py | PYTHON | 15.0 | # Copyright 2020 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 _prepare_mo_vals(
self,
product_id,
product_qty,
product_uom,
... | 23.705882 | 806 |
2,206 | py | PYTHON | 15.0 | # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class MrpProduction(models.Model):
_inherit = "mrp.production"
stock_request_ids = fields.Many2many(
"stock.request",
"mrp_pr... | 30.219178 | 2,206 |
629 | py | PYTHON | 15.0 | # Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Orderpoint Purchase Link",
"summary": "Link Reordering rules to purchase orders",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"website": "https://g... | 39.3125 | 629 |
3,216 | py | PYTHON | 15.0 | # Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
from odoo.tests import common
class TestOrderpointPurchaseLink(common.TransactionCase):
def setUp(self):
super(TestOrderpointPurchaseLink, self).setUp()
self.product... | 38.746988 | 3,216 |
1,131 | py | PYTHON | 15.0 | # Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
orderpoint_ids = fields.Many2many(
comodel_name="stock.war... | 37.7 | 1,131 |
816 | py | PYTHON | 15.0 | # Copyright 2018-20 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 _update_purchase_order_line(
self, product_id, product_qty, product_uom, company_id,... | 38.857143 | 816 |
433 | py | PYTHON | 15.0 | # Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class StockWarehouseOrderpoint(models.Model):
_inherit = "stock.warehouse.orderpoint"
purchase_line_ids = fields.Many2many(
comodel_nam... | 28.866667 | 433 |
791 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Stock Available Info Popup",
"summary": "Adds an 'Available to promise' quantity to the popover shown "
"in sale order line that display stock info of the product",
"author":... | 39.55 | 791 |
3,665 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import timedelta
from odoo.fields import Datetime
from odoo.tests import Form, common, new_test_user
from odoo.tests.common import users
class SaleStockAvailableInfoPopup(common.Transactio... | 39.836957 | 3,665 |
1,219 | py | PYTHON | 15.0 | # Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from collections import defaultdict
from odoo import api, fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
immediately_usable_qty_today = fields.Float(
compute="... | 33.861111 | 1,219 |
560 | 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).
{
"name": "Account Move Line Product",
"version": "15.0.1.0.1",
"summary": "Displays the product in the journal entries and items",
"author": "ForgeFlow, Odoo Community Asso... | 37.333333 | 560 |
570 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Stock Lot Filter Available",
"summary": "Allow to filter lots by available on stock",
"version": "15.0.1.0.0",
"category": "Warehouse",
"author": "Tecnativa, Odoo Community Associ... | 38 | 570 |
1,373 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestStockLotFilterAvailable(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.StockProductionLot = cls.env["s... | 38.138889 | 1,373 |
1,564 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import operator as operator_lib
from odoo import _, fields, models
class StockProductionLot(models.Model):
_inherit = "stock.production.lot"
product_qty = fields.Float(search="_search_product_qty")
... | 34 | 1,564 |
737 | py | PYTHON | 15.0 | # Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock Request Purchase",
"summary": "Internal request for stock",
"version": "15.0.1.0.2",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-lo... | 35.095238 | 737 |
10,081 | py | PYTHON | 15.0 | # Copyright 2016-20 ForgeFlow S.L. (https://www.forgeflow.com)
# Copyright 2023 Tecnativa - Víctor Martínez
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
from odoo import fields
from odoo.tests import common, new_test_user
class TestStockRequestPurchase(common.TransactionCase):
def setUp(se... | 38.033962 | 10,079 |
1,657 | 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
class StockRequestOrder(models.Model):
_inherit = "stock.request.order"
purchase_ids = fields.One2many(
"purchase.order",
compute="_compute_purchase_ids",
... | 36.021739 | 1,657 |
1,837 | py | PYTHON | 15.0 | # Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
stock_request_ids =... | 33.4 | 1,837 |
1,371 | py | PYTHON | 15.0 | # Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, fields, models
class PurchaseOrder(models.Model):
_inherit = "purchase.order"
stock_request_ids = fields.Many2many(
comodel_name="stock.request",... | 33.439024 | 1,371 |
2,237 | py | PYTHON | 15.0 | # Copyright 2017-20 ForgeFlow S.L. (https://www.forgeflow.com)
# Copyright 2023 Tecnativa - Víctor Martínez
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
class StockRequest(models.Model):
_inherit = "stock... | 36.048387 | 2,235 |
614 | py | PYTHON | 15.0 | # Copyright 2017-20 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 _update_purchase_order_line(
self, product_id, product_qty, product_uom, company_id... | 34.111111 | 614 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.