Skip to Content
Menú
This question has been flagged
1 Respondre
2910 Vistes

error:

UncaughtPromiseError > TypeError

Uncaught Promise > originalError is undefined



python code:

def mark_function(self):
view_id = self.env.ref('records.view_form_mark_record').id
context = self._context.copy()
return {
'name': 'form_name',
'type': 'ir.actions.act_window',
'res_model': 'record.mark',
'domain': [('student_name', '=', self.id)],
'view_type': 'form',
'view_mode': 'tree',
'views': [(view_id, 'form')],
'view_id': view_id,
'res_id': self.id,
'target': 'new',
'context': context,
}

xml code:

 button name="mark_function" string="View marks" type="object"  class="oe_highlight"


Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 24
2397
3
d’oct. 19
4583
1
de des. 24
4064
0
de nov. 24
1667
2
de jul. 24
3403