Odoo Help

0

ValueError : No such external ID currently defined in the system ?

By
Vikram
on 8/17/13, 4:24 AM 1,933 views

Please help me from Value error. Error is ValueError: No such external ID currently defined in the system: akee_fn_quotation.action_quote_approve_limit_form

     <record id="123_sales_config_quote_change_limit" model="ir.ui.view">
        <field name="name">sale settings</field>
        <field name="model">sale.config.settings</field>
        <field name="inherit_id" ref="base_setup.view_sale_config_settings"/>
        <field name="arch" type="xml">
            <div name="customer feature" position="before">
                <separator string="Quotation Process"/>
                <group>
                    <label for="id" string="Quotation Process"/>
                    <div>
                        <div name="quote_limit">
                            <field name="quote_limit" class="oe_inline" invisible="1"/>
                            <button name="%(action_quote_approve_limit_form)d" string="Change Limit" type="action" icon="gtk-execute" class="oe_highlight"/>
                            <label for="quote_limit"/>
                        </div>
                    </div>
                </group>
            </div>
        </field>
    </record>

     <record id="view_quote_approve_limit_form" model="ir.ui.view">
        <field name="name">sale settings</field>
        <field name="model">quote.approve.limit</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Change Quote Limit">
                <field name="value"/>
                <field name="name"/>
            </form>
        </field>
    </record>


    <record id="view_quote_approve_limit_tree" model="ir.ui.view">
        <field name="name">sale.shop</field>
        <field name="model">quote.approve.limit</field>
        <field name="arch" type="xml">
            <tree string="Change Quote Limit">
                <field name="value"/>
                <field name="name"/>
            </tree>
        </field>
    </record>

    <record id="action_quote_approve_limit_form" model="ir.actions.act_window">
        <field name="name">Shop</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">quote.approve.limit</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="view_quote_limit_tree"/>
        <field name="help" type="html">
          <p class="oe_view_nocontent_create">
            Click to define a new sale shop.
          </p>
        </field>
    </record>
2

Thierry Godin

--Thierry Godin--
1556
| 8 7 8
Collegien, France
--Thierry Godin--

..

Thierry Godin
On 8/17/13, 4:39 AM

Hi,

Write the view (id="action_quote_approve_limit_form") BEFORE the first view (id="123_sales_config_quote_change_limit") for that it can be recognized.

Because you call it but it is declared later.

Regards

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

0 follower(s)

Stats

Asked: 8/17/13, 4:24 AM
Seen: 1933 times
Last updated: 3/16/15, 8:10 AM