Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2918 Переглядів

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

    

    

        

            




Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 22
2546
0
черв. 21
3013
0
жовт. 15
3746
3
серп. 15
7869
3
лют. 24
4950