Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion procurement_purchase_no_grouping/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_procurement_purchase_no_grouping
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import fields

from odoo.addons.base.tests.common import BaseCommon


Expand Down
1 change: 0 additions & 1 deletion purchase_advance_payment/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_advance_payment
2 changes: 0 additions & 2 deletions purchase_blanket_order/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import test_purchase_blanket_order
from . import test_purchase_order
8 changes: 5 additions & 3 deletions purchase_blanket_order/wizard/create_purchase_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ def create_purchase_order(self):
vals = {
"product_id": line.product_id.id,
"name": line.product_id.name,
"date_planned": date_planned
if date_planned
else line.blanket_line_id.order_id.date_start,
"date_planned": (
date_planned
if date_planned
else line.blanket_line_id.order_id.date_start
),
"product_uom": line.product_uom.id,
"sequence": line.blanket_line_id.sequence,
"price_unit": line.blanket_line_id.price_unit,
Expand Down
1 change: 0 additions & 1 deletion purchase_cancel_reason/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright 2013 Guewen Baconnier, Camptocamp SA
# Copyright 2017 Okia SPRL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_purchase_cancel_reason
1 change: 0 additions & 1 deletion purchase_cancel_reason/wizard/purchase_order_cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class PurchaseOrderCancel(models.TransientModel):

"""Ask a reason for the purchase order cancellation."""

_name = "purchase.order.cancel"
Expand Down
1 change: 0 additions & 1 deletion purchase_delivery_split_date/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import test_purchase_delivery
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Copyright 2017 ForgeFlow, S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from freezegun import freeze_time

from odoo.fields import Datetime
from odoo.tests.common import Form, TransactionCase

Expand Down
1 change: 0 additions & 1 deletion purchase_deposit/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# Copyright 2019 Ecosoft Co., Ltd., Kitti U. <kittiu@ecosoft.co.th>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import test_purchase_deposit
1 change: 0 additions & 1 deletion purchase_exception/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_exception
1 change: 0 additions & 1 deletion purchase_force_invoiced/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import purchase_order
1 change: 0 additions & 1 deletion purchase_force_invoiced/reports/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import purchase_report
1 change: 0 additions & 1 deletion purchase_force_invoiced/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import test_purchase_force_invoiced
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from odoo import fields
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
from odoo.tests import tagged
from odoo.tests.common import TransactionCase

from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT


@tagged("post_install", "-at_install")
class TestPurchaseForceInvoiced(TransactionCase):
Expand Down
1 change: 0 additions & 1 deletion purchase_invoice_method/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_invoice_method
1 change: 0 additions & 1 deletion purchase_invoice_plan/models/purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from dateutil.relativedelta import relativedelta

from odoo import _, api, fields, models
from odoo.exceptions import UserError, ValidationError
from odoo.tools.float_utils import float_compare, float_round
Expand Down
1 change: 0 additions & 1 deletion purchase_invoice_plan/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import test_purchase_invoice_plan
1 change: 0 additions & 1 deletion purchase_invoice_plan/tests/test_purchase_invoice_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

from freezegun import freeze_time

from odoo import fields
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import Form, TransactionCase
Expand Down
1 change: 0 additions & 1 deletion purchase_last_price_info/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_last_price_info
1 change: 0 additions & 1 deletion purchase_open_qty/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import test_purchase_open_qty
1 change: 0 additions & 1 deletion purchase_order_archive/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import test_purchase_order_archive
1 change: 0 additions & 1 deletion purchase_order_line_menu/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Copyright (C) 2023 Moduon Team
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import purchase_order_line
1 change: 0 additions & 1 deletion purchase_order_qty_change_no_recompute/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_purchase_order_qty_change
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# 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

from odoo.addons.base.tests.common import BaseCommon
from odoo.tests.common import Form


class TestPurchaseOrderQtyChange(BaseCommon):
Expand Down
3 changes: 0 additions & 3 deletions purchase_order_type/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from . import purchase_order_type
from . import purchase_order
from . import res_partner
1 change: 0 additions & 1 deletion purchase_order_type/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright 2019 Oihane Crucelaegui - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import test_purchase_order_type
1 change: 0 additions & 1 deletion purchase_order_type_dashboard/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import purchase_order_type
1 change: 0 additions & 1 deletion purchase_order_type_dashboard/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_order_type_dashboard
2 changes: 0 additions & 2 deletions purchase_partner_incoterm/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
from . import purchase_order
from . import res_partner
1 change: 0 additions & 1 deletion purchase_reception_notify/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import stock_picking
1 change: 0 additions & 1 deletion purchase_reception_notify/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).

