(self, stmts_vals, journal, account_number)
return res
Match partner_id if if hasn't been deducted yet.
Match partner_id if if hasn't been deducted yet.
Match partner_id if if hasn t been deducted yet .
def _complete_stmts_vals(self, stmts_vals, journal, account_number):
        """Match partner_id if if hasn't been deducted yet."""
        res = super()._complete_stmts_vals(stmts_vals, journal, account_number)
        for st_vals in res:
            for line_vals in st_vals["transactions"]:
                if line_vals.get("n43_line"):
                    if not line_vals.get("partner_id"):
                        line_vals["partner_id"] = self._get_n43_partner(
                            line_vals["n43_line"],
                        ).id
                    del line_vals["n43_line"]
                # This can't be used, as Odoo doesn't present the lines
                # that already have a counterpart account as final
                # verification, making this very counter intuitive to the user
                # line_vals['account_id'] = self._get_n43_account(
                #     line_vals['raw_data'], journal).id
        return res
def _complete_stmts_vals ( self , stmts_vals , journal , account_number ) : res = super ( ) . _complete_stmts_vals ( stmts_vals , journal , account_number ) for st_vals in res : for line_vals in st_vals [ "transactions" ] : if line_vals . get ( "n43_line" ) : if not line_vals . get ( "partner_id" ) : line_vals [ "partner_id" ] = self . _get_n43_partner ( line_vals [ "n43_line" ] , ) . id del line_vals [ "n43_line" ] # This can't be used, as Odoo doesn't present the lines # that already have a counterpart account as final # verification, making this very counter intuitive to the user # line_vals['account_id'] = self._get_n43_account( #     line_vals['raw_data'], journal).id return res