xxx
parent
6177a247ad
commit
b9a546e4ca
|
@ -18,9 +18,9 @@ class Migration(migration.Migration):
|
||||||
]
|
]
|
||||||
for hdcase in get_model("clinic.hd.case").search_browse(dom):
|
for hdcase in get_model("clinic.hd.case").search_browse(dom):
|
||||||
nums=hdcase.number.split("-")
|
nums=hdcase.number.split("-")
|
||||||
if len(nums)==3 and len(nums[2])==6:
|
if len(nums)==3 and len(nums[1])==4:
|
||||||
run=nums[2]
|
run=nums[1]
|
||||||
number='-'.join([nums[0],nums[1]+run[0:2],run[2:]])
|
number='-'.join([nums[0],run[0:2],run[2:],nums[2]])
|
||||||
print('XXX', hdcase.number, ' --> ', number)
|
print('XXX', hdcase.number, ' --> ', number)
|
||||||
hdcase.write({
|
hdcase.write({
|
||||||
'number': number,
|
'number': number,
|
||||||
|
|
Loading…
Reference in New Issue