diff --git a/netforce_clinic/migrations/repost_invoice.py b/netforce_clinic/migrations/repost_invoice.py index 90891e8..94fd6d9 100644 --- a/netforce_clinic/migrations/repost_invoice.py +++ b/netforce_clinic/migrations/repost_invoice.py @@ -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,