Merge lp:~openerp-dev/openobject-addons/7.0-590279-opw-skh into lp:openobject-addons/7.0

Proposed by Somesh Khare
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: no longer in the source branch.
Merged at revision: 9323
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-590279-opw-skh
Merge into: lp:openobject-addons/7.0
Diff against target: 17 lines (+2/-2)
1 file modified
l10n_be/wizard/l10n_be_vat_intra.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-590279-opw-skh
Reviewer Review Type Date Requested Status
Martin Trigaux (OpenERP) (community) Approve
Naresh(OpenERP) Pending
Review via email: mp+154903@code.launchpad.net

Description of the change

Hello Sir,

[FIX]l10n_be: Intracom VAT Declaration -> mask amountsum wrong.

Please refer the Bug:https://bugs.launchpad.net/openobject-addons/+bug/1157173 for more information.

Kindly review this branch and please share your views on it.

Thanks & Regards,
Somesh Khare

To post a comment you must log in.
Revision history for this message
Martin Trigaux (OpenERP) (mat-openerp) wrote :

Thanks for the patch, LGTM, merged into addons 7.0

revno: 9323 [merge]
revision-id: <email address hidden>

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_be/wizard/l10n_be_vat_intra.py'
2--- l10n_be/wizard/l10n_be_vat_intra.py 2012-12-10 11:16:54 +0000
3+++ l10n_be/wizard/l10n_be_vat_intra.py 2013-05-28 11:13:28 +0000
4@@ -202,11 +202,11 @@
5 'vatnum': row['vat'][2:].replace(' ','').upper(),
6 'vat': row['vat'],
7 'country': row['vat'][:2],
8- 'amount': amt,
9+ 'amount': '%.2f' % amt,
10 'intra_code': row['intra_code'],
11 'code': intra_code})
12
13- xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': amount_sum, 'partner_wo_vat': p_count})
14+ xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': '%.2f' % amount_sum, 'partner_wo_vat': p_count})
15 return xmldict
16
17 def create_xml(self, cursor, user, ids, context=None):