Merge lp:~romaindeheele/account-invoice-report/add-account_draft_invoice_print into lp:~account-core-editors/account-invoice-report/7.0

Proposed by Romain Deheele - Camptocamp
Status: Merged
Approved by: Alexandre Fayolle - camptocamp
Approved revision: 36
Merged at revision: 36
Proposed branch: lp:~romaindeheele/account-invoice-report/add-account_draft_invoice_print
Merge into: lp:~account-core-editors/account-invoice-report/7.0
Diff against target: 82 lines (+67/-0)
3 files modified
account_draft_invoice_print/__init__.py (+20/-0)
account_draft_invoice_print/__openerp__.py (+32/-0)
account_draft_invoice_print/invoice_view.xml (+15/-0)
To merge this branch: bzr merge lp:~romaindeheele/account-invoice-report/add-account_draft_invoice_print
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp code review, no test Approve
Alexandre Fayolle - camptocamp code review, no test Approve
Review via email: mp+177105@code.launchpad.net

Description of the change

add account_draft_invoice_print addon : set visible button "invoice_print" to print draft invoices

To post a comment you must log in.
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

in __openerp__.py,

* remove empty entries 'demo_xml' and 'data'
* change the category to "Accounting & Finance"

review: Needs Fixing (code review, no test)
36. By Romain Deheele - Camptocamp

[IMP] remove empty entries and change category to "Accounting & Finance"

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

LGTM

review: Approve (code review, no test)
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

LGTM

review: Approve (code review, no test)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'account_draft_invoice_print'
=== added file 'account_draft_invoice_print/__init__.py'
--- account_draft_invoice_print/__init__.py 1970-01-01 00:00:00 +0000
+++ account_draft_invoice_print/__init__.py 2013-07-26 08:17:30 +0000
@@ -0,0 +1,20 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (c) 2013 Camptocamp SA (http://www.camptocamp.com)
5# @author Romain Deheele
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
021
=== added file 'account_draft_invoice_print/__openerp__.py'
--- account_draft_invoice_print/__openerp__.py 1970-01-01 00:00:00 +0000
+++ account_draft_invoice_print/__openerp__.py 2013-07-26 08:17:30 +0000
@@ -0,0 +1,32 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Copyright (c) 2013 Camptocamp SA (http://www.camptocamp.com)
5# @author Romain Deheele
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22{'name': 'Account Draft Invoice Print',
23 'version': '1.0.0',
24 'category': 'Accounting & Finance',
25 'description': """Allows to print invoices in draft state""",
26 'author': 'Camptocamp',
27 'website': 'http://www.camptocamp.com',
28 'depends': ['account'],
29 'data': ['invoice_view.xml'],
30 'installable': True,
31 'active': False,
32 }
033
=== added file 'account_draft_invoice_print/invoice_view.xml'
--- account_draft_invoice_print/invoice_view.xml 1970-01-01 00:00:00 +0000
+++ account_draft_invoice_print/invoice_view.xml 2013-07-26 08:17:30 +0000
@@ -0,0 +1,15 @@
1<openerp>
2 <data>
3 <record id="invoice_form_print_cancel" model="ir.ui.view">
4 <field name="name">account.invoice.form.print.cancel</field>
5 <field name="model">account.invoice</field>
6 <field name="inherit_id" ref="account.invoice_form" />
7 <field name="arch" type="xml">
8 <button name="invoice_print" position="attributes">
9 <attribute name="attrs">{'invisible':['|',('sent','=',True), ('state', 'not in', ['open','draft'])]}</attribute>
10 </button>
11 </field>
12 </record>
13
14 </data>
15</openerp>

Subscribers

People subscribed via source and target branches