Odoo Help

3

2
2 Answers
10
Avatar

Openies Services India

--Openies Services--
925
| 2 2 6
Vadodara, India
--Openies Services--

We provide Odoo Services.

Contact us on : contact@openies.com

Openies Services India
2/14/14, 5:33 PM

If you wanted to call a wizard from button you need to write a button like

<button name='%(module_name.window_action)d' type='action' string='Button'/>

and if you have wrote a method in py file then you need to return action like

def your_method(self, cr, uid, ids, context=None):
    .....
    your code
    .....
    return {
       'name': 'Wizard name'
       'type': 'ir.actions.act_window',
       'res_model': 'wizard_model',
       'view_mode': 'form',
       'view_type': 'form',
       'target': 'new',
       'context': context,
    }

In return "target: new" will popup a wizard. This will help you to call a wizard from another module.

1 Comment
Francisco Castro Portugal
2/18/14, 7:33 AM

I did that but I have an error

raise NotImplementedError('Many2Many columns should not be used as record name (_rec_name)') NotImplementedError: Many2Many columns should not be used as record name (_rec_name)

0
Francisco Castro Portugal
2/17/14, 7:14 AM

I did that but I have an error

raise NotImplementedError('Many2Many columns should not be used as record name (_rec_name)') NotImplementedError: Many2Many columns should not be used as record name (_rec_name)
What's Happen?

3 Comments
Openies Services India
2/19/14, 2:52 AM

I suppose you have defined many2many field and in that you are giving columns as name field of model, change it by suffix "id" it will work. for eg. model_id.

Openies Services India
2/19/14, 2:57 AM

I suppose you have defined many2many field and in that you are giving columns as name field of model, change it by suffix "id" it will work. for eg. model_id.

Francisco Castro Portugal
2/19/14, 5:50 AM

thanks it works now

Ask a Question
Tags
Keep Informed
1 follower(s)
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