Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
731b56b
commit e9469e4
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
# -*- coding: utf-8 -*- | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record id="sale.report_sale_order" model="ir.actions.report.xml"> | ||
<!-- | ||
<record id="local_py3o_server" model="py3o.server"> | ||
<field name="url">http://localhost:8765/form</field> | ||
</record> | ||
--> | ||
|
||
<record id="sale.action_report_saleorder" model="ir.actions.report"> | ||
<field name="report_type">py3o</field> | ||
<field name="py3o_filetype">odt</field> | ||
<field name="module">sale_report_py3o</field> | ||
<field name="py3o_template_fallback">sale_order.odt</field> | ||
<!-- | ||
<field name="py3o_server_id" ref="local_py3o_server"/> | ||
<field name="py3o_filetype">pdf</field> | ||
<field name="print_report_name">object.name + '-' + object.date_order[:10] + '-' + object.commercial_partner_id.name.replace(' ', '_') + '.pdf'</field> | ||
--> | ||
</record> | ||
|
||
<record id="sale.action_report_pro_forma_invoice" model="ir.actions.report"> | ||
<field name="report_type">py3o</field> | ||
<field name="py3o_filetype">odt</field> | ||
<field name="module">sale_report_py3o</field> | ||
<field name="py3o_template_fallback">sale_order.odt</field> | ||
<!-- | ||
<field name="py3o_server_id" ref="local_py3o_server"/> | ||
<field name="py3o_filetype">pdf</field> | ||
<field name="print_report_name">'Proforma-' + object.name + '-' + object.commercial_partner_id.name.replace(' ', '_') + '.pdf'</field> | ||
--> | ||
</record> | ||
|
||
|
||
</odoo> |
Binary file not shown.