0
私はodoo 8.0を使用しており、私は資産リストのレポートを作成しています。これまでのところ私は、資産リストレポートを作成しました:
レポートをODOO 8の.pdf、.xls、または.csv形式でエクスポートする機能を備えたボタンを追加するにはどうすればよいですか?
私はどちらか.pdf
、.xls
または.csv
形式としてレポートをエクスポートする機能を持つボタンを追加するにはどうすればよいですか?
ここには、レポートビュー用のスニペットコードがあります。その後
<record model="ir.actions.act_window" id="action_fleet_reporting_asset_listing">
<field name="name">Asset Listing</field>
<field name="res_model">fleet.asset</field>
<field name="view_id" ref="fleet_asset_listing_report"></field>
<field name="view_type">tree</field>
<field name="view_mode">tree</field>
<field name="context">{"search_default_parent_false" : True,}</field>
<field name="help" type="html">
<p>
Odoo helps you managing the costs for your different vehicles
Costs are generally created from services and contract and appears here.
</p>
<p>
Thanks to the different filters, Odoo can only print the effective
costs, sort them by type and by vehicle.
</p>
</field>
</record>