Odoo Help

0

why does my created wizard does not work? do i need to import something?

By
Alcaline
on 8/17/14, 11:10 PM 524 views

This is my error, any help please

ERROR

    raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id))

    ValueError: No such external ID currently defined in the system: purchase_rentals.action_extend_rent

Here my code:

        (extend_rental_view.xml)

                .

                .

                .

<record id="action_extend_rent" model="ir.actions.act_window">

<field name="name">Extend Rental</field>

<field name="type">ir.action.act_window</field>

<field name="res_model">extend.rental</field>

<field name="view_type">form</field>

<field name="view_mode">form</field>

<field name="view_id" ref="extend_rent_form"/>

<field name="target">new</field>

</record>

<act_window id="action_extend_rent"

                name="Extend Rental"

                res_model="extend.rental"

                view_mode="form"

                target="new"/>

                .

                .

                .

 

(__init__.py)

.

.

.

import wizard

(__openerp__.py)

.

.

.

'data' : [

              'rental_view.xml',

              'purchase_view.xml',

              'wizard/extend_rental_view.xml'

              ],

.

.

.

 

(rental_view.xml)

.

.

.

<button name="%(action_extend_rent)d" string="Extend Rental" type="action" states="manual" class="oe_highlight"/>

.

.

.

Hi, just a comment. I think you are duplicating the definition of 'action_extend_rent' in 'extend_rental_view.xml'. The tag " ..."

Lucio
on 8/22/14, 11:11 AM
1

Hi,

Just change the sequence of the DATA into __openerp__.py as like below.

'data' : [

             'wizard/extend_rental_view.xml',

              'rental_view.xml',

              'purchase_view.xml',

              ],

Your error will be resolved.

Hi, If this is the solution then accept this as an answer by clicking on the right mark.

Emipro Technologies Pvt. Ltd.
on 8/23/14, 12:57 AM

thanks for help Chirag.

Alcaline
on 8/29/14, 9:16 PM

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: 8/17/14, 11:10 PM
Seen: 524 times
Last updated: 3/16/15, 8:10 AM