コンテンツへスキップ
メニュー
この質問にフラグが付けられました
質問は終了しました 理由: Question / Code not indented
次により: Benjamin Damour on 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?

                                                                            

アバター
破棄
関連投稿 返信 ビュー 活動
3
5月 20
5353
0
8月 25
126
1
8月 25
283
1
8月 25
682
0
8月 25
418