Skip to Content
Menu
This question has been flagged
The question has been closed for reason: Question / Code not indented
by Benjamin Damour on 03/28/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
Discard
Related Posts Replies Views Activity
3
May 20
5172
0
Jul 25
16
1
Jul 25
260
1
Jul 25
889
0
May 25
755