跳至内容
菜单
此问题已终结

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.                                                                                       

形象
丢弃
相关帖文 回复 查看 活动
1
9月 21
8765
2
3月 19
8665
5
8月 24
46694
4
5月 24
7150
2
4月 24
2578