Skip to Content
Menu
This question has been flagged
The question has been closed priežastis: Question / Code not indented
by Benjamin Damour nuo 2024-03-28 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?

                                                                            

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
geg. 20
5354
0
rugp. 25
128
1
rugp. 25
284
1
rugp. 25
684
0
rugp. 25
420