'depends': ['base', 'base_attachment'],
attachment_ids = fields.One2many( comodel_name='max.base.multi.attachment', inverse_name='owner_id', string='Attachments', domain=lambda self: [('owner_model', '=', self._name), ('owner_field', '=', 'attachment_ids')], copy=True)
< field name="attachment_ids" context="{'default_owner_model': 'your.model.name', 'default_owner_id': id, 'default_owner_field': 'attachment_ids',}"/>