Merge lp:~unifield-team/unifield-server/us-1338 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3759
Proposed branch: lp:~unifield-team/unifield-server/us-1338
Merge into: lp:unifield-server
Diff against target: 71 lines (+6/-15)
4 files modified
bin/addons/account_mcdb/report/account_mcdb_export.py (+4/-4)
bin/addons/account_mcdb/report/mcdb_result.py (+0/-9)
bin/addons/account_mcdb/report/report_account_move_line.rml (+1/-1)
bin/addons/account_mcdb/report/report_account_move_line_xls.mako (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1338
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+295465@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/addons/account_mcdb/report/account_mcdb_export.py'
2--- bin/addons/account_mcdb/report/account_mcdb_export.py 2014-11-04 13:40:45 +0000
3+++ bin/addons/account_mcdb/report/account_mcdb_export.py 2016-05-23 13:16:38 +0000
4@@ -134,10 +134,10 @@
5 else:
6 csv_line.append(abs(amount) or 0.0)
7 csv_line.append(0.0)
8- #output currency
9- csv_line.append(currency_name.encode('utf-8') or '')
10- #reconcile_total_partial_id
11- csv_line.append(ml.reconcile_total_partial_id and ml.reconcile_total_partial_id.name and ml.reconcile_total_partial_id.name.encode('utf-8') or '')
12+ #output currency
13+ csv_line.append(currency_name.encode('utf-8') or '')
14+ #reconcile
15+ csv_line.append(ml.reconcile_txt and ml.reconcile_txt.encode('utf-8') or '')
16 #state
17 csv_line.append(field_sel(cr, uid, ml, 'move_state', context).encode('utf-8'))
18 # Write line
19
20=== modified file 'bin/addons/account_mcdb/report/mcdb_result.py'
21--- bin/addons/account_mcdb/report/mcdb_result.py 2016-01-19 10:34:18 +0000
22+++ bin/addons/account_mcdb/report/mcdb_result.py 2016-05-23 13:16:38 +0000
23@@ -154,7 +154,6 @@
24 def __init__(self, cr, uid, name, context=None):
25 super(parser_account_move_line, self).__init__(cr, uid, name, context=context)
26 self.localcontext.update({
27- 'reconcile_name': self.reconcile_name,
28 #'getSub': self.getSub,
29 })
30
31@@ -183,14 +182,6 @@
32 context = {}
33 return super(parser_account_move_line, self).create(cr, uid, ids, data, context=context)
34
35- def reconcile_name(self, r_id=None, context=None):
36- if not r_id:
37- return None
38- res = self.pool.get('account.move.reconcile').name_get(self.cr, self.uid, [r_id])
39- if res and res[0] and res[0][1]:
40- return res[0][1]
41- return None
42-
43 account_move_line_report_xls('report.account.move.line_xls','account.move.line','addons/account_mcdb/report/report_account_move_line_xls.mako', parser=parser_account_move_line)
44
45
46
47=== modified file 'bin/addons/account_mcdb/report/report_account_move_line.rml'
48--- bin/addons/account_mcdb/report/report_account_move_line.rml 2014-05-21 15:11:12 +0000
49+++ bin/addons/account_mcdb/report/report_account_move_line.rml 2016-05-23 13:16:38 +0000
50@@ -170,7 +170,7 @@
51 <para style="P3">[[ o.output_currency and o.output_currency.name or '' ]]</para>
52 </td>
53 <td>
54- <para style="P3">[[ o.reconcile_total_partial_id and o.reconcile_total_partial_id.name or '' ]]</para>
55+ <para style="P3">[[ o.reconcile_txt and o.reconcile_txt or '' ]]</para>
56 </td>
57 <td>
58 <para style="P3">[[ o.move_state and getSel(o, 'move_state') or '' ]]</para>
59
60=== modified file 'bin/addons/account_mcdb/report/report_account_move_line_xls.mako'
61--- bin/addons/account_mcdb/report/report_account_move_line_xls.mako 2015-08-05 12:26:43 +0000
62+++ bin/addons/account_mcdb/report/report_account_move_line_xls.mako 2016-05-23 13:16:38 +0000
63@@ -122,7 +122,7 @@
64 <Data ss:Type="String">${(o.output_currency and o.output_currency.name or '')|x}</Data>
65 </Cell>
66 <Cell ss:StyleID="ssBorder">
67- <Data ss:Type="String">${(o.reconcile_total_partial_id and reconcile_name(o.reconcile_total_partial_id.id) or '')|x}</Data>
68+ <Data ss:Type="String">${(o.reconcile_txt or '')|x}</Data>
69 </Cell>
70 <Cell ss:StyleID="ssBorder">
71 <Data ss:Type="String">${(o.move_state and getSel(o,'move_state') or '')|x}</Data>

Subscribers

People subscribed via source and target branches

to all changes: