Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2912 Lượt xem

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"


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

The following blog may help you.

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

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 24
2397
3
thg 10 19
4590
1
thg 12 24
4069
0
thg 11 24
1669
2
thg 7 24
3404