Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3079 Visualizzazioni

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
Abbandona
Autore Risposta migliore

the view 


 mail.activity

    mail.activity

    

    

        

            




Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 22
2905
0
giu 21
3383
0
ott 15
3998
3
ago 15
8103
3
feb 24
5507