Skip to content

Commit

Permalink
[16.0][IMP] account_statement_import_online_ponto: retrieve partner
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe authored and NL66278 committed Sep 29, 2023
1 parent a9cee6e commit d00405d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ def _ponto_store_lines(self, lines):
# 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."""
Expand Down

0 comments on commit d00405d

Please sign in to comment.