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

How to edit xml view of <<New State add dialog>> Customers/ state field / create and edit..

By
Karolin Ar.
on 11/1/14, 5:00 AM 630 views

The dialog is accessible from 'Customers/ state field / create and edit...

It shows 3 fields. What's the name of this xml file and how can i access it?

Kindly help please

Karolin Ar.
on 11/1/14, 8:43 AM
0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 11/3/14, 6:15 AM

In Customer window, the field 'state_id' depicts State and 'country_id' as Country. And these fields corresponds to objects 'res.country.state' and 'res.country' that are defined in BASE module.

        <record id="view_country_state_tree" model="ir.ui.view">
            <field name="name">res.country.state.tree</field>
            <field name="model">res.country.state</field>
            <field name="arch" type="xml">
                <tree string="State">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="country_id"/>
                </tree>
            </field>
        </record>

        <record id="view_country_state_form" model="ir.ui.view">
            <field name="name">res.country.state.form</field>
            <field name="model">res.country.state</field>
            <field name="arch" type="xml">
                <form string="State" version="7.0">
                    <group>
                        <field name="name"/>
                        <field name="code"/>
                        <field name="country_id" options='{"no_open": True}'/>
                    </group>
                </form>
            </field>
        </record>

To make changes in Web-interface:
       - Enable Technical settings in user window.
       - Go to Settings --> Technical --> User Interface --> Views and search for your respective form name

Thank you.

Karolin Ar.
on 11/5/14, 2:46 AM

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: 11/1/14, 5:00 AM
Seen: 630 times
Last updated: 3/16/15, 8:10 AM