Skip to Content
Menu
This question has been flagged
The question has been closed z dôvodu: Question / Code not indented pomocou Benjamin Damour na 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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
máj 20
5337
1
aug 25
242
1
aug 25
676
0
aug 25
409
0
júl 25
1612