Skip to content

Commit

Permalink
Merge pull request #1297 from dhongu/15.0-fix-test
Browse files Browse the repository at this point in the history
[15.0][FIX] fix test prin  adaugare skip_account_move_synchronization
  • Loading branch information
dhongu authored Feb 28, 2024
2 parents 332c14d + 912d505 commit 159db9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deltatech_expenses/models/deltatech_expenses_deduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def validate_expenses(self):

for payment in payments:
for payment_line in payment.move_id.line_ids:
payment_line = payment_line.with_context(skip_account_move_synchronization=True)
if payment_line.account_id == self.company_id.account_journal_payment_credit_account_id:
# (
# payment.journal_id.default_account_id,
Expand All @@ -349,7 +350,7 @@ def validate_expenses(self):
if aml.account_id.internal_type == "payable":
move_lines |= aml

move_lines.reconcile()
move_lines.with_context(skip_account_move_synchronization=True).reconcile()

# change state for vouchers without residual. If not in statement, remains "in_payment"
vouchers.set_paid()
Expand Down

0 comments on commit 159db9f

Please sign in to comment.