Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2927 Weergaven

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




Avatar
Annuleer
Auteur Beste antwoord

the view 


 mail.activity

    mail.activity

    

    

        

            




Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 22
2550
0
jun. 21
3027
0
okt. 15
3753
3
aug. 15
7870
3
feb. 24
4958