Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3867 มุมมอง

Hello everyone,

I have into module as type 'ir.actions.act_window'. Behind my Python code, i want to edit that view with following code:

def action_to_do(self):

  action = self.env.ref('model.view_name').read()[0]

  action['field_name_ids'] =  [(0, 0, name_list_ids)] # name_list_ids = One2many()

  return action 


Helps.                                                                                       

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Fields from another model แก้ไขแล้ว
1
ก.ย. 21
8792
2
มี.ค. 19
8689
Select multiple elements with XPath แก้ไขแล้ว
5
ส.ค. 24
46763
4
พ.ค. 24
7184
2
เม.ย. 24
2597