Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3856 Переглядів

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.                                                                                       

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
вер. 21
8771
2
бер. 19
8671
5
серп. 24
46709
4
трав. 24
7158
2
квіт. 24
2584