Support cached_property on object with __slots__

Closes #12894
This commit is contained in:
Cédric Krier committed 2024-01-05 01:36:50 +01:00
1 parent 8eea0020b7
commit be1aac4fac
5 files changed
+91 -9

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ def remove_comment(stream):
class Invoice(Model):
"EDocument UN/CEFACT Invoice"
__name__ = 'edocument.uncefact.invoice'
__no_slots__ = True # to work with cached_property
__slots__ = ('invoice',)
@classmethod
def __setup__(cls):