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

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

By
Alcaline
on 8/17/14, 11:10 PM 386 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

Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
Tiny ERP Pvt Ltd
http://www.odoo.com
5975
| 6 7 8
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. A ray of relief & satisfaction to  our customers heart by our successful deployment in their organization, purely represents our success in Odoo platform. Hence, we take pride for being an Odoo partner with a vision of expanding our strategic alliances with our customers to offer them high value-added, trustworthy & cost effective solutions.

 

Since establishment, our business has span across 11 countries of the world. Our customers are companies of all sizes ranging from start-ups to large enterprises, who realize that they need a professional business solutions to generate revenue streams, establish proper communication channels or streamline business operations. Standing with strong determination of customer satisfaction, observing each minute detail of their business processes, providing proper guidance and moving forth to develop product accordingly adds our value and reliability among our customers. 

 

We are blessed with efficient, passionate & eclectic young developers who have come across almost all kinds of business profiles, working with full dedication, applying creativity & new features in existing modules and completing customer's projects successfully on predefined target. Our in-depth knowledge while giving business solutions in Odoo allows us to offer following services to our customers :

 

  • Consulting
  • Installation, Configuration & Customization
  • Training & Support
  • Maintenance
  • Upgradation
  • Documentation
  • Crafting community modules
  • Drafting videos on demand
  • Smart Apps development

We will be :) to welcome you @ www.emiprotechnologies.com to solve any kind of your business needs around Odoo. However we are just an inch away from you by email info@emiprotechnologies.com or a tweet to @EmiproTech

Emipro Technologies Pvt. Ltd.
On 8/22/14, 9:59 AM

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

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