Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3841 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
sep. 21
8751
2
mar. 19
8656
5
aug. 24
46681
4
maj 24
7142
2
apr. 24
2571