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