Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3855 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
zář 21
8768
2
bře 19
8669
5
srp 24
46704
4
kvě 24
7157
2
dub 24
2583