Skip to content

Commit

Permalink
[FIX] account_factoring_receivable_balance_factofrance: remove item_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed Jul 16, 2024
1 parent 24a95cb commit 82e5000
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class SubrogationReceipt(models.Model):
]
)

@api.onchange("file_type")
def onchange_file_type(self):
self.line_ids = self.item_ids = [(6, 0, [])]

@api.model
def _get_domain_for_factor(self):
domain = super()._get_domain_for_factor()

Check warning on line 31 in account_factoring_receivable_balance_factofrance/models/subrogation_receipt.py

View check run for this annotation

Codecov / codecov/patch

account_factoring_receivable_balance_factofrance/models/subrogation_receipt.py#L31

Added line #L31 was not covered by tests
Expand Down Expand Up @@ -198,7 +194,7 @@ def _prepare_factofrance_body(self):
"total_amount_of_payments": 0.00,
"balance": 0.00,
}
for line in self.item_ids:
for line in self.line_ids:
move = line.move_id
partner = line.move_id.partner_id.commercial_partner_id

Check warning on line 199 in account_factoring_receivable_balance_factofrance/models/subrogation_receipt.py

View check run for this annotation

Codecov / codecov/patch

account_factoring_receivable_balance_factofrance/models/subrogation_receipt.py#L198-L199

Added lines #L198 - L199 were not covered by tests
if not partner:
Expand Down

0 comments on commit 82e5000

Please sign in to comment.