mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[IMP] stock_average_daily_sale: Don't use Odoo demo data
This commit is contained in:
committed by
twalter-c2c
parent
dd1248354d
commit
cabb14f73a
@@ -83,9 +83,19 @@ class StockAverageDailySaleDemo(models.TransientModel):
|
|||||||
_("You cannot call the _action_create_data() on production database.")
|
_("You cannot call the _action_create_data() on production database.")
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
product = self.env.ref("product.product_product_25")
|
product = self.env["product.product"].create(
|
||||||
|
{
|
||||||
|
"name": "Product Test 1",
|
||||||
|
"type": "product",
|
||||||
|
}
|
||||||
|
)
|
||||||
self._create_movement(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._create_movement(product)
|
||||||
|
|
||||||
self.env["stock.average.daily.sale"].refresh_view()
|
self.env["stock.average.daily.sale"].refresh_view()
|
||||||
|
|||||||
Reference in New Issue
Block a user