'Hook for extension'

def get_payment_vals(self):

    return {'journal_id': self.journal_id.id, 'payment_method_id': self.payment_method_id.id, 'payment_date': self.payment_date, 'communication': self.communication, 'invoice_ids': [(4, inv.id, None) for inv in self._get_invoices()], 'payment_type': self.payment_type, 'amount': self.amount, 'currency_id': self.currency_id.id, 'partner_id': self.partner_id.id, 'partner_type': self.partner_type}
