Since, the content of my form is small and the default width of the modal is always set to 'modal-lg', i wanna know if there is a way that i can set a button call to use 'modal-md' to perfectly fit the content of the form?
I like to do it in this button call.
<button class="btn btn-md btn-secondary" name="add_teacher_comment" type="object" attrs="{'invisible':[('id', '=', False)]}">Add</button>
@api.multi
def add_teacher_comment(self):
return {
'type': 'ir.actions.act_window',
'name': _('Add Teacher Comment'),
'res_model': 'teacher.comment',
'target': 'new',
'views': [[False, 'form']],
'nodestroy' : True,
}
Any input please?