|
@ -27,15 +27,15 @@ def migrate(cr, version): |
|
|
" SET last_rec_date =" |
|
|
" SET last_rec_date =" |
|
|
" (SELECT date from account_move_line" |
|
|
" (SELECT date from account_move_line" |
|
|
" WHERE reconcile_id = acm.reconcile_id" |
|
|
" WHERE reconcile_id = acm.reconcile_id" |
|
|
" AND reconcile_id IS NOT NULL" |
|
|
|
|
|
" ORDER BY date DESC LIMIT 1)" |
|
|
" ORDER BY date DESC LIMIT 1)" |
|
|
" WHERE last_rec_date is null;") |
|
|
|
|
|
|
|
|
" WHERE last_rec_date IS NULL" |
|
|
|
|
|
" AND reconcile_id IS NOT NULL;") |
|
|
|
|
|
|
|
|
cr.execute("UPDATE account_move_line as acm " |
|
|
cr.execute("UPDATE account_move_line as acm " |
|
|
" SET last_rec_date =" |
|
|
" SET last_rec_date =" |
|
|
" (SELECT date from account_move_line" |
|
|
" (SELECT date from account_move_line" |
|
|
" WHERE reconcile_partial_id" |
|
|
" WHERE reconcile_partial_id" |
|
|
" = acm.reconcile_partial_id" |
|
|
" = acm.reconcile_partial_id" |
|
|
" AND reconcile_partial_id IS NOT NULL" |
|
|
|
|
|
" ORDER BY date DESC LIMIT 1)" |
|
|
" ORDER BY date DESC LIMIT 1)" |
|
|
" WHERE last_rec_date is null;") |
|
|
|
|
|
|
|
|
" WHERE last_rec_date IS NULL" |
|
|
|
|
|
" AND reconcile_partial_id IS NOT NULL;") |