[fix] can not to_draft
parent
d7866bea0e
commit
6b2e3b3da2
|
@ -980,9 +980,10 @@ class HDCase(Model):
|
|||
'state': state,
|
||||
})
|
||||
# update sickbed
|
||||
obj.sickbed_id.write({
|
||||
'available': False,
|
||||
})
|
||||
if obj.sickbed_id:
|
||||
obj.sickbed_id.write({
|
||||
'available': False,
|
||||
})
|
||||
|
||||
return {
|
||||
'next': {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import time
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from netforce.model import Model, fields, get_model
|
||||
|
|
Loading…
Reference in New Issue