Skip to content

Commit

Permalink
MIG account_check_deposit_py3o, account_invoice_report_py3o and purch…
Browse files Browse the repository at this point in the history
…ase_report_py3o

Partial port of stock_report_py3o
  • Loading branch information
alexis-via committed Mar 6, 2019
1 parent e9469e4 commit 0bb02c7
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 14 deletions.
1 change: 0 additions & 1 deletion account_check_deposit_py3o/__init__.py
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
7 changes: 3 additions & 4 deletions account_check_deposit_py3o/__manifest__.py
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# Copyright 2016-2019 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Check Deposit Py3o',
'version': '10.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Accounting',
'license': 'AGPL-3',
'summary': 'Sample py3o check deposit report',
Expand All @@ -24,5 +23,5 @@
'account_check_deposit',
],
'data': ['report.xml'],
'installable': False,
'installable': True,
}
Binary file modified account_check_deposit_py3o/check_deposit.odt
Binary file not shown.
2 changes: 1 addition & 1 deletion account_check_deposit_py3o/report.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="account_check_deposit.report_account_check_deposit" model="ir.actions.report.xml">
<record id="account_check_deposit.report_account_check_deposit" model="ir.actions.report">
<field name="report_type">py3o</field>
<field name="py3o_filetype">odt</field>
<field name="module">account_check_deposit_py3o</field>
Expand Down
1 change: 0 additions & 1 deletion account_invoice_report_py3o/__init__.py
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
8 changes: 3 additions & 5 deletions account_invoice_report_py3o/__manifest__.py
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# Copyright 2016-2019 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Invoice Report Py3o',
'version': '10.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Accounting',
'license': 'AGPL-3',
'summary': 'Sample py3o invoice report',
Expand All @@ -20,12 +19,11 @@
'author': 'Akretion',
'depends': [
'report_py3o',
'sale_usability', # required for sale.layout_category
'base_company_extension',
'base_usability', # to have res_partner.name_title
'account_usability', # to have account_invoice.has_discount
'account_payment_partner',
],
'data': ['report.xml'],
'installable': False,
'installable': True,
}
Binary file modified account_invoice_report_py3o/account_invoice.odt
Binary file not shown.
37 changes: 35 additions & 2 deletions account_invoice_report_py3o/report.xml
@@ -1,19 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="account.account_invoices" model="ir.actions.report.xml">
<!--
<record id="py3o_pdf_options_pdfa" model="py3o.pdf.options">
<field name="name">PDF/A (for Factur-X invoices)</field>
<field name="pdfa" eval="True"/>
</record>
<record id="local_py3o_server" model="py3o.server">
<field name="url">http://localhost:8765/form</field>
<field name="pdf_options_id" ref="py3o_pdf_options_pdfa"/>
</record>
-->


<record id="account.account_invoices" model="ir.actions.report">
<field name="report_type">py3o</field>
<field name="py3o_filetype">odt</field>
<field name="module">account_invoice_report_py3o</field>
<field name="py3o_template_fallback">account_invoice.odt</field>
<!--
<field name="py3o_server_id" ref="local_py3o_server"/>
<field name="py3o_filetype">pdf</field>
Nota: by default: print_report_name="(object._get_report_base_filename())
-->
</record>

<record id="account.account_invoice_action_report_duplicate" model="ir.actions.report.xml">
<record id="account.account_invoices_without_payment" model="ir.actions.report">
<field name="report_type">py3o</field>
<field name="py3o_filetype">odt</field>
<field name="module">account_invoice_report_py3o</field>
<field name="py3o_template_fallback">account_invoice.odt</field>
<!--
<field name="py3o_server_id" ref="local_py3o_server"/>
<field name="py3o_filetype">pdf</field>
Nota: by default: print_report_name="(object._get_report_base_filename())
-->
</record>


<!-- No more duplicata inv on v12 !
<record id="account.account_invoice_action_report_duplicate" model="ir.actions.report">
<field name="report_type">py3o</field>
<field name="py3o_filetype">odt</field>
<field name="module">account_invoice_report_py3o</field>
<field name="py3o_template_fallback">account_invoice.odt</field>
</record>
-->

</odoo>
Binary file modified purchase_report_py3o/purchase_order.odt
Binary file not shown.
Binary file modified purchase_report_py3o/rfq.odt
Binary file not shown.
Binary file modified sale_report_py3o/sale_order.odt
Binary file not shown.
Binary file modified stock_report_py3o/picking.odt
Binary file not shown.
4 changes: 4 additions & 0 deletions stock_report_py3o/report.xml
Expand Up @@ -21,15 +21,19 @@
</record>

<!-- Picking Operations -->
<!--
<record id="stock.action_report_picking" model="ir.actions.report">
<field name="report_type">py3o</field>
<field name="py3o_filetype">odt</field>
<field name="module">stock_report_py3o</field>
<field name="py3o_template_fallback">picking.odt</field>
-->
<!--
<field name="py3o_server_id" ref="local_py3o_server"/>
<field name="py3o_filetype">pdf</field>
-->
<!--
</record>
-->

</odoo>

0 comments on commit 0bb02c7

Please sign in to comment.