changeset 317f22b96973 in modules/project_invoice:default
details: 
https://hg.tryton.org/modules/project_invoice?cmd=changeset;node=317f22b96973
description:
        Prevent assign unknown attributes on Model

        by adding __slots__ on proteus classes.

        issue6573
        review254081002
diffstat:

 tests/scenario_project_invoice_progress.rst |  8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diffs (25 lines):

diff -r 4c1b0ba0a195 -r 317f22b96973 tests/scenario_project_invoice_progress.rst
--- a/tests/scenario_project_invoice_progress.rst       Fri Aug 09 16:37:32 
2019 +0200
+++ b/tests/scenario_project_invoice_progress.rst       Sat Sep 07 23:38:20 
2019 +0200
@@ -109,10 +109,6 @@
     >>> TimesheetWork = Model.get('timesheet.work')
     >>> project = ProjectWork()
     >>> project.name = 'Test effort'
-    >>> work = TimesheetWork()
-    >>> work.name = 'Test effort'
-    >>> work.save()
-    >>> project.work = work
     >>> project.type = 'project'
     >>> project.party = customer
     >>> project.project_invoice_method = 'progress'
@@ -120,10 +116,6 @@
     >>> project.effort_duration = datetime.timedelta(hours=1)
     >>> task = ProjectWork()
     >>> task.name = 'Task 1'
-    >>> work = TimesheetWork()
-    >>> work.name = 'Task 1'
-    >>> work.save()
-    >>> task.work = work
     >>> task.type = 'task'
     >>> task.product = product
     >>> task.effort_duration = datetime.timedelta(hours=5)

Reply via email to