Odoo Help

0
3 Answers
0
Avatar

Mitul Shingala

--Mitul Shingala--

1573
| 5 2 7
Rajkot, India
--Mitul Shingala--

Odoo Developer

Mitul Shingala
10/26/18, 2:46 AM

hello,

try to inherit with particular model view like

here i inherit the general ledger report. so i need to pass the model name which i need to inherit.

 <record id="account_common_report_view" model="ir.ui.view">      
  <field name="name">Common Report</field>     
  <field name="model">account.report.general.ledger</field> 
<field name="inherit_id" ref="account.account_common_report_view" /> 
  <field name="arch" type="xml">   
<xpath expr="//footer" position="inside"> 
<button name="export_to_xls" string="Export to .xls" type="object" class="oe_link"/>     
          </xpath>     
      </field> 
  </record>
0
Kinah Guinto
10/26/18, 2:06 AM

The button does not still displayed.

0
Avatar

Jignesh Mehta

--Jignesh Mehta--
3442
| 6 5 8
Surat, India
--Jignesh Mehta--

- I have 3+ years of Industry Experience, specializing Odoo Development, Analysis, Customization, Implementation, Integration.
- I have done many Customization modules in Sale, Purchase, Point of Sale, Inventory, CRM and much more. Also Worked in the Odoo Themes like Business Theme or E-Commerce Theme.
- Develop Jewelery Manufacturing process from Scratch. It have more than 10 Department. Develop PDF and Excel reports for this project around 150 per format.

Jignesh Mehta
10/26/18, 12:00 AM

Hello Kinah Guinto,

Try below code.

<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <!-- Inherit Account Common Form View -->
    <record id="account_common_report_form_view_inherit" model="ir.ui.view">
        <field name="name">account.common.report.form.view.inherit</field>
        <field name="model">account.common.report</field>
        <field name="inherit_id" ref="account.account_common_report_view"/>
        <field name="arch" type="xml">
            <xpath expr="//form/footer/button[@name='check_report']" position="after">
                <button name="export_to_xls" string="Export to .xls" type="object" class="oe_highlight"/>
                or
            </xpath>
        </field>
    </record>

</odoo>


Hope it will works for you.

Thanks,

Ask a Question
Writer
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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now