Odoo Help

0

Display view from a button having type="object"

By
Salma
on 3/7/16, 8:55 AM 637 views

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 ?

1
Danimar Ribeiro
On 3/7/16, 9:11 AM

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

}


0
Dr Obx
On 3/7/16, 9:10 AM

Existing Object/Button ?

0
Salma
On 3/7/16, 9:15 AM

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 ?

Salma
on 3/7/16, 9:17 AM

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 ?

Salma
on 3/7/16, 9:17 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/7/16, 8:55 AM
Seen: 637 times
Last updated: 3/7/16, 9:36 AM