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
483
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com) # Part of ForgeFlow. See LICENSE file for full copyright and licensing details. from odoo import models class StockRule(models.Model): _inherit = "stock.rule" def _make_po_get_domain(self, company_id, values, partner): domain = super()._mak...
32.2
483
551
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Purchase Order Qty change no recompute", "summary": "Prevent recompute if only quantity has changed in purchase order line", "version": "15.0.1.0.1", "category": "Purchases", "web...
39.214286
549
2,009
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests.common import Form, TransactionCase class TestPurchaseOrderQtyChange(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.partner = cls.env["res....
40.959184
2,007
1,204
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # Copyright 2021 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import models from odoo.tools import config class PurchaseOrderLine(models.Model): _inherit = "purchase.order.line" def _onchange_eval(self, fie...
42.928571
1,202
2,633
py
PYTHON
15.0
# Copyright 2017 ForgeFlow S.L. # (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import logging logger = logging.getLogger(__name__) def pre_init_hook(cr): """ The objective of this hook is to speed up the installation of the module on an existing Odoo...
30.976471
2,633
658
py
PYTHON
15.0
# Copyright 2017 ForgeFlow S.L. # (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Purchase Open Qty", "summary": "Allows to identify the purchase orders that have quantities " "pending to invoice or to receive.", "version": "15.0.2.0.1", ...
34.631579
658
7,486
py
PYTHON
15.0
# Copyright 2017 ForgeFlow S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.fields import Datetime from odoo.tests.common import TransactionCase class TestPurchaseOpenQty(TransactionCase): def setUp(self): super(TestPurchaseOpenQty, self).setUp() self.purchase_order_...
34.981308
7,486
3,730
py
PYTHON
15.0
# Copyright 2017 ForgeFlow S.L. # (http://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import _, api, fields, models from odoo.tools import float_is_zero class PurchaseOrderLine(models.Model): _inherit = "purchase.order.line" @api.depends( "mov...
35.188679
3,730
623
py
PYTHON
15.0
# Copyright 2015 AvanzOsc (http://www.avanzosc.es) # Copyright 2015-2017 Tecnativa - Pedro M. Baeza # Copyright 2018 Tecnativa - Carlos Dauden # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) { "name": "Procurement Purchase No Grouping", "version": "15.0.1.0.1", "author": "AvanzOSC, Tecnativa...
38.9375
623
7,750
py
PYTHON
15.0
# Copyright 2015-2017 Tecnativa - Pedro M. Baeza # Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields from odoo.tests import common class TestProcurementPurchaseNoGrouping(common.TransactionCase): @classmethod def setUpClass(cls):...
40.145078
7,748
1,334
py
PYTHON
15.0
# Copyright 2015 AvanzOsc (http://www.avanzosc.es) # Copyright 2015-2016 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models class ProductCategory(models.Model): _inherit = "product.category" procured_purchase_grouping = fields.Selection(...
41.6875
1,334
1,461
py
PYTHON
15.0
# Copyright 2015 AvanzOsc (http://www.avanzosc.es) # Copyright 2018 Tecnativa - Carlos Dauden # Copyright 2015-2021 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import models class PurchaseOrderLine(models.Model): _inherit = "purchase.order.line" def _f...
33.204545
1,461
1,272
py
PYTHON
15.0
# Copyright 2020 - Radovan Skolnik <radovan@skolnik.info> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" procured_purchase_grouping = fields.Selection( [ ("standard", "Standard groupi...
41.032258
1,272
1,861
py
PYTHON
15.0
# Copyright 2015 AvanzOsc (http://www.avanzosc.es) # Copyright 2015-2016 Tecnativa - Pedro M. Baeza # Copyright 2018 Tecnativa - Carlos Dauden # Copyright 2020 Radovan Skolnik # Copyright 2020 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) import random from odoo import mod...
41.311111
1,859
517
py
PYTHON
15.0
# Copyright 2020 - Radovan Skolnik <radovan@skolnik.info> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from odoo import fields, models class ResConfigSettings(models.TransientModel): """Configuration of default value for procurement purchase grouping.""" _inherit = "res.config.settings" ...
32.3125
517
582
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase order line price history", "version": "15.0.1.0.0", "category": "Purchase Management", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.c...
34.235294
582
6,462
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Ernesto Tejeda # Copyright 2022 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import Form, TransactionCase class TestPurchaseOrderLinePriceHistoryBase(TransactionCase): @classmethod def setUpClass(cls): super()...
46.142857
6,460
3,811
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseOrderLinePriceHistory(models.TransientModel): _name = "purchase.order.line.price.history" _description = "Purchase order line price history" @api....
38.11
3,811
672
py
PYTHON
15.0
# Copyright 2020-2022 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Default purchase incoterm per partner", "summary": "Add a an incoterm field for supplier and use it on purchase order", "version": "15.0.3.0.0", "category": "Purchase", "author": "Camp...
32
672
744
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.order" incoterm_address_id = fields.Many2one( comodel_name="res.partner", string="Incoterm Address", ...
33.818182
744
724
py
PYTHON
15.0
# Copyright 2020 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResPartner(models.Model): _inherit = "res.partner" purchase_incoterm_id = fields.Many2one( comodel_name="account.incoterms", ondelete="restrict", s...
28.96
724
619
py
PYTHON
15.0
# Copyright 2020 Akretion France (http://www.akretion.com/) # @author: Alexis de Lattre <alexis.delattre@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase Reception Status", "version": "15.0.1.0.0", "category": "Purchases", "license": "AGPL-3", "summa...
36.411765
619
2,035
py
PYTHON
15.0
# Copyright 2020 Akretion France (http://www.akretion.com/) # @author: Alexis de Lattre <alexis.delattre@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models from odoo.tools import float_compare class PurchaseOrder(models.Model): _inherit = "purchase....
35.701754
2,035
584
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2020 Tecnativa - João Marques # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). { "name": "Purchase Order Univoiced Amount", "author": "Tecnativa, Odoo Community Association (OCA)", "version": "15.0.1.0.0", "development_status":...
34.294118
583
5,738
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2020 Tecnativa - Pedro M. Baeza # Copyright 2021 Tecnativa - Víctor Martínez # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo import fields from odoo.tests.common import Form, TransactionCase class TestPurchaseOrderUninvoiceAmount(...
40.394366
5,736
1,684
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Manuel Calero # Copyright 2020 Tecnativa - Pedro M. Baeza # Copyright 2020 Tecnativa - João Marques # Copyright 2021 Tecnativa - Víctor Martínez # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from odoo import api, fields, models class PurchaseOrder(models.Model): ...
35.020833
1,681
836
py
PYTHON
15.0
# © 2004-2009 Tiny SPRL (<http://tiny.be>). # © 2014-2017 Tecnativa - Pedro M. Baeza # © 2016 ACSONE SA/NV (<http://acsone.eu>) # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { "name": "Purchase order lines with discounts", "author": "Tiny, " "Acysos S.L., " "Tecnativa, " "ACSONE S...
32.038462
833
6,095
py
PYTHON
15.0
# Copyright 2018 GRAP - Sylvain Legal # Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields from odoo.tests.common import TransactionCase class TestProductSupplierinfoDiscount(TransactionCase): @classmethod def setUpClass(cls): ...
37.392638
6,095
6,840
py
PYTHON
15.0
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) # Copyright 2015-2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields from odoo.tests.common import TransactionCase class TestPurchaseOrder(TransactionCase): @classmethod def setUpClass(cls):...
40.473373
6,840
1,486
py
PYTHON
15.0
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) # Copyright 2014-2019 Tecnativa - Pedro M. Baeza # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import api, fields, models class ProductSupplierInfo(models.Model): _inherit = "product.supplierinfo" discount = fields.Float(string=...
39.105263
1,486
5,172
py
PYTHON
15.0
# Copyright 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright 2016 ACSONE SA/NV (<http://acsone.eu>) # Copyright 2015-2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.ord...
36.167832
5,172
1,205
py
PYTHON
15.0
# Copyright 2018 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models class StockMove(models.Model): _inherit = "stock.move" def write(self, values): if self.env.context.get("skip_update_price_unit") and values.get("price_unit"): ...
35.441176
1,205
527
py
PYTHON
15.0
# Copyright 2016 GRAP (http://www.grap.coop) # Sylvain LE GAL (https://twitter.com/legalsylvain) # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import fields, models class ResPartner(models.Model): _inherit = "res.partner" default_supplierinfo_discount = fields.Float( ...
32.9375
527
1,073
py
PYTHON
15.0
# Copyright 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) # Copyright 2017-2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class PurchaseReport(models.Model): _inherit = "purchase.report" discount = fields.Floa...
31.558824
1,073
468
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase - Receipt Percentage", "version": "15.0.1.0.0", "category": "Purchase Management", "author": "Camptocamp, Odoo Community Association (OCA), Italo Lopes", "website": "https://github.com...
33.428571
468
2,701
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import TransactionCase class TestPurchaseTotalOrderedQty(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.partner = cls.env["res.partner"].create({"name":...
38.042254
2,701
803
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models from odoo.tools.float_utils import float_is_zero class PurchaseOrderLine(models.Model): _inherit = "purchase.order.line" receipt_percentage = fields.Float(compute="_compute_rec...
38.238095
803
1,589
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.order" receipt_percentage = fields.Float( compute="_compute_receipt_percentage", store=True, hel...
36.953488
1,589
820
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase Work Acceptance - Late Delivery Fines", "version": "15.0.1.1.0", "category": "Purchase Management", "author": "Ecosoft, Odoo Community Association (OCA)", "l...
35.652174
820
6,745
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from dateutil.relativedelta import relativedelta from odoo import fields from odoo.exceptions import UserError from odoo.tests.common import Form, TransactionCase class TestWorkAcceptanceLateFine...
44.668874
6,745
2,418
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class AccountMove(models.Model): _inherit = "account.move" late_wa_id = fields.Many2one( comodel_name="work.acceptance", string="Late...
35.558824
2,418
421
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class Company(models.Model): _inherit = "res.company" wa_fines_rate = fields.Monetary(string="Fines Rate") wa_fines_late_account_id = fields.Many2one(...
30.071429
421
1,003
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" group_enable_fines_on_wa = fields.Boolean( string="Enable La...
34.586207
1,003
4,756
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import UserError class WorkAcceptance(models.Model): _inherit = "work.acceptance" late_days = fields.Integer( readonl...
36.868217
4,756
810
py
PYTHON
15.0
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class WorkAcceptanceCreateFine(models.TransientModel): _name = "work.acceptance.create.fines" _description = "Create Fines Invoice/Refund from WA" mov...
33.75
810
486
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Purchase Requisition Grouped by Procurement", "version": "15.0.1.0.0", "category": "Purchases", "website": "https://github.com/OCA/purchase-workflow", "author": "Tecnativa, Odoo C...
37.230769
484
2,514
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields from odoo.tests import TransactionCase class TestPurchaseRequisitionGgroupedbyProcurement(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() ...
38.646154
2,512
395
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, models class StockRule(models.Model): _inherit = "stock.rule" @api.model def _run_buy(self, procurements): _self = self.with_context(grouped_by_procurement=True) ...
30.230769
393
1,623
py
PYTHON
15.0
# Copyright 2021 Tecnativa - Víctor Martínez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseRequisition(models.Model): _inherit = "purchase.requisition" group_id = fields.Many2one(comodel_name="procurement.group", string="Group") def ...
30.584906
1,621
546
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase order line price history discount", "version": "15.0.1.0.0", "category": "Purchase Management", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https:/...
42
546
1,135
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Ernesto Tejeda # Copyright 2020 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.addons.purchase_order_line_price_history.tests.test_purchase_order_line_price_history import ( # noqa: B950 TestPurchaseOrderLinePriceHistoryBase, ) c...
45.4
1,135
507
py
PYTHON
15.0
# Copyright 2020 Tecnativa - Ernesto Tejeda # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class PurchaseOrderLinePriceHistoryLine(models.TransientModel): _inherit = "purchase.order.line.price.history.line" discount = fields.Float(related="purchase_order_line_...
36.214286
507
492
py
PYTHON
15.0
# Copyright 2023 CreuBlanca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Purchase Invoice Method", "summary": """ Allow to force the invoice method of a purchase""", "version": "15.0.1.0.0", "license": "AGPL-3", "author": "CreuBlanca,Odoo Community Association...
28.941176
492
3,137
py
PYTHON
15.0
# Copyright 2023 CreuBlanca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo.tests import Form from odoo.tests.common import TransactionCase class TestPurchaseInvoiceMethod(TransactionCase): def setUp(self): super().setUp() self.vendor = self.env["res.partner"].create( ...
36.057471
3,137
1,138
py
PYTHON
15.0
# Copyright 2023 CreuBlanca # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.order" invoice_method = fields.Selection( lambda r: r.env["product.template"]._fields["purchase_method"].selection...
31.611111
1,138
1,005
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase Work Acceptance", "version": "15.0.1.1.0", "category": "Purchase Management", "author": "Ecosoft, Odoo Community Association (OCA)", "license": "AGPL-3", ...
35.892857
1,005
15,491
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import ast from odoo import fields from odoo.exceptions import UserError, ValidationError from odoo.tests.common import Form, TransactionCase class TestPurchaseWorkAcceptance(TransactionCase): ...
43.150418
15,491
678
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models class SelectWorkAcceptanceWizard(models.TransientModel): _name = "work.accepted.date.wizard" _description = "Select work accepted date" date_accept =...
32.285714
678
1,757
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class SelectWorkAcceptanceWizard(models.TransientModel): _name = "select.work.acceptance.wizard" _desc...
34.45098
1,757
2,973
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class AccountMove(models.Model): _inherit = "account.move" require_wa = fields.Boolean(compute="_compu...
40.726027
2,973
6,883
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import UserError class PurchaseOrder(models.Model): _inherit = "purchase.order" wa_count = fields.Integer(compute="_compute_w...
35.479381
6,883
4,314
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class Picking(models.Model): _inherit = "stock.picking" require_wa = fields.Boolean(compute="_compute_...
38.176991
4,314
1,101
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" group_enable_wa_on_po = fields.Boolean( string="Enable WA on Purc...
37.965517
1,101
7,299
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import UserError class WorkAcceptance(models.Model): _name = "work.acceptance" _inherit = ["mail.thread", "mail.activity.mixin...
32.878378
7,299
689
py
PYTHON
15.0
# Copyright 2019 Akretion (<http://www.akretion.com>) # Copyright 2020 Ecosoft (<http://ecosoft.co.th>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase Sub State", "version": "15.0.1.0.0", "category": "Tools", "author": "Akretion,Ecosoft,Odoo Community Association (O...
34.45
689
2,757
py
PYTHON
15.0
# Copyright 2019 Akretion Mourad EL HADJ MIMOUNE # Copyright 2020 Ecosoft (<http://ecosoft.co.th>) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields from odoo.exceptions import ValidationError from odoo.tests.common import TransactionCase class TestBaseSubstate(TransactionC...
40.544118
2,757
546
py
PYTHON
15.0
# Copyright 2019 Akretion # Copyright 2020 Ecosoft (<http://ecosoft.co.th>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class BaseSubstateType(models.Model): _inherit = "base.substate.type" model = fields.Selection( selection_add=[("purchase.order"...
27.3
546
574
py
PYTHON
15.0
# Copyright 2019 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase Stock Return Request", "version": "15.0.1.0.0", "category": "Stock", "website": "https://github.com/OCA/purchase-workflow", "author": "Tecnativa, " "Odoo Community Association...
33.764706
574
4,885
py
PYTHON
15.0
# Copyright 2019 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.addons.stock_return_request.tests.test_stock_return_request_common import ( StockReturnRequestCase, ) class PurchaseReturnRequestCase(StockReturnRequestCase): @classmethod def setUpClass(cls)...
41.752137
4,885
3,355
py
PYTHON
15.0
# Copyright 2019 Tecnativa - David Vidal # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class StockReturnRequest(models.Model): _inherit = "stock.return.request" purchase_order_ids = fields.Many2many( comodel_name="purchase.order", st...
37.696629
3,355
735
py
PYTHON
15.0
# Copyright 2021 Ecosoft (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Purchase Reqeust Exception", "summary": "Custom exceptions on purchase request", "version": "15.0.1.0.0", "category": "Generic Modules/Purchase", "author": "Ecosoft, Odoo...
36.75
735
4,278
py
PYTHON
15.0
# Copyright 2021 Ecosoft (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from datetime import datetime from odoo.tests.common import TransactionCase from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT class TestPurchaseRequestException(TransactionCase): def setUp(s...
37.858407
4,278
723
py
PYTHON
15.0
# Copyright 2021 Ecosoft (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class PurchaseRequestExceptionConfirm(models.TransientModel): _name = "purchase.request.exception.confirm" _description = "Purchase request exception wizard" ...
36.15
723
1,809
py
PYTHON
15.0
# Copyright 2021 Ecosoft (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, models class PurchaseRequest(models.Model): _inherit = ["purchase.request", "base.exception"] _name = "purchase.request" _order = "main_exception_id asc, id desc" ...
31.736842
1,809
728
py
PYTHON
15.0
# Copyright 2021 Ecosoft (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class PurchaseRequestLine(models.Model): _inherit = ["purchase.request.line", "base.exception.method"] _name = "purchase.request.line" ignore_excepti...
30.333333
728
624
py
PYTHON
15.0
# Copyright 2021 Ecosoft (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class ExceptionRule(models.Model): _inherit = "exception.rule" purchase_request_ids = fields.Many2many( comodel_name="purchase.request", strin...
31.2
624
558
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) { "name": "Purchase Fully Invoiced", "summary": "Useful filters in Purchases to know the actual status of invoices.", "author": "Forgeflow, Odoo Community Association (OCA)", "license": "AGPL-3", "w...
29.368421
558
3,340
py
PYTHON
15.0
# Copyright 2022 ForgeFlow, S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from datetime import datetime from odoo import fields from odoo.tests import Form, common, tagged @tagged("-at_install", "post_install") class TestPurchaseOrderAutoLock(common.TransactionCase): def setUp(self): ...
38.390805
3,340
1,279
py
PYTHON
15.0
# Copyright 2022 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.order" # Same as invoice_status, but excluding invoices in draft invoice_status_validated = fields.Selection( ...
36.542857
1,279
662
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Purchase Requisition Tier Validation", "summary": "Extends the functionality of Purchase Agreements to " "support a tier validation process.", "version": "15.0.1.0.0", ...
38.941176
662
519
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import common class TestPurchaseRequisitionTierValidation(common.TransactionCase): def setUp(self): super().setUp() self.tier_definition = self.env["tier.defin...
32.4375
519
407
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, models class TierDefinition(models.Model): _inherit = "tier.definition" @api.model def _get_tier_validation_model_names(self): res = super()._get_tier_...
29.071429
407
400
py
PYTHON
15.0
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import models class PurchaseRequisition(models.Model): _name = "purchase.requisition" _inherit = ["purchase.requisition", "tier.validation"] _state_from = ["draft"] _st...
30.769231
400
506
py
PYTHON
15.0
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Purchase Cancel Confirm", "version": "15.0.1.0.0", "author": "Ecosoft,Odoo Community Association (OCA)", "category": "Usability", "license": "AGPL-3", "websi...
33.733333
506
1,737
py
PYTHON
15.0
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from odoo.tests.common import Form, TransactionCase class TestPurchaseCancelConfirm(TransactionCase): def setUp(self): super(TestPurchaseCancelConfirm, self).setUp() self....
44.538462
1,737
623
py
PYTHON
15.0
# Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import models class PurchaseOrder(models.Model): _name = "purchase.order" _inherit = ["purchase.order", "base.cancel.confirm"] _has_cancel_reason = "optional" # ["no",...
32.789474
623
1,107
py
PYTHON
15.0
# Copyright 2019 ForgeFlow S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging from odoo import SUPERUSER_ID, api _logger = logging.getLogger(__name__) def post_init_hook(cr, registry): """Existing employees should be subscribed to the new subtype for all existing purchase o...
31.628571
1,107
493
py
PYTHON
15.0
# Copyright 2019-21 ForgeFlow S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0). { "name": "Purchase Reception Notify", "version": "15.0.1.0.0", "category": "Purchase Management", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/purch...
32.866667
493
1,989
py
PYTHON
15.0
# Copyright 2019 ForgeFlow S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.fields import Datetime from odoo.tests.common import TransactionCase class TestPurchaseReceptionNotify(TransactionCase): def setUp(self): super(TestPurchaseReceptionNotify, self).setUp() self...
38.25
1,989
2,396
py
PYTHON
15.0
# Copyright 2019 ForgeFlow S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0). from odoo import _, api, models class StockPicking(models.Model): _inherit = "stock.picking" @api.model def _purchase_order_picking_confirm_message_content(self, picking, purchase_dict): if not pu...
42.785714
2,396
642
py
PYTHON
15.0
# Copyright 2018 Sergio Teruel <sergio.teruel@tecnativa.com> # Copyright 2018 Carlos Dauden <carlos.dauden@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Purchase Line Reassign", "summary": "", "version": "15.0.1.0.0", "category": "Purchase Management", "w...
30.571429
642
1,778
py
PYTHON
15.0
# Copyright 2019 Alexandre Díaz <alexandre.diaz@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from datetime import datetime from odoo.tests import common class TestReassign(common.TransactionCase): def test_reassign(self): vendor = self.env["res.partner"].create( ...
32.309091
1,777
1,495
py
PYTHON
15.0
# Copyright 2018 Sergio Teruel <sergio.teruel@tecnativa.com> # Copyright 2018 Carlos Dauden <carlos.dauden@tecnativa.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo import _, exceptions, fields, models class PurchaseOrderLineReassignWiz(models.TransientModel): _name = "purchase.orde...
39.342105
1,495
575
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Purchase - Order Qty By Product Category", "version": "15.0.1.0.0", "category": "Purchase Management", "author": "Camptocamp, Odoo Community Association (OCA), Italo Lopes", "website": "https:/...
31.944444
575
10,765
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import Form, TransactionCase class TestPurchaseOrderQtyByProductCategory(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.uom_unit = cls.env.ref("uom.prod...
41.563707
10,765
2,766
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from collections import defaultdict from odoo import api, fields, models class PurchaseOrderLine(models.Model): _inherit = "purchase.order.line" qty_by_product_category_id = fields.Many2one( "purchase.ord...
36.88
2,766
3,159
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models from odoo.exceptions import ValidationError class PurchaseOrderQtyByProductCategory(models.Model): _name = "purchase.order.qty.by.product.category" _description = "PO quantit...
38.52439
3,159
2,094
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, fields, models class PurchaseOrder(models.Model): _inherit = "purchase.order" @api.model def _get_default_category_qty_split_by_uom(self): key = "purchase_ordered_qty_by_product_c...
38.777778
2,094
306
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResCompany(models.Model): _inherit = "res.company" po_category_qty_split_by_uom = fields.Boolean() po_category_qty_split_by_uom_reference = fields.Boolean()
27.818182
306
517
py
PYTHON
15.0
# Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" po_category_qty_split_by_uom = fields.Boolean( related="company_id.po_category_qty_split_by_...
28.722222
517