fix_acc
watcha.h@almacom.co.th 2015-08-27 08:03:34 +07:00
parent 38fad33d43
commit 96b089ec8a
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ class Migration(migration.Migration):
for seq in get_model("sequence").search_browse([['type','in',['cust_invoice','clinic_invoice_noclaim']]]):
for run in seq.running:
run.delete()
for hdcase in get_model('clinic.hd.case').browse(ids):
dom2=[
['date','>=','2015-07-01'],
['state','=','waiting_payment'],
]
#for hdcase in get_model('clinic.hd.case').browse(ids):
for hdcase in get_model('clinic.hd.case').search_browse(dom2):
print('remake_invoice ---> ', hdcase.number)
ctx={
'is_migrate': True,