Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Created April 8, 2013 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianjosephwilson/5339867 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/5339867 to your computer and use it in GitHub Desktop.
Disable original sale report.
<record model="ir.action.report" id="sale.report_sale">
<field name="active" eval="False"/>
</record>
<record model="ir.action.report" id="report_sale_new">
<field name="name">Sale</field>
<field name="report_name">sale.sale</field>
<field name="model">sale.sale</field>
<field name="report">laspilitas/sale.odt</field>
<field name="style">company/header_A4.odt</field>
</record>
<record model="ir.action.keyword" id="report_sale_keyword_new">
<field name="keyword">form_print</field>
<field name="model">sale.sale,-1</field>
<field name="action" ref="report_sale_new"/>
</record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment