Skip to content

Commit

Permalink
Merge PR #305 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by BonnetAdam
  • Loading branch information
sustainabilitybot committed Feb 6, 2025
2 parents 9901de4 + 1f492d2 commit 95ad32b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sustainability/tests/test_preceeding_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def setUpClass(cls):
"list_price": 50.00,
"standard_price": 40.00,
"uom_id": cls.uom_hour.id,
"uom_po_id": cls.uom_hour.id, # Ensures UoM categories match
"carbon_in_factor_id": cls.carbon_factor_physical.id,
"carbon_in_is_manual": True,
}
Expand Down Expand Up @@ -126,6 +127,7 @@ def test_carbon_on_product_category(self):
"list_price": 50.00,
"standard_price": 40.00,
"uom_id": self.uom_hour.id,
"uom_po_id": self.uom_hour.id,
"categ_id": product_category.id,
}
)
Expand Down Expand Up @@ -184,6 +186,8 @@ def test_carbon_on_product_template(self):
"name": "Test Product Template",
"carbon_in_is_manual": True,
"carbon_in_factor_id": self.carbon_factor_physical.id,
"uom_id": self.uom_hour.id,
"uom_po_id": self.uom_hour.id,
"attribute_line_ids": [
Command.create(
{
Expand All @@ -206,6 +210,7 @@ def test_carbon_on_product_template(self):
"list_price": 50.00,
"standard_price": 40.00,
"uom_id": self.uom_hour.id,
"uom_po_id": self.uom_hour.id,
"product_tmpl_id": product_template.id,
}
)
Expand Down Expand Up @@ -265,6 +270,7 @@ def test_carbon_on_account(self):
"list_price": 50.00,
"standard_price": 40.00,
"uom_id": self.uom_hour.id,
"uom_po_id": self.uom_hour.id,
}
)

Expand Down Expand Up @@ -312,6 +318,7 @@ def test_carbon_on_company_fallback(self):
"list_price": 50.00,
"standard_price": 40.00,
"uom_id": self.uom_hour.id,
"uom_po_id": self.uom_hour.id,
}
)

Expand Down

0 comments on commit 95ad32b

Please sign in to comment.