This question has been flagged
1 Reply
3377 Views

I need a changes to Opportunities form the second tab Leads was change as other name like Job how can i do it. i already inherit the module and do some changes but not working help me. here is my code.

<record model="ir.ui.view" id="crm_case_form_view_oppor">
            <field name="name">Opportunities</field>
            <field name="model">crm.lead</field>
            <field name="priority">20</field>
            <field name="arch" type="xml">
                <xpath expr="/form/sheet/notebook" position="replace">
                    <page string="JOB Details"/>
                </xpath>
            </field>
        </record>
Avatar
Discard
Best Answer

The good code will be :

<record model="ir.ui.view" id="crm_case_form_view_oppor_inherit">
  <field name="name">Opportunities.inherit</field>
  <field name="model">crm.lead</field>
  <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  <field name="priority">20</field>
   <field name="arch" type="xml">
     <xpath expr="//page[@string='Lead']" position="replace">
       <page string="JOB Details"></page>
     </xpath>
   </field>
</record>

But i've a question : you need to change the name of the page or you don't want the "Lead" page and want to put your own page ?

Avatar
Discard