跳至内容
菜单
此问题已终结
1 回复
2865 查看

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"


形象
丢弃
相关帖文 回复 查看 活动
1
6月 24
2356
3
10月 19
4540
1
12月 24
3943
0
11月 24
1616
2
7月 24
3322