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!