Skip to Content
Menu
This question has been flagged

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.                                                                                       

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 21
7434
2
Mar 19
7437
5
Aug 24
42961
4
May 24
4870
2
Apr 24
948