Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3839 Lượt xem

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.                                                                                       

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 21
8751
2
thg 3 19
8656
5
thg 8 24
46681
4
thg 5 24
7142
2
thg 4 24
2570