|
|
@ -28,7 +28,8 @@ def migrate(cr, version): |
|
|
|
" (SELECT date from account_move_line" |
|
|
|
" WHERE reconcile_id = acm.reconcile_id" |
|
|
|
" ORDER BY date DESC LIMIT 1)" |
|
|
|
" WHERE last_rec_date IS NULL AND reconcile_id IS NOT NULL;") |
|
|
|
" WHERE last_rec_date IS NULL" |
|
|
|
" AND reconcile_id IS NOT NULL;") |
|
|
|
|
|
|
|
cr.execute("UPDATE account_move_line as acm " |
|
|
|
" SET last_rec_date =" |
|
|
@ -36,4 +37,5 @@ def migrate(cr, version): |
|
|
|
" WHERE reconcile_partial_id" |
|
|
|
" = acm.reconcile_partial_id" |
|
|
|
" ORDER BY date DESC LIMIT 1)" |
|
|
|
" WHERE last_rec_date IS NULL AND reconcile_partial_id IS NOT NULL;") |
|
|
|
" WHERE last_rec_date IS NULL" |
|
|
|
" AND reconcile_partial_id IS NOT NULL;") |