Hi,
I can successfully open a tree view from a python function but than the 'Create' button is no longer working. I tried to modify 'view_mode' and 'view_type' but nothing changed.
tree_view = self.env.ref('varchi.varchi_badge_stamp_view_tree')return {'name': _('Timbrature'),'type': 'ir.actions.act_window','target': 'main','view_mode': 'tree','view_id': tree_view.id,'res_model': 'varchi.badge_stamp','domain': f"['&', ['hr_attendance_id', '!=', False], ['hr_attendance_id.attendance_day_id.id', '=', {self.id}]]"}