Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2881 Vizualizări

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"


Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

The following blog may help you.

https://www.cybrosys.com/blog/how-to-create-manage-wizard-in-the-odoo-15

Regards

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 24
2363
3
oct. 19
4562
1
dec. 24
3988
0
nov. 24
1627
2
iul. 24
3343