cash_activity_ids = fields.One2many(
string="Cash Activities",
comodel_name='loan.activity',
inverse_name='loan_id',
domain=[('mode', '=', 'cash'), ('state', '=', 'applied')],
# ^ should be loan.activity.mode, but the current model instead
readonly=True
)