Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3901 Представления

Hi ! someone can tell me how to display view from a button having type="object" ? In other words, how to display view from a method ?

Аватар
Отменить
Лучший ответ

Your method should return an action, something like this:

       

return {

'name': _(u"Eventos Eletrônicos"),

'view_mode': 'form',

'view_id': view[1],

'view_type': 'form',

'res_model': 'l10n_br_account.document_event',

'res_id': last_event,

'type': 'ir.actions.act_window',

'nodestroy': True,

'target': 'new',

'domain': '[]',

'context': None

}


Аватар
Отменить
Лучший ответ

Existing Object/Button ?

Аватар
Отменить
Автор Лучший ответ

Danimar Ribeiro : Thank you very much :) so the view it can be not attached to database ? I meant can I display a tree view which contain a list which not a table in database ?

Аватар
Отменить
Автор

Danimar Ribeiro : so the view it can be not attached to database ? I meant can I display a tree view which contain a list which not a table in database ?

Автор

Danimar Ribeiro : Thank you very much :) so the view it can be not attached to database ? I meant can I display a tree view which contain a list which not a table in database ?

Related Posts Ответы Просмотры Активность
3
дек. 23
2500
2
нояб. 20
11492
1
февр. 24
8010
1
апр. 17
3793
0
дек. 15
3240