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
Merged at revision: 41
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: 16 lines (+4/-1)
1 file modified
account_draft_invoice_print/invoice_view.xml (+4/-1)
To merge this branch: bzr merge lp:~romaindeheele/account-invoice-report/add_account_draft_invoice_print
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza code review, no test Approve
Yannick Vaucher @ Camptocamp code, no tests Approve
Review via email: mp+185507@code.launchpad.net

Description of the change

Hello,

In standard account.invoice form view, there are in fact two print buttons.
I've forgotten one in previous commit, this commit manages both.

Romain

To post a comment you must log in.
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) :
review: Approve (code, no tests)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) 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
1=== modified file 'account_draft_invoice_print/invoice_view.xml'
2--- account_draft_invoice_print/invoice_view.xml 2013-07-26 07:41:59 +0000
3+++ account_draft_invoice_print/invoice_view.xml 2013-09-13 14:21:25 +0000
4@@ -5,9 +5,12 @@
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+ <button name="invoice_print" string="Print" position="attributes">
10 <attribute name="attrs">{'invisible':['|',('sent','=',True), ('state', 'not in', ['open','draft'])]}</attribute>
11 </button>
12+ <button name="invoice_print" string="Print Invoice" position="attributes">
13+ <attribute name="attrs">{'invisible':['|',('sent','=',False), ('state', 'not in', ['open','draft'])]}</attribute>
14+ </button>
15 </field>
16 </record>
17

Subscribers

People subscribed via source and target branches