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