Skip to Content
Menú
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
Descartar
Related Posts Respostes Vistes Activitat
1
de set. 21
8738
2
de març 19
8647
5
d’ag. 24
46671
4
de maig 24
7135
2
d’abr. 24
2565