تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
3770 أدوات العرض

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 ?

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
ديسمبر 23
2412
2
نوفمبر 20
11420
1
فبراير 24
7938
1
أبريل 17
3670
0
ديسمبر 15
3194