Odoo Help

Welcome!

This community 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.

0

ValueError The class wiz_export has to have a _name attribute

By
babu
on 5/22/14, 7:16 AM 609 views

In esale_joomla module in openerp 5,I change some code in that file for need to install in openerp 7 from wizard folder py files it is showing errors.

Please any one help me.

 

class wiz_export(osv.osv_memory):
    states = {
        'init': {
            'actions': [_export_setup],
            'result': {
                'type': 'form',
                'arch': _export_select_form,
                'fields': _export_select_fields,
                'state': [('export', 'Export', 'gtk-execute'), ('end', 'Cancel', 'gtk-cancel')],
            },
        },
        'export': {
            'actions': [_export_from_shop],
            'result': {
                'type': 'form',
                'arch': _export_done_form,
                'fields': _export_done_fields,
                'state': [('end', 'End')],
            },
        },
    }

wiz_export()

0
Jos De Graeve
On 5/22/14, 7:23 AM

Hi,

You are using the wrong API.  The wizard API has changed since version 6.1.  You will need to rewrite the wizard with the current API.

 

Regards,

Jos

0
babu
On 5/22/14, 7:28 AM

Hi Jos De Graeve

Where I can get that API, can you please provide any link.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/22/14, 7:16 AM
Seen: 609 times
Last updated: 3/16/15, 8:10 AM