Skip to content

Commit

Permalink
account_cutoff_accrual_purchase_stock: dependency
Browse files Browse the repository at this point in the history
Fix account_cutoff_accrual_order_base that does not depend on stock. Code moved here
  • Loading branch information
jbaudoux committed Feb 12, 2025
1 parent ef70b72 commit 2816a86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions account_cutoff_accrual_purchase_stock/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ class TestAccountCutoffAccrualPurchaseCommon(TestAccountCutoffAccrualOrderCommon
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.stock_location = cls.env.ref("stock.stock_location_stock")
for p in cls.products.filtered(
lambda product: product.detailed_type == "product"
):
cls.env["stock.quant"]._update_available_quantity(
p, cls.stock_location, 100
)
# Removing all existing PO
cls.env.cr.execute("DELETE FROM purchase_order;")
# Create PO
Expand Down

0 comments on commit 2816a86

Please sign in to comment.