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

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}"}




形象
丢弃
编写者 最佳答案

the view 


 mail.activity

    mail.activity

    

    

        

            




形象
丢弃
相关帖文 回复 查看 活动
1
1月 22
2599
0
6月 21
3066
0
10月 15
3787
3
8月 15
7891
3
2月 24
5038