openobject-italia-core-devs team mailing list archive
-
openobject-italia-core-devs team
-
Mailing list archive
-
Message #01702
lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 into lp:openobject-italia/7.0
Nicola Riolini - Micronaet has proposed merging lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 into lp:openobject-italia/7.0.
Requested reviews:
OpenERP Italia core devs (openobject-italia-core-devs)
For more details, see:
https://code.launchpad.net/~nicolariolini/openobject-italia/add_invoice_report_aeroo_70/+merge/194093
Modulo per stampa fattura in formato Aeroo. Utilizzare come base di partenza per i ritocchi al porto della stampa di defaulf in RML
--
https://code.launchpad.net/~nicolariolini/openobject-italia/add_invoice_report_aeroo_70/+merge/194093
Your team OpenERP Italia core devs is requested to review the proposed merge of lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 into lp:openobject-italia/7.0.
=== added directory 'invoice_report_aeroo'
=== added file 'invoice_report_aeroo/AUTHORS.txt'
--- invoice_report_aeroo/AUTHORS.txt 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/AUTHORS.txt 2013-11-06 10:02:13 +0000
@@ -0,0 +1,1 @@
+Nicola Riolini <riolini@xxxxxxxxxxxx>
=== added file 'invoice_report_aeroo/__init__.py'
--- invoice_report_aeroo/__init__.py 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/__init__.py 2013-11-06 10:02:13 +0000
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2010-2012 Associazione OpenERP Italia
+# (<http://www.openerp-italia.org>).
+# Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
+# General contacts <info@xxxxxxxxx>
+#
+# 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 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/>.
+#
+##############################################################################
+
+import invoice
+import report
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+
=== added file 'invoice_report_aeroo/__openerp__.py'
--- invoice_report_aeroo/__openerp__.py 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/__openerp__.py 2013-11-06 10:02:13 +0000
@@ -0,0 +1,56 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2010-2012 Associazione OpenERP Italia
+# (<http://www.openerp-italia.org>).
+# Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
+# General contacts <info@xxxxxxxxx>
+#
+# 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 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' : 'Italian localization - Invoice report aeroo',
+ 'version' : '0.1',
+ 'category' : 'Localization/Italy/Reporting',
+ 'description' : """Base invoice in Aeroo:
+
+ This invoice report is a model for start your invoice
+ The module also replace action for print the report
+ in the workflow button
+
+ =========================================================
+
+ Remember to manually change report in template used for
+ send e-mail
+ """,
+ 'author': 'OpenERP Italian Community',
+ 'website': 'http://www.openerp-italia.org',
+ 'license': 'AGPL-3',
+ 'depends' : ['base',
+ 'account',
+ 'report_aeroo',
+ 'report_aeroo_ooo',
+ ],
+ 'init_xml' : [],
+ 'update_xml' : ['report/invoice_report.xml',],
+ 'demo_xml' : [],
+ 'test': [],
+ 'active' : False,
+ 'installable' : True,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'invoice_report_aeroo/i18n'
=== added file 'invoice_report_aeroo/invoice.py'
--- invoice_report_aeroo/invoice.py 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/invoice.py 2013-11-06 10:02:13 +0000
@@ -0,0 +1,42 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2010-2012 Associazione OpenERP Italia
+# (<http://www.openerp-italia.org>).
+# Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
+# General contacts <info@xxxxxxxxx>
+#
+# 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 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/>.
+#
+##############################################################################
+
+from osv import osv, fields
+
+class account_invoice(osv.osv):
+ ''' Override send invoice function
+ '''
+ _name = 'account.invoice'
+ _inherit = 'account.invoice'
+
+ def invoice_print(self, cr, uid, ids, context=None):
+ ''' Override invoice_print function
+ '''
+ res = super(account_invoice, self).invoice_print(cr, uid, ids, context=context)
+
+ # replace report name:
+ res['report_name'] = 'custom_account_invoice_report'
+ return res
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'invoice_report_aeroo/report'
=== added file 'invoice_report_aeroo/report/__init__.py'
--- invoice_report_aeroo/report/__init__.py 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/report/__init__.py 2013-11-06 10:02:13 +0000
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2010-2012 Associazione OpenERP Italia
+# (<http://www.openerp-italia.org>).
+# Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
+# General contacts <info@xxxxxxxxx>
+#
+# 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 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/>.
+#
+##############################################################################
+
+import invoice_parser
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'invoice_report_aeroo/report/invoice.odt'
Binary files invoice_report_aeroo/report/invoice.odt 1970-01-01 00:00:00 +0000 and invoice_report_aeroo/report/invoice.odt 2013-11-06 10:02:13 +0000 differ
=== added file 'invoice_report_aeroo/report/invoice_parser.py'
--- invoice_report_aeroo/report/invoice_parser.py 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/report/invoice_parser.py 2013-11-06 10:02:13 +0000
@@ -0,0 +1,35 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# Copyright (C) 2010-2012 Associazione OpenERP Italia
+# (<http://www.openerp-italia.org>).
+# Copyright(c)2008-2010 SIA "KN dati".(http://kndati.lv) All Rights Reserved.
+# General contacts <info@xxxxxxxxx>
+#
+# 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 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/>.
+#
+##############################################################################
+
+from report import report_sxw
+from report.report_sxw import rml_parse
+
+class Parser(report_sxw.rml_parse):
+ def __init__(self, cr, uid, name, context):
+ super(Parser, self).__init__(cr, uid, name, context)
+ self.localcontext.update({
+ })
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+
=== added file 'invoice_report_aeroo/report/invoice_report.xml'
--- invoice_report_aeroo/report/invoice_report.xml 1970-01-01 00:00:00 +0000
+++ invoice_report_aeroo/report/invoice_report.xml 2013-11-06 10:02:13 +0000
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<openerp>
+ <data noupdate="1">
+ <record id="aeroo_account_invoice_report_id" model="ir.actions.report.xml">
+ <field name="name">Invoice report</field>
+ <field name="type">ir.actions.report.xml</field>
+ <field name="model">account.invoice</field>
+ <field name="report_name">custom_account_invoice_report</field>
+ <field name="report_type">aeroo</field>
+ <field name="in_format">oo-odt</field>
+ <field name="out_format" eval="ref('report_aeroo_ooo.report_mimetypes_pdf_odt')" />
+ <field name="parser_loc">report_aeroo_invoice/report/invoice_parser.py</field>
+ <field name="report_rml">report_aeroo_invoice/report/invoice.odt</field>
+ <field name="parser_state">loc</field>
+ <field name="tml_source">file</field>
+ </record>
+
+ <ir_set>
+ <field eval="'action'" name="key"/>
+ <field eval="'client_print_multi'" name="key2"/>
+ <field eval="['account.invoice']" name="models"/>
+ <field name="name">custom_account_invoice</field>
+ <field eval="'ir.actions.report.xml,'+str(aeroo_account_invoice_report_id)" name="value"/>
+ <field eval="True" name="isobject"/>
+ <field eval="True" name="replace"/>
+ </ir_set>
+ </data>
+</openerp>
+
Follow ups