View of wizard

Asked by Laurent Urbain (Realdolmen)

Hi,

I have add a wizard for the stock.picking object

I see my wizard in the incoming product, outgoing products and delivery orders views

But I want see my wizard only in the delivery order's view

How can I do that?

Sorry for my bad english :s

Thanks

Laurent

Question information

Language:
English Edit question
Status:
Answered
For:
OpenERP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello Laurent,

You can do this by override 'fields_view_get' method by following way in specific object class:

    def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False):
        result = super(osv.osv, self).fields_view_get(cr, uid, view_id,view_type,context,toolbar=toolbar)
        print "result>>>",result
        return result

In result dictionary you need to change.check 'toolbar' key in result dictionary.

Hope this will help you.

Thanks.

Revision history for this message
Laurent Urbain (Realdolmen) (laurent-urbain) said :
#2

Thanks for your answer,

I would look about the fields_view_get method

Laurent

Can you help with this problem?

Provide an answer of your own, or ask Laurent Urbain (Realdolmen) for more information if necessary.

To post a message you must log in.