İçereği Atla
Menü
Bu soru işaretlendi
Soru kapatıldı sebep: Question / Code not indented yazan Benjamin Damour tarihi 28-03-2024 12:08:48
896 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
May 20
5352
0
Ağu 25
108
1
Ağu 25
275
1
Ağu 25
679
0
Ağu 25
414