Merge lp:~camptocamp/account-invoice-report/add-payment-term into lp:~account-core-editors/account-invoice-report/7.0

Proposed by Nicolas Bessi - Camptocamp
Status: Merged
Merged at revision: 27
Proposed branch: lp:~camptocamp/account-invoice-report/add-payment-term
Merge into: lp:~account-core-editors/account-invoice-report/7.0
Diff against target: 23 lines (+6/-4)
1 file modified
invoice_webkit/report/account_invoice.mako (+6/-4)
To merge this branch: bzr merge lp:~camptocamp/account-invoice-report/add-payment-term
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp code review, no test Approve
Frederic Clementi - Camptocamp (community) features validation, no code review Approve
Review via email: mp+151795@code.launchpad.net

Description of the change

Add payment term to invoice report

To post a comment you must log in.
Revision history for this message
Frederic Clementi - Camptocamp (frederic-clementi) wrote :

Ok for me

Revision history for this message
Frederic Clementi - Camptocamp (frederic-clementi) wrote :

Ok.

Maybe, having the Due date with multi payment terms is a non-sense and we should remove the due date.

Revision history for this message
Frederic Clementi - Camptocamp (frederic-clementi) :
review: Approve (features validation, no code review)
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

I'm worried about the use of hardcoded "px" sizes in mako templates. Don't you think it would be easier to read for a human to use "cm" or "mm" as a unit in such files, since the indended medium is a PDF and not the screen.

review: Needs Information (code review, no test)
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

By the way (a bit out of MP topic), there is an other MP to improve the image helper to allow the use of other units like cm.

https://code.launchpad.net/~camptocamp/ocb-addons/7.0-webkit_report-image_helper-20130318/+merge/153775
https://code.launchpad.net/~camptocamp/openobject-addons/7.0-webkit_report-image_helper-20130318/+merge/153776

As Alexandre said, it would be better to have "cm" and "mm" everywhere in reports.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Alexandre, Yannick, Nicolas, what is the status of this MP?

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

It is still in Need Informations to know if there is a reason to use px instead of metric units. If no special reasons it needs fixing.

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) :
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 'invoice_webkit/report/account_invoice.mako'
2--- invoice_webkit/report/account_invoice.mako 2013-02-20 11:31:16 +0000
3+++ invoice_webkit/report/account_invoice.mako 2013-03-05 16:04:28 +0000
4@@ -215,14 +215,16 @@
5 <tr>
6 <th class="date">${_("Invoice Date")}</td>
7 <th class="date">${_("Due Date")}</td>
8- <th style="text-align:center; width: 120px;">${_("Responsible")}</td>
9- <th style="text-align:left;">${_("Our Reference")}</td>
10+ <th style="text-align:center;width:120px;">${_("Responsible")}</td>
11+ <th style="text-align:center">${_("Payment Term")}</td>
12+ <th style="text-align:center">${_("Our Reference")}</td>
13 </tr>
14 <tr>
15 <td class="date">${formatLang(inv.date_invoice, date=True)}</td>
16 <td class="date">${formatLang(inv.date_due, date=True)}</td>
17- <td style="text-align:center; width: 120px;">${inv.user_id and inv.user_id.name or ''}</td>
18- <td style="text-align:left;">${inv.origin or ''}</td>
19+ <td style="text-align:center;width:120px;">${inv.user_id and inv.user_id.name or ''}</td>
20+ <td style="text-align:center">${inv.payment_term and inv.payment_term.note or ''}</td>
21+ <td style="text-align:center">${inv.origin or ''}</td>
22 </tr>
23 </table>
24

Subscribers

People subscribed via source and target branches