Merge lp:~camptocamp/openerp-french-localization/6.1-format-siret-mdh into lp:openerp-french-localization/6.1

Proposed by Matthieu Dietrich @ camptocamp
Status: Merged
Merged at revision: 5
Proposed branch: lp:~camptocamp/openerp-french-localization/6.1-format-siret-mdh
Merge into: lp:openerp-french-localization/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
l10n_fr_fec/wizard/fec.py (+1/-1)
To merge this branch: bzr merge lp:~camptocamp/openerp-french-localization/6.1-format-siret-mdh
Reviewer Review Type Date Requested Status
OpenERP FR Core Editors Pending
Review via email: mp+243158@code.launchpad.net

Description of the change

In one of our customer, there are spaces in the company's VAT number; this means that the filename of the FEC has spaces in it, and this is invalid for validation.

This MP is to remove the eventual spaces before getting the SIREN number.

Regards,
Matthieu Dietrich

To post a comment you must log in.
Revision history for this message
Alexis de Lattre (alexis-via) wrote :

Matthieu, thanks for your contribution !

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_fr_fec/wizard/fec.py'
2--- l10n_fr_fec/wizard/fec.py 2014-10-01 20:34:12 +0000
3+++ l10n_fr_fec/wizard/fec.py 2014-11-28 13:57:42 +0000
4@@ -166,7 +166,7 @@
5 raise orm.except_orm(
6 _('Error:'),
7 _("FEC is for French companies only !"))
8- siren = company.vat[4:13]
9+ siren = company.vat.replace(' ','')[4:13]
10 fy_end_date = cur_wiz.fiscalyear_id.date_stop.replace('-', '')
11 fecvalue = fecfile.getvalue()
12 self.write(cr, uid, ids, {

Subscribers

People subscribed via source and target branches