Skip to Content
Menu
This question has been flagged
1 Reply
4134 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>
Avatar
Discard
Best Answer

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

Avatar
Discard