Skip to content

Commit

Permalink
reflect oca changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed Jul 3, 2024
1 parent ce65f77 commit f4f515d
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Copyright 2024 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo.tests.common import TransactionCase

from odoo.addons.stock_account.tests.test_stockvaluation import TestStockValuation


class TestStockOwnerValued(TestStockValuation):
class TestStockOwnerValued(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestStockOwnerValued, cls).setUpClass()
super().setUpClass()
cls.supplier_location = cls.env.ref("stock.stock_location_suppliers")
cls.stock_location = cls.env.ref("stock.stock_location_stock")
cls.partner = cls.env["res.partner"].create({"name": "Test Partner"})
cls.product = cls.env["product.product"].create(
{
"name": "Test Product",
Expand All @@ -18,6 +20,12 @@ def setUpClass(cls):
}
)
cls.product.categ_id.property_valuation = "real_time"
cls.owner1 = cls.env["res.partner"].create(
{
"name": "Owner 1",
"value_owner_inventory": False,
}
)
cls.owner2 = cls.env["res.partner"].create(
{
"name": "Owner 2",
Expand All @@ -42,7 +50,7 @@ def _create_picking(self, owner):
"location_id": self.supplier_location.id,
"location_dest_id": self.stock_location.id,
"product_id": self.product.id,
"product_uom": self.uom_unit.id,
"product_uom": self.product.uom_id.id,
"product_uom_qty": 10.0,
"price_unit": 10,
}
Expand Down

0 comments on commit f4f515d

Please sign in to comment.