Skip to content

Commit

Permalink
[IMP] stock_average_daily_sale: Don't use Odoo demo data
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseldenis committed Sep 15, 2023
1 parent 827c38b commit f284a4e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions stock_average_daily_sale/wizards/stock_average_daily_sale_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,19 @@ def _action_create_data(self):
_("You cannot call the _action_create_data() on production database.")
)
return

Check warning on line 85 in stock_average_daily_sale/wizards/stock_average_daily_sale_demo.py

View check run for this annotation

Codecov / codecov/patch

stock_average_daily_sale/wizards/stock_average_daily_sale_demo.py#L85

Added line #L85 was not covered by tests
product = self.env.ref("product.product_product_25")
product = self.env["product.product"].create(
{
"name": "Product Test 1",
"type": "product",
}
)
self._create_movement(product)
product = self.env.ref("product.product_product_27")
product = self.env["product.product"].create(
{
"name": "Product Test 2",
"type": "product",
}
)
self._create_movement(product)

self.env["stock.average.daily.sale"].refresh_view()

0 comments on commit f284a4e

Please sign in to comment.