Prevent assign unknown attributes on Model
by adding __slots__ on proteus classes. issue6573 review254081002
This commit is contained in:
@@ -109,10 +109,6 @@ Create a Project::
|
||||
>>> 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 @@ Create a Project::
|
||||
>>> 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)
|
||||
|
||||
Reference in New Issue
Block a user