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

when adding a button to mail.mail_activity_view_form_popup popup related to some custom functionality when clicking the new button it triggers the schedule button in the popup while stoping the custom button functionality

here is an example of me trying to open a new wizard

class CustomMailActivity(models.Model):
    _inherit = 'mail.activity'
    def inspection_visit_call(self):
        self.env['res.partner'].search([('id', '=', self.res_id)]).open_custom_edit_form()
 class inspection(models.Model):
    _inherit = 'res.partner'
    ...
    def open_custom_edit_form(self):
        return {
            'name': 'Purchase Order',
            'type': 'ir.actions.act_window',
            'res_model': 'purchase.order',
            'view_mode': 'tree,form',
            'target': 'current',
            'context': "{'create': False}"}




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

the view 


 mail.activity

    mail.activity

    

    

        

            




Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 22
2548
0
thg 6 21
3023
0
thg 10 15
3747
3
thg 8 15
7870
3
thg 2 24
4956