Merge PR #648 into 16.0

Signed-off-by StefanRijnhart
This commit is contained in:
OCA-git-bot
2024-02-26 17:32:03 +00:00

View File

@@ -169,11 +169,9 @@ class OnlineBankStatementProvider(models.Model):
# For each period, create or update statement lines # For each period, create or update statement lines
for period, statement_lines in grouped_periods.items(): for period, statement_lines in grouped_periods.items():
(date_since, date_until) = period (date_since, date_until) = period
statement = self._create_or_update_statement( self._create_or_update_statement(
(statement_lines, {}), date_since, date_until (statement_lines, {}), date_since, date_until
) )
for line in statement.line_ids.filtered(lambda l: not l.partner_id):
line.partner_id = line._retrieve_partner()
def _ponto_get_transaction_vals(self, transaction): def _ponto_get_transaction_vals(self, transaction):
"""Translate information from Ponto to statement line vals.""" """Translate information from Ponto to statement line vals."""