Sergi Almacellas Abellana pushed to branch branch/default at Tryton / Tryton
Commits:
17f94a97 by Sergi Almacellas Abellana at 2023-03-24T08:56:09+01:00
Do not copy templates relation when duplicating a category
Closes #12158
- - - - -
1 changed file:
- modules/product/category.py
Changes:
=====================================
modules/product/category.py
=====================================
@@ -36,3 +36,9 @@
'pyson_domain': PYSONEncoder().encode(
[('id', '=', categories[0].id)]),
}
+
+ @classmethod
+ def copy(cls, categories, default=None):
+ default = default.copy() if default is not None else {}
+ default.setdefault('templates')
+ return super().copy(categories, default=default)
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/17f94a972a316d3ea1aebdeb1615b1fa16883220
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/17f94a972a316d3ea1aebdeb1615b1fa16883220
You're receiving this email because of your account on foss.heptapod.net.