跳至內容
選單
此問題已被標幟
問題已關閉 原因: Question / Code not indented
Benjamin Damour2024年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?

                                                                            

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
5月 20
5341
0
8月 25
4
1
8月 25
247
1
8月 25
678
0
8月 25
409