openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04444
[Merge] lp:~camptocamp/account-invoice-report/7.0-invoice-webkit-hide-identical-ref into lp:account-invoice-report
Guewen Baconnier @ Camptocamp has proposed merging lp:~camptocamp/account-invoice-report/7.0-invoice-webkit-hide-identical-ref into lp:account-invoice-report.
Commit message:
do not display the reference is it the same than the name (when an invoice is generated from the sales orders, it is copied in both fields)
Requested reviews:
Account Core Editors (account-core-editors)
For more details, see:
https://code.launchpad.net/~camptocamp/account-invoice-report/7.0-invoice-webkit-hide-identical-ref/+merge/209436
Hide the "Your Reference" field when it is equal to the subject of the invoice.
--
https://code.launchpad.net/~camptocamp/account-invoice-report/7.0-invoice-webkit-hide-identical-ref/+merge/209436
Your team Account Core Editors is requested to review the proposed merge of lp:~camptocamp/account-invoice-report/7.0-invoice-webkit-hide-identical-ref into lp:account-invoice-report.
=== modified file 'invoice_webkit/report/account_invoice.mako'
--- invoice_webkit/report/account_invoice.mako 2014-01-24 14:28:51 +0000
+++ invoice_webkit/report/account_invoice.mako 2014-03-05 12:05:30 +0000
@@ -278,7 +278,7 @@
<th style="text-align:center;width:120px;">${_("Responsible")}</td>
<th style="text-align:center">${_("Payment Term")}</td>
<th style="text-align:center">${_("Our reference")}</td>
- %if inv.reference:
+ %if inv.reference and inv.reference != inv.name:
<th style="text-align:center">${_("Your reference")}</td>
%endif
</tr>
@@ -288,7 +288,7 @@
<td style="text-align:center;width:120px;">${inv.user_id and inv.user_id.name or ''}</td>
<td style="text-align:center">${inv.payment_term and inv.payment_term.note or ''}</td>
<td style="text-align:center">${inv.origin or ''}</td>
- %if inv.reference:
+ %if inv.reference and inv.reference != inv.name:
<td style="text-align:center">${inv.reference}</td>
%endif
</tr>
References