from markupsafe import Markup, escape

from odoo import _, api, models


Expand Down
1 change: 0 additions & 1 deletion purchase_reception_notify/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_reception_notify
9 changes: 0 additions & 9 deletions purchase_request/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

from . import purchase_request_allocation
from . import orderpoint
from . import purchase_request
from . import purchase_request_line
from . import stock_rule
from . import product_template
from . import purchase_order
from . import stock_move
from . import stock_move_line
4 changes: 2 additions & 2 deletions purchase_request/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def update_service_allocations(self, prev_qty_received):

@api.model
def _purchase_request_confirm_done_message_content(self, message_data):
title = (
_("Service confirmation for Request %s") % (message_data["request_name"])
title = _("Service confirmation for Request %s") % (
message_data["request_name"]
)
message = "<h3>%s</h3>" % title
message += _(
Expand Down
4 changes: 2 additions & 2 deletions purchase_request/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def _purchase_request_confirm_done_message_content(self, message_data):

@api.model
def _picking_confirm_done_message_content(self, message_data):
title = (
_("Receipt confirmation for Request %s") % (message_data["request_name"])
title = _("Receipt confirmation for Request %s") % (
message_data["request_name"]
)
message = "<h3>%s</h3>" % title
message += _(
Expand Down
4 changes: 0 additions & 4 deletions purchase_request/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

from . import test_purchase_request_allocation
from . import test_purchase_request_procurement
from . import test_purchase_request_to_rfq
from . import test_purchase_request
1 change: 0 additions & 1 deletion purchase_request/tests/test_purchase_request_to_rfq.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

import pytz

from odoo import SUPERUSER_ID
from odoo.tests import common

Expand Down
1 change: 0 additions & 1 deletion purchase_request/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

from . import purchase_request_line_make_purchase_order
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from datetime import datetime

import pytz

from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo.tools import get_lang
Expand Down
2 changes: 0 additions & 2 deletions purchase_request_tier_validation/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import purchase_request
from . import tier_definition
1 change: 0 additions & 1 deletion purchase_request_tier_validation/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_request_tier_validation
2 changes: 0 additions & 2 deletions purchase_requisition_tier_validation/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import purchase_requisition
from . import tier_definition
1 change: 0 additions & 1 deletion purchase_requisition_tier_validation/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import test_purchase_requisition_tier_validation
2 changes: 0 additions & 2 deletions purchase_sale_link_by_origin/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
from . import purchase_order
from . import sale_order
1 change: 0 additions & 1 deletion purchase_sale_link_by_origin/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_sale_purchase
5 changes: 0 additions & 5 deletions purchase_security/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from . import ir_rule
from . import purchase_order
from . import purchase_team
from . import res_partner
from . import res_users
1 change: 0 additions & 1 deletion purchase_security/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import test_access_rights
2 changes: 0 additions & 2 deletions purchase_tag/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
from . import purchase_tag
from . import purchase_order
2 changes: 0 additions & 2 deletions purchase_tier_validation/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import purchase_order
from . import tier_definition
1 change: 0 additions & 1 deletion purchase_tier_validation/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import test_tier_validation
1 change: 0 additions & 1 deletion purchase_warn_message/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import purchase_order
1 change: 0 additions & 1 deletion purchase_warn_message/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import test_purchase_warn_message
4 changes: 0 additions & 4 deletions supplier_calendar/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import res_partner
from . import product
from . import stock_rule
from . import purchase
1 change: 0 additions & 1 deletion supplier_calendar/models/stock_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from dateutil.relativedelta import relativedelta

from odoo import fields, models


Expand Down
1 change: 0 additions & 1 deletion supplier_calendar/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from . import test_supplier_calendar
Loading