[fix] can not to_draft
parent
d7866bea0e
commit
6b2e3b3da2
|
@ -980,9 +980,10 @@ class HDCase(Model):
|
||||||
'state': state,
|
'state': state,
|
||||||
})
|
})
|
||||||
# update sickbed
|
# update sickbed
|
||||||
obj.sickbed_id.write({
|
if obj.sickbed_id:
|
||||||
'available': False,
|
obj.sickbed_id.write({
|
||||||
})
|
'available': False,
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'next': {
|
'next': {
|
||||||
|
|
|
@ -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