Skip to content

Commit

Permalink
[OU-FIX] Crea de más registros
Browse files Browse the repository at this point in the history
  • Loading branch information
zamberjo authored and docker-odoo committed Sep 19, 2024
1 parent 9045a98 commit 18f8d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_payment_order/migrations/14.0.2.0.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _insert_account_payments(env):
FROM bank_payment_line bpl
JOIN account_payment_order apo ON apo.id = bpl.order_id
JOIN account_payment_mode apm ON apm.id = apo.payment_mode_id
LEFT JOIN account_move_line aml ON aml.bank_payment_line_id = bpl.id
JOIN account_move_line aml ON aml.bank_payment_line_id = bpl.id
WHERE apo.state not in ('uploaded', 'done') or aml.move_id is not null
""",
)
Expand Down Expand Up @@ -87,7 +87,7 @@ def create_moves_from_orphan_account_payments(env):
JOIN account_payment ap ON ap.old_bank_payment_line_id = bpl.id
JOIN account_payment_order apo ON apo.id = bpl.order_id
JOIN account_payment_line apl ON apl.bank_line_id = bpl.id
LEFT JOIN account_move_line aml ON aml.bank_payment_line_id = bpl.id
JOIN account_move_line aml ON aml.bank_payment_line_id = bpl.id
WHERE aml.move_id IS NULL
GROUP BY ap.id
"""
Expand Down

0 comments on commit 18f8d48

Please sign in to comment.