Add module phone_directory_report
This commit is contained in:
1
phone_directory_report/__init__.py
Normal file
1
phone_directory_report/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
41
phone_directory_report/__openerp__.py
Normal file
41
phone_directory_report/__openerp__.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Phone Directory Report module for Odoo
|
||||
# Copyright (C) 2015 Akretion (http://www.akretion.com)
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
|
||||
{
|
||||
'name': 'Phone Directory',
|
||||
'version': '0.1',
|
||||
'category': 'Phone',
|
||||
'license': 'AGPL-3',
|
||||
'summary': 'Adds a report with the phone directory of the company',
|
||||
'description': """
|
||||
Phone Directory Report
|
||||
======================
|
||||
|
||||
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['asterisk_click2dial', 'report_aeroo'],
|
||||
'data': ['report.xml'],
|
||||
'installable': True,
|
||||
}
|
||||
BIN
phone_directory_report/phone_directory.odt
Normal file
BIN
phone_directory_report/phone_directory.odt
Normal file
Binary file not shown.
35
phone_directory_report/report.xml
Normal file
35
phone_directory_report/report.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2015 Akretion France (www.akretion.com)
|
||||
The licence is in the file __openerp__.py
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
|
||||
<record id="phone_directory_report" model="ir.actions.report.xml">
|
||||
<field name="name">Phone Directory</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="report_name">phone.directory</field>
|
||||
<field name="report_type">aeroo</field>
|
||||
<field name="in_format">oo-odt</field>
|
||||
<field name="report_rml">phone_directory_report/phone_directory.odt</field>
|
||||
<field name="parser_state">default</field>
|
||||
<field name="tml_source">file</field>
|
||||
<field name="multi" eval="0"/>
|
||||
<field name="out_format" ref="report_aeroo.report_mimetypes_odt_odt"/>
|
||||
<field name="fallback_false" eval="0"/>
|
||||
<field name="attachment_use" eval="0"/>
|
||||
<field name="styles_mode">default</field>
|
||||
</record>
|
||||
|
||||
<record id="button_report_thanks" model="ir.values"> <!-- Add print button -->
|
||||
<field name="key2">client_print_multi</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="name">Phone Directory</field>
|
||||
<field name="value" eval="'ir.actions.report.xml,%d'%phone_directory_report" />
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user