Odoo Help

1

1
3 Answers
1
Avatar

Borni DHIFI

--Borni DHIFI--
5525
| 7 9 11
Tunis, Tunísia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
18/06/13 19:54

Hi,

use xpath expr :

 <xpath expr="//field[@name='company_id']" position="after" >
           <field name="department_id"/>
  </xpath>
3 Comments
Carlos Llamacho
19/06/13 00:16

Somebody commented me that xpath expressions are outdated. Is this true? Also, what is the logic of a xpath expr, i don

Carlos Llamacho
25/06/13 16:48

Thanks. :D

2
Avatar

ClueLogics Technologies Pvt. Ltd.

--ClueLogics Technologies Pvt. Ltd.--
6213
| 7 5 10
Delhi NCR, Índia
--ClueLogics Technologies Pvt. Ltd.--

 ClueLogics Technologies Pvt Ltd is a Software product and services provider. We are positioned to deliver robust, rapid and reliable Information Technology solutions that work. What we succeed upon is Technology and Technical Expertise. The industry review of ClueLogics has been commendable for the past years as most of its business comes from repeat orders by highly satisfied clients.

ClueLogics Technologies Pvt. Ltd.
19/06/13 03:45

Hi

try this without form field.

                   <record model="ir.ui.view" id="stock_location_department_view">
                  <field name="name">stock.location.form</field>
                   <field name="model">stock.location</field>
                 <field name="inherit_id" ref="stock.view_location_form" />
                 <field name="arch" type="xml">
                 <field name="company_id" position="after">
                     <field name="department_id"/>
                     </field>
               </field>

Thanks
Sandeep

0
Pravitha
19/06/13 03:30

Try this cde: It is inherit_id

<record model="ir.ui.view" id="stock_location_department_view">
<field name="name">stock.location.form</field>
<field name="model">stock.location</field>
<field name="inherit_id" ref="stock.view_location_form" />
<field name="type">form</field>
<field name="arch" type="xml">
    <field name="company_id" position="after">
        <field name="department_id"/>
    </field>
</field>

</record>

2 Comments
Carlos Llamacho
21/06/13 11:40

Yes, this was my mistake. Thank you very much.

Pravitha
24/06/13 01:49

you are welcome

Ask a Question
Keep Informed
0 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now