[ADD] ci: CI de Forgejo, bots y pre-commit en todo el repo #19

Merged
snt merged 7 commits from 18.0-ci-forgejo-bots into 18.0 2026-10-04 17:42:04 +00:00
Showing only changes of commit 9e05a279d7 - Show all commits

View file

@ -25,11 +25,16 @@ class TestLazyLoading(HttpCase):
cls.other_category = cls.env["product.public.category"].create(
{"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(
[
{
"name": "Lazy Product %02d" % index,
"list_price": 10.0 + index,
"website_sequence": index,
"is_published": True,
"public_categ_ids": [(6, 0, cls.category.ids)],
}