From 0e4d6a63485f40bdc3060a3dbbb9dac0b9400e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Sep 2021 23:12:35 +0200 Subject: [PATCH] Ensure that objects in the Pool has __slots__ issue10719 review375361002 --- project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project.py b/project.py index 1b9e08a288..a20583e6de 100644 --- a/project.py +++ b/project.py @@ -27,6 +27,7 @@ from .exceptions import InvoicingError class Effort: + __slots__ = () @classmethod def __setup__(cls): @@ -91,7 +92,7 @@ class Effort: class Progress: - + __slots__ = () invoiced_progress = fields.One2Many('project.work.invoiced_progress', 'work', 'Invoiced Progress', readonly=True) @@ -208,7 +209,7 @@ class Progress: class Timesheet: - + __slots__ = () project_invoice_timesheet_up_to = fields.Date( "Invoice up to", states={