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

Where can fiend mother file of res.company??

By
Drees Far
on 7/24/15, 5:19 AM 549 views

Good Morning ;)

Friends, i have tried to add some fields in the company menu.

I thought that the original file was under /base/view_company_form so i have tried this:

Python :

class seetek_invoice(osv.osv):

_description = "Company Payroll"

_inherit = 'res.company'

_columns = {

'a':fields.many2one('account.analytic.account', 'Analytic Account'),

'j': fields.many2one('account.journal', 'Salary Journal'),

}

XML:

<record id="view_seetek_company_form" model="ir.ui.view">

<field name="name">res.company.form.inherit</field>

<field name="model">res.company</field>

<field name="inherit_id" ref="base.view_company_form"/>

<field name="arch" type="xml">

<xpath expr="//page[@string='Report Configuration']" position="after">

<notebook position="inside">

<page string="Payroll">

<group name="payroll_grp" position="inside" string="Information Paie">

<field name="a"/>

<field name="j"/> 

</page>

</notebook>

</xpath>

</field>

</record>

But, nothing happened :/

So, who can help please ?!

What do you mean with nothing happened? Did you update your module? By the way give your variables good names! Don't use one character field names.. Sooner or later that will get you in to trouble!

Yenthe
on 7/24/15, 5:38 AM
1
chirag jogi
On 7/24/15, 8:29 AM

Hello,

you can try like this,

it will get solve your problem,

<record id="view_company_and_other_details" model="ir.ui.view">

<field name="name">view.company.and.other.details</field>

<field name="model">res.company</field>

    <field name="type">form</field>

        <field name="inherit_id" ref="base.view_company_form" />

       <field name="arch" type="xml">

           <notebook colspan="4" position="inside">

               <page string="Extra Details">

                  <group>

                        <field name="a" />

                        <field name="j" />

                  </group>

              </page>

           </notebook>

    </field>

</record>

-->upvote answer if you get solved your issue

Thanks for the answer but i have resolved my problem. what if you upvote my answer please:)

Drees Far
on 7/24/15, 8:44 AM

Thanks for the answer but i have resolved my problem. what if you upvote my answer please:)

Drees Far
on 7/24/15, 8:44 AM
2

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 7/24/15, 6:25 AM

Hello,

As you have done inheritance of view need to write only one line either """<xpath expr="//page[@string='Report Configuration']" position="after">""" or """<notebook position="inside">""". Please write your view as like below. It will working good. 

<record id="view_seetek_company_form" model="ir.ui.view">

<field name="name">res.company.form.inherit</field>

<field name="model">res.company</field>

<field name="inherit_id" ref="base.view_company_form"/>

<field name="arch" type="xml">

<notebook position="inside">

<page string="Payroll">

<group name="payroll_grp" position="inside" string="Information Paie">

<field name="a"/>

<field name="j"/>

</page>

</notebook>

</field>

</record>

I am sure that it will help you.

Thanks.

Thanks a lot empiro ;) But you have lost to close the group :/

Drees Far
on 7/24/15, 6:39 AM
0

Drees Far

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
On 7/24/15, 6:38 AM

Here is the answer and it works perfectly :)

<record id="view_seetek_company_form" model="ir.ui.view">

<field name="name">res.company.form.inherit</field>

<field name="model">res.company</field>

<field name="inherit_id" ref="base.view_company_form"/>

<field name="arch" type="xml">

<notebook position="inside">

<page string="Payroll">

<group name="payroll_grp" position="inside" string="Information Paie">

<field name="a"/>

<ield name="j"/>

</group>

</page>

</notebook>

</field>

</record>

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: 7/24/15, 5:19 AM
Seen: 549 times
Last updated: 7/28/15, 9:42 AM