Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2867 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 24
2359
3
ott 19
4550
1
dic 24
3956
0
nov 24
1625
2
lug 24
3327