mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[16.0][IMP] account_statement_import_online_ponto: retrieve partner
This commit is contained in:
committed by
Ronald Portier (Therp BV)
parent
ed9bc2acf8
commit
bda63158b4
@@ -161,9 +161,11 @@ class OnlineBankStatementProvider(models.Model):
|
||||
# For each period, create or update statement lines
|
||||
for period, statement_lines in grouped_periods.items():
|
||||
(date_since, date_until) = period
|
||||
self._create_or_update_statement(
|
||||
statement = self._create_or_update_statement(
|
||||
(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):
|
||||
"""Translate information from Ponto to statement line vals."""
|
||||
|
||||
Reference in New Issue
Block a user