Merge lp:~sylvain-legal/openobject-addons/7.0-fix-bug-1240963-add-due-date-on-account-invoice-report into lp:openobject-addons/7.0

Proposed by Sylvain LE GAL (GRAP)
Status: Rejected
Rejected by: Fabien (Open ERP)
Proposed branch: lp:~sylvain-legal/openobject-addons/7.0-fix-bug-1240963-add-due-date-on-account-invoice-report
Merge into: lp:openobject-addons/7.0
Diff against target: 78 lines (+17/-2)
2 files modified
account/i18n/fr.po (+1/-0)
account/report/account_print_invoice.rml (+16/-2)
To merge this branch: bzr merge lp:~sylvain-legal/openobject-addons/7.0-fix-bug-1240963-add-due-date-on-account-invoice-report
Reviewer Review Type Date Requested Status
Fabien (Open ERP) Disapprove
Amit Parik (community) Approve
Review via email: mp+191638@code.launchpad.net

Commit message

[FIX] Add account_invoice.due_date on rml report 'account_print_invoice'.

Description of the change

This branch aims to fix the bug #1240963 adding the due date on invoice report.

Thanks for your reviews.

To post a comment you must log in.
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Better If you makes the changes on .SXW file, because If someone wants to edit report via openoffice plugin then rml changes won't usable.

Please make relavent changes on SXW too.

Thank you!

review: Needs Fixing
Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hello,

Thanks a lot, i didn't see that. I'll work on it.

9529. By Sylvain LE GAL (GRAP)

[FIX] fixing the bug in the sxw file too, courtesy of Amit Parik.

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hello,

I did modifications in the sxw file too.
By the Way, in the rml file, there was 4 column and I added 1 (due_date)
In the sxw file, there was only 3 columns.
('Source' column based on account_invoice.origin wasn't present, so I added it too).

Best regards.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Sylvain,

Thanks you very much!

review: Approve
Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Hi,

I wanna to know If these was something wrong in my Merge Proposal.
I propose it one month ago, but there is no change on the status.

I'm ready to change the code if there is some change to do.

Thanks a lot for your answer.

Regards.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Sylvain,

We can not merge it because:

  - it's a new feature, it's not a bug (only bug fixes are allowed on a stable branch as people use it in production and we can not change the behaviour of their server used in production) --> this MP should better be in trunk
  - it's not correct; we display the payment term and not the due date on the invoice report because payment terms can be more complex than just a date. (30% within 20 days, the balance within 60 days) The due date on an invoice is there for information purpose; the real information come from the payment term. If we put both on the invice report, this can be confusing for the customer.

Sorry if we are late reviewing MP, we have a huge backlog to process.

review: Disapprove
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

More over, it's better not to port such a change to trunk as we are reviewing all reports in trunk to port them to web/webkit instead of RML/reportlab.

Revision history for this message
Sylvain LE GAL (GRAP) (sylvain-legal) wrote :

Fabien,

Thanks a lot for your complete answer.

I'm agree with your remarks on payment terms. I didn't see that because I only use basic payment terms in my company.

About your last comment (the format of the reports), does exist some doc in openerp.com that describe this kind of decision ? (like leave "rml" report and use "webkit" report)
I searched in https://doc.openerp.com/contribute/15_guidelines/ and https://doc.openerp.com/v6.1/developer/05_reports/ but I didn't found.

If it doesn't exist, this kind of guidelines could very usefull for the community to avoid developing new modules with "obsolete" / "no desired" technologies.

Regards.

Unmerged revisions

9529. By Sylvain LE GAL (GRAP)

[FIX] fixing the bug in the sxw file too, courtesy of Amit Parik.

9528. By Sylvain LE GAL (GRAP)

[FIX] Add account_invoice.due_date on rml report 'account_print_invoice'.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/i18n/fr.po'
2--- account/i18n/fr.po 2013-08-30 05:25:00 +0000
3+++ account/i18n/fr.po 2013-10-17 17:09:45 +0000
4@@ -9306,6 +9306,7 @@
5 #: view:account.invoice.report:0
6 #: field:account.invoice.report,date_due:0
7 #: field:report.invoice.created,date_due:0
8+#: report:account.invoice:0
9 msgid "Due Date"
10 msgstr "Date d'échéance"
11
12
13=== modified file 'account/report/account_print_invoice.rml'
14--- account/report/account_print_invoice.rml 2013-05-27 16:30:46 +0000
15+++ account/report/account_print_invoice.rml 2013-10-17 17:09:45 +0000
16@@ -31,6 +31,10 @@
17 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="3,0" stop="3,-1"/>
18 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>
19 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
20+ <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
21+ <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
22+ <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>
23+ <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
24 </blockTableStyle>
25 <blockTableStyle id="Table_General_Detail_Content">
26 <blockAlignment value="LEFT"/>
27@@ -49,6 +53,10 @@
28 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="3,0" stop="3,-1"/>
29 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>
30 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
31+ <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
32+ <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
33+ <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>
34+ <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
35 </blockTableStyle>
36 <blockTableStyle id="Table7">
37 <blockAlignment value="LEFT"/>
38@@ -179,7 +187,7 @@
39 <para style="terp_default_8">
40 <font color="white"> </font>
41 </para>
42- <blockTable colWidths="132.50,132.50,132.50,132.50" style="Table_Invoice_General_Header">
43+ <blockTable colWidths="106,106,106,106,106" style="Table_Invoice_General_Header">
44 <tr>
45 <td>
46 <para style="terp_tblheader_General_Centre"><b>Description</b></para>
47@@ -188,6 +196,9 @@
48 <para style="terp_tblheader_General_Centre"><b>Invoice Date</b></para>
49 </td>
50 <td>
51+ <para style="terp_tblheader_General_Centre"><b>Due Date</b></para>
52+ </td>
53+ <td>
54 <para style="terp_tblheader_General_Centre"><b>Source</b></para>
55 </td>
56 <td>
57@@ -195,7 +206,7 @@
58 </td>
59 </tr>
60 </blockTable>
61- <blockTable colWidths="132.50,132.50,132.50,132.50" style="Table_General_Detail_Content">
62+ <blockTable colWidths="106,106,106,106,106" style="Table_General_Detail_Content">
63 <tr>
64 <td>
65 <para style="terp_default_Centre_9">[[ o.name or ' ' ]]</para>
66@@ -203,6 +214,9 @@
67 <td>
68 <para style="terp_default_Centre_9">[[ formatLang(o.date_invoice,date=True) ]]</para>
69 </td>
70+ <td>
71+ <para style="terp_default_Centre_9">[[ formatLang(o.date_due,date=True) ]]</para>
72+ </td>
73 <td>
74 <para style="terp_default_Centre_9">[[ o.origin or '' ]]</para>
75 </td>
76
77=== modified file 'account/report/account_print_invoice.sxw'
78Binary files account/report/account_print_invoice.sxw 2013-09-02 11:49:40 +0000 and account/report/account_print_invoice.sxw 2013-10-17 17:09:45 +0000 differ