Merge lp:~openerp-dev/openobject-addons/7.0-opw-593996-rmu into lp:openobject-addons/7.0

Proposed by Ravish(OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 9263
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-593996-rmu
Merge into: lp:openobject-addons/7.0
Diff against target: 19 lines (+9/-0)
1 file modified
l10n_be/wizard/l10n_be_vat_intra.py (+9/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-593996-rmu
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+171222@code.launchpad.net

Description of the change

Hello

with this fix (In account l10n_be (vat intra)) period_code value as alphanumeric not allowed.

Thanks lot

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Unmerged revisions

9263. By Peter Langenberg

[FIX] alphanumeric not allowed in belguim peroid_code

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 2013-06-07 11:38:29 +0000
3+++ l10n_be/wizard/l10n_be_vat_intra.py 2013-06-25 06:57:31 +0000
4@@ -79,6 +79,15 @@
5 'name': 'vat_intra.xml',
6 'tax_code_id': _get_tax_code,
7 }
8+
9+ def _check_is_digit(self, cr, uid, ids, context=None):
10+ for wiz in self.browse(cr, uid, ids, context=context):
11+ return wiz.period_code.isdigit()
12+
13+ _constraints = [
14+ (_check_is_digit, 'Period can only contain digits', ['period_code']),
15+ ]
16+
17
18 def _get_datas(self, cr, uid, ids, context=None):
19 """Collects require data for vat intra xml