Skip to Content
Menu
This question has been flagged
3860 Rodiniai

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.                                                                                       

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 21
8777
2
kov. 19
8681
5
rugp. 24
46723
4
geg. 24
7173
2
bal. 24
2589