跳至內容
選單
此問題已被標幟

Is it possible to open a wizard after I save a new contact in res.partner?

My code is not working, any help?


@api.multi @api.constrains('unique_contacts') def check_unique_contacts(self): view_id = self.env.ref('unique_partner.test_form').id return { 'name': 'Warning Message', 'context': self.env.context, 'view_type': 'form', 'view_mode': 'form', 'view_id': view_id, 'res_model': 'res.partner', 'type': 'ir.action.act_window', 'target': 'new',

}

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 23
1607
1
6月 23
4001
8
4月 23
18339
1
6月 22
5835
1
11月 18
7051