Ir al contenido
Menú
Se marcó esta pregunta
La pregunta está bloqueada por motivo: Question / Code not indented
por Benjamin Damour en 28/03/2024 12:08:48

the action:

def action_view_company(self):        

                                 for record in self:           

                                                                i = record.id         

                                                                  i = i           

                                                                     return  {  'type': 'ir.actions.act_window',                                                                                           'name': 'view company',                                                                                                          'res_model': 'res.partner',                                                                                             'view_id': 'company_view',                                                                                                     'view_type': 'form',                                                                                                             "view_mode": 'form',                                                                                                          'res_id': i                                                                                                                      }       

the error:

ValueError: Expected singleton: ir.ui.view('c', 'o', 'm', 'p', 'a', 'n', 'y', '_', 'v', 'i', 'e', 'w')

how can I solve this?

                                                                            

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
may 20
5333
1
ago 25
216
1
ago 25
673
0
ago 25
406
0
jul 25
1566