[ADD] ci: CI de Forgejo, bots y pre-commit en todo el repo #19
1 changed files with 5 additions and 0 deletions
|
|
@ -25,11 +25,16 @@ class TestLazyLoading(HttpCase):
|
||||||
cls.other_category = cls.env["product.public.category"].create(
|
cls.other_category = cls.env["product.public.category"].create(
|
||||||
{"name": "Other Cat"}
|
{"name": "Other Cat"}
|
||||||
)
|
)
|
||||||
|
# An explicit website_sequence keeps the shop order equal to the
|
||||||
|
# creation order: in a batch create every product gets the same default
|
||||||
|
# (MAX + 5, read before the insert) and the shop breaks the tie by
|
||||||
|
# `id desc`, which would list them backwards.
|
||||||
cls.products = cls.env["product.template"].create(
|
cls.products = cls.env["product.template"].create(
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Lazy Product %02d" % index,
|
"name": "Lazy Product %02d" % index,
|
||||||
"list_price": 10.0 + index,
|
"list_price": 10.0 + index,
|
||||||
|
"website_sequence": index,
|
||||||
"is_published": True,
|
"is_published": True,
|
||||||
"public_categ_ids": [(6, 0, cls.category.ids)],
|
"public_categ_ids": [(6, 0, cls.category.ids)],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue