Merge lp:~akretion-team/banking-addons/61-sepa-direct-debit into lp:banking-addons/6.1
- 61-sepa-direct-debit
- Merge into 6.1
Status: | Work in progress |
---|---|
Proposed branch: | lp:~akretion-team/banking-addons/61-sepa-direct-debit |
Merge into: | lp:banking-addons/6.1 |
Diff against target: |
9652 lines (+8331/-602) (has conflicts) 50 files modified
account_banking/account_banking.py (+10/-1) account_banking/wizard/account_payment_order.py (+3/-3) account_banking_pain_base/__init__.py (+26/-0) account_banking_pain_base/__openerp__.py (+50/-0) account_banking_pain_base/banking_export_pain.py (+409/-0) account_banking_pain_base/company.py (+78/-0) account_banking_pain_base/company_view.xml (+24/-0) account_banking_pain_base/i18n/account_banking_pain_base.pot (+146/-0) account_banking_pain_base/i18n/fr.po (+146/-0) account_banking_pain_base/payment_line.py (+52/-0) account_banking_pain_base/payment_line_view.xml (+43/-0) account_banking_pain_base/payment_mode.py (+39/-0) account_banking_pain_base/payment_mode_view.xml (+22/-0) account_banking_sepa_credit_transfer/__init__.py (+2/-3) account_banking_sepa_credit_transfer/__openerp__.py (+8/-6) account_banking_sepa_credit_transfer/account_banking_sepa.py (+44/-34) account_banking_sepa_credit_transfer/account_banking_sepa_view.xml (+7/-10) account_banking_sepa_credit_transfer/data/pain.001.001.05.xsd (+931/-0) account_banking_sepa_credit_transfer/data/payment_type_sepa_sct.xml (+13/-8) account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot (+80/-124) account_banking_sepa_credit_transfer/i18n/fr.po (+88/-132) account_banking_sepa_credit_transfer/i18n/nl.po (+405/-0) account_banking_sepa_credit_transfer/wizard/__init__.py (+1/-1) account_banking_sepa_credit_transfer/wizard/export_sepa.py (+205/-253) account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml (+9/-21) account_banking_sepa_direct_debit/__init__.py (+25/-0) account_banking_sepa_direct_debit/__openerp__.py (+61/-0) account_banking_sepa_direct_debit/account_banking_sdd.py (+396/-0) account_banking_sepa_direct_debit/account_banking_sdd_view.xml (+82/-0) account_banking_sepa_direct_debit/account_invoice_view.xml (+22/-0) account_banking_sepa_direct_debit/account_payment_view.xml (+26/-0) account_banking_sepa_direct_debit/company.py (+89/-0) account_banking_sepa_direct_debit/company_view.xml (+23/-0) account_banking_sepa_direct_debit/data/mandate_reference_sequence.xml (+21/-0) account_banking_sepa_direct_debit/data/pain.008.001.02.xsd (+879/-0) account_banking_sepa_direct_debit/data/pain.008.001.03.xsd (+925/-0) account_banking_sepa_direct_debit/data/pain.008.001.04.xsd (+892/-0) account_banking_sepa_direct_debit/data/payment_type_sdd.xml (+37/-0) account_banking_sepa_direct_debit/i18n/account_banking_sepa_direct_debit.pot (+633/-0) account_banking_sepa_direct_debit/i18n/fr.po (+642/-0) account_banking_sepa_direct_debit/mandate_expire_cron.xml (+26/-0) account_banking_sepa_direct_debit/res_partner_bank_view.xml (+53/-0) account_banking_sepa_direct_debit/sdd_mandate_view.xml (+92/-0) account_banking_sepa_direct_debit/security/ir.model.access.csv (+4/-0) account_banking_sepa_direct_debit/security/original_mandate_required_security.xml (+17/-0) account_banking_sepa_direct_debit/wizard/__init__.py (+23/-0) account_banking_sepa_direct_debit/wizard/export_sdd.py (+450/-0) account_banking_sepa_direct_debit/wizard/export_sdd_view.xml (+36/-0) account_direct_debit/model/account_payment.py (+3/-1) account_direct_debit/view/account_payment.xml (+33/-5) Text conflict in account_banking/account_banking.py |
To merge this branch: | bzr merge lp:~akretion-team/banking-addons/61-sepa-direct-debit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stefan Rijnhart (Opener) | Needs Fixing | ||
Guewen Baconnier @ Camptocamp | Approve | ||
Review via email: mp+200020@code.launchpad.net |
Commit message
Description of the change
This is the 6.1 equivalent of my merge on the 7.0 branch.
This branch contains :
- support for SEPA direct debit
- the work I carried out with Luc de Meyer (Noviat) during a code sprint on November 21st to get the additionnal features that were present in Luc's module account_pain for SEPA credit transfer (including the "Initiating Party Issuer", which is required by a few countries including Belgium and structured remittance info)
- the module account_
P.S. : 38 days left before SEPA migration deadline !
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : | # |
Oh, just saw this one https:/
- 191. By Alexis de Lattre
-
FIX to avoid a crash when adding payment lines via "Select invoices to collect" with date_preferred == fixed
This was caused by a wrong field name : payment.date_planned -> payment. date_scheduled
Stefan Rijnhart (Opener) (stefan-opener) wrote : | # |
It seems this still needs updating with the results from the review of the 7.0 branch https:/
There are some seemingly unrelated changes in account_
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
A month without activity, I set this as WIP
- 192. By Alexis de Lattre
-
Add storno field in payment line views.
Add menu entry for payment lines.
Remove readonly=True for storno field, because we may want to set it by hand if we don't have automatic import of bank statements.
Unmerged revisions
- 192. By Alexis de Lattre
-
Add storno field in payment line views.
Add menu entry for payment lines.
Remove readonly=True for storno field, because we may want to set it by hand if we don't have automatic import of bank statements. - 191. By Alexis de Lattre
-
FIX to avoid a crash when adding payment lines via "Select invoices to collect" with date_preferred == fixed
This was caused by a wrong field name : payment.date_planned -> payment. date_scheduled - 190. By Alexis de Lattre
-
Backport all SEPA-related modules from current lp:~akretion-team/banking-addons/70-sepa-trf-dd-updates (7.0) to 6.1
Avoid bloacking error message when there is no transfer journal/account on payment mode. - 189. By Alexis de Lattre
-
Add account_
banking_ sepa_direct_ debit, backported to OpenERP 6.1. - 188. By Alexis de Lattre
-
[FIX] Allow offline usage
payment_order_type on payment.order is readonly when not in draft state.
Preview Diff
1 | === modified file 'account_banking/account_banking.py' | |||
2 | --- account_banking/account_banking.py 2014-02-10 20:13:22 +0000 | |||
3 | +++ account_banking/account_banking.py 2014-03-19 00:47:00 +0000 | |||
4 | @@ -1057,6 +1057,7 @@ | |||
5 | 1057 | 'payment_order_type': fields.selection( | 1057 | 'payment_order_type': fields.selection( |
6 | 1058 | [('payment', 'Payment'),('debit', 'Direct debit')], | 1058 | [('payment', 'Payment'),('debit', 'Direct debit')], |
7 | 1059 | 'Payment order type', required=True, | 1059 | 'Payment order type', required=True, |
8 | 1060 | readonly=True, states={'draft': [('readonly', False)]}, | ||
9 | 1060 | ), | 1061 | ), |
10 | 1061 | 'date_sent': fields.date('Send date', readonly=True), | 1062 | 'date_sent': fields.date('Send date', readonly=True), |
11 | 1062 | } | 1063 | } |
12 | @@ -1510,8 +1511,13 @@ | |||
13 | 1510 | _('The account number appears to be invalid for ' | 1511 | _('The account number appears to be invalid for ' |
14 | 1511 | '%(country)s') | 1512 | '%(country)s') |
15 | 1512 | % {'country': country.name} | 1513 | % {'country': country.name} |
16 | 1514 | <<<<<<< TREE | ||
17 | 1513 | )) | 1515 | )) |
18 | 1514 | if info is False: | 1516 | if info is False: |
19 | 1517 | ======= | ||
20 | 1518 | )) | ||
21 | 1519 | except: | ||
22 | 1520 | >>>>>>> MERGE-SOURCE | ||
23 | 1515 | if country.code in sepa.IBAN.countries: | 1521 | if country.code in sepa.IBAN.countries: |
24 | 1516 | acc_number_fmt = sepa.BBAN(acc_number, country.code) | 1522 | acc_number_fmt = sepa.BBAN(acc_number, country.code) |
25 | 1517 | if acc_number_fmt.valid: | 1523 | if acc_number_fmt.valid: |
26 | @@ -1576,7 +1582,10 @@ | |||
27 | 1576 | if not bic: | 1582 | if not bic: |
28 | 1577 | return {} | 1583 | return {} |
29 | 1578 | 1584 | ||
31 | 1579 | info, address = sepa.online.bank_info(bic) | 1585 | try: |
32 | 1586 | info, address = sepa.online.bank_info(bic) | ||
33 | 1587 | except: | ||
34 | 1588 | return {} | ||
35 | 1580 | if not info: | 1589 | if not info: |
36 | 1581 | return {} | 1590 | return {} |
37 | 1582 | 1591 | ||
38 | 1583 | 1592 | ||
39 | === modified file 'account_banking/wizard/account_payment_order.py' | |||
40 | --- account_banking/wizard/account_payment_order.py 2013-06-04 21:10:24 +0000 | |||
41 | +++ account_banking/wizard/account_payment_order.py 2014-03-19 00:47:00 +0000 | |||
42 | @@ -76,9 +76,9 @@ | |||
43 | 76 | elif payment.date_prefered == 'fixed': | 76 | elif payment.date_prefered == 'fixed': |
44 | 77 | ### account_banking | 77 | ### account_banking |
45 | 78 | # date_to_pay = payment.date_planned | 78 | # date_to_pay = payment.date_planned |
49 | 79 | date_to_pay = payment.date_planned and \ | 79 | date_to_pay = payment.date_scheduled and \ |
50 | 80 | str2date(payment.date_planned) > _today\ | 80 | str2date(payment.date_scheduled) > _today\ |
51 | 81 | and payment.date_planned or False | 81 | and payment.date_scheduled or False |
52 | 82 | ### end account banking | 82 | ### end account banking |
53 | 83 | 83 | ||
54 | 84 | ### account_banking | 84 | ### account_banking |
55 | 85 | 85 | ||
56 | === added directory 'account_banking_pain_base' | |||
57 | === added file 'account_banking_pain_base/__init__.py' | |||
58 | --- account_banking_pain_base/__init__.py 1970-01-01 00:00:00 +0000 | |||
59 | +++ account_banking_pain_base/__init__.py 2014-03-19 00:47:00 +0000 | |||
60 | @@ -0,0 +1,26 @@ | |||
61 | 1 | # -*- encoding: utf-8 -*- | ||
62 | 2 | ############################################################################## | ||
63 | 3 | # | ||
64 | 4 | # PAIN Base module for OpenERP | ||
65 | 5 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
66 | 6 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
67 | 7 | # | ||
68 | 8 | # This program is free software: you can redistribute it and/or modify | ||
69 | 9 | # it under the terms of the GNU Affero General Public License as | ||
70 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
71 | 11 | # License, or (at your option) any later version. | ||
72 | 12 | # | ||
73 | 13 | # This program is distributed in the hope that it will be useful, | ||
74 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
75 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
76 | 16 | # GNU Affero General Public License for more details. | ||
77 | 17 | # | ||
78 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
79 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
80 | 20 | # | ||
81 | 21 | ############################################################################## | ||
82 | 22 | |||
83 | 23 | from . import payment_line | ||
84 | 24 | from . import payment_mode | ||
85 | 25 | from . import company | ||
86 | 26 | from . import banking_export_pain | ||
87 | 0 | 27 | ||
88 | === added file 'account_banking_pain_base/__openerp__.py' | |||
89 | --- account_banking_pain_base/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
90 | +++ account_banking_pain_base/__openerp__.py 2014-03-19 00:47:00 +0000 | |||
91 | @@ -0,0 +1,50 @@ | |||
92 | 1 | ############################################################################## | ||
93 | 2 | # | ||
94 | 3 | # PAIN base module for OpenERP | ||
95 | 4 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
96 | 5 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
97 | 6 | # | ||
98 | 7 | # This program is free software: you can redistribute it and/or modify | ||
99 | 8 | # it under the terms of the GNU Affero General Public License as | ||
100 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
101 | 10 | # License, or (at your option) any later version. | ||
102 | 11 | # | ||
103 | 12 | # This program is distributed in the hope that it will be useful, | ||
104 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
105 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
106 | 15 | # GNU Affero General Public License for more details. | ||
107 | 16 | # | ||
108 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
109 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
110 | 19 | # | ||
111 | 20 | ############################################################################## | ||
112 | 21 | { | ||
113 | 22 | 'name': 'Account Banking PAIN Base Module', | ||
114 | 23 | 'summary': 'Base module for PAIN file generation', | ||
115 | 24 | 'version': '0.1', | ||
116 | 25 | 'license': 'AGPL-3', | ||
117 | 26 | 'author': 'Akretion, Noviat', | ||
118 | 27 | 'website': 'http://openerp-community-association.org/', | ||
119 | 28 | 'category': 'Hidden', | ||
120 | 29 | 'depends': ['account_banking'], | ||
121 | 30 | 'external_dependencies': { | ||
122 | 31 | 'python': ['unidecode', 'lxml'], | ||
123 | 32 | }, | ||
124 | 33 | 'data': [ | ||
125 | 34 | 'payment_line_view.xml', | ||
126 | 35 | 'payment_mode_view.xml', | ||
127 | 36 | 'company_view.xml', | ||
128 | 37 | ], | ||
129 | 38 | 'description': ''' | ||
130 | 39 | Base module for PAIN file generation | ||
131 | 40 | ==================================== | ||
132 | 41 | |||
133 | 42 | This module contains fields and functions that are used by the module for SEPA Credit Transfer (account_banking_sepa_credit_transfer) and SEPA Direct Debit (account_banking_sepa_direct_debit). This module doesn't provide any functionnality by itself. | ||
134 | 43 | |||
135 | 44 | This module is part of the banking addons: https://launchpad.net/banking-addons | ||
136 | 45 | |||
137 | 46 | This module was started during the Akretion-Noviat code sprint of November 21st 2013 in Epiais les Louvres (France). | ||
138 | 47 | ''', | ||
139 | 48 | 'active': False, | ||
140 | 49 | 'installable': True, | ||
141 | 50 | } | ||
142 | 0 | 51 | ||
143 | === added file 'account_banking_pain_base/banking_export_pain.py' | |||
144 | --- account_banking_pain_base/banking_export_pain.py 1970-01-01 00:00:00 +0000 | |||
145 | +++ account_banking_pain_base/banking_export_pain.py 2014-03-19 00:47:00 +0000 | |||
146 | @@ -0,0 +1,409 @@ | |||
147 | 1 | # -*- encoding: utf-8 -*- | ||
148 | 2 | ############################################################################## | ||
149 | 3 | # | ||
150 | 4 | # PAIN Base module for OpenERP | ||
151 | 5 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
152 | 6 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
153 | 7 | # | ||
154 | 8 | # This program is free software: you can redistribute it and/or modify | ||
155 | 9 | # it under the terms of the GNU Affero General Public License as | ||
156 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
157 | 11 | # License, or (at your option) any later version. | ||
158 | 12 | # | ||
159 | 13 | # This program is distributed in the hope that it will be useful, | ||
160 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
161 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
162 | 16 | # GNU Affero General Public License for more details. | ||
163 | 17 | # | ||
164 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
165 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
166 | 20 | # | ||
167 | 21 | ############################################################################## | ||
168 | 22 | |||
169 | 23 | from openerp.osv import orm | ||
170 | 24 | from openerp.tools.translate import _ | ||
171 | 25 | from openerp.tools.safe_eval import safe_eval | ||
172 | 26 | from datetime import datetime | ||
173 | 27 | from unidecode import unidecode | ||
174 | 28 | from lxml import etree | ||
175 | 29 | from openerp import tools | ||
176 | 30 | import logging | ||
177 | 31 | import base64 | ||
178 | 32 | |||
179 | 33 | logger = logging.getLogger(__name__) | ||
180 | 34 | |||
181 | 35 | |||
182 | 36 | class banking_export_pain(orm.AbstractModel): | ||
183 | 37 | _name = 'banking.export.pain' | ||
184 | 38 | |||
185 | 39 | def _validate_iban(self, cr, uid, iban, context=None): | ||
186 | 40 | '''if IBAN is valid, returns IBAN | ||
187 | 41 | if IBAN is NOT valid, raises an error message''' | ||
188 | 42 | partner_bank_obj = self.pool.get('res.partner.bank') | ||
189 | 43 | if partner_bank_obj.is_iban_valid(cr, uid, iban, context=context): | ||
190 | 44 | return iban.replace(' ', '') | ||
191 | 45 | else: | ||
192 | 46 | raise orm.except_orm( | ||
193 | 47 | _('Error:'), _("This IBAN is not valid : %s") % iban) | ||
194 | 48 | |||
195 | 49 | def _prepare_field( | ||
196 | 50 | self, cr, uid, field_name, field_value, eval_ctx, max_size=0, | ||
197 | 51 | gen_args=None, context=None): | ||
198 | 52 | '''This function is designed to be inherited !''' | ||
199 | 53 | if gen_args is None: | ||
200 | 54 | gen_args = {} | ||
201 | 55 | assert isinstance(eval_ctx, dict), 'eval_ctx must contain a dict' | ||
202 | 56 | try: | ||
203 | 57 | value = safe_eval(field_value, eval_ctx) | ||
204 | 58 | # SEPA uses XML ; XML = UTF-8 ; UTF-8 = support for all characters | ||
205 | 59 | # But we are dealing with banks... | ||
206 | 60 | # and many banks don't want non-ASCCI characters ! | ||
207 | 61 | # cf section 1.4 "Character set" of the SEPA Credit Transfer | ||
208 | 62 | # Scheme Customer-to-bank guidelines | ||
209 | 63 | if gen_args.get('convert_to_ascii'): | ||
210 | 64 | value = unidecode(value) | ||
211 | 65 | unallowed_ascii_chars = [ | ||
212 | 66 | '"', '#', '$', '%', '&', '*', ';', '<', '>', '=', '@', | ||
213 | 67 | '[', ']', '^', '_', '`', '{', '}', '|', '~', '\\', '!'] | ||
214 | 68 | for unallowed_ascii_char in unallowed_ascii_chars: | ||
215 | 69 | value = value.replace(unallowed_ascii_char, '-') | ||
216 | 70 | except: | ||
217 | 71 | line = eval_ctx.get('line') | ||
218 | 72 | if line: | ||
219 | 73 | raise orm.except_orm( | ||
220 | 74 | _('Error:'), | ||
221 | 75 | _("Cannot compute the '%s' of the Payment Line with " | ||
222 | 76 | "reference '%s'.") | ||
223 | 77 | % (field_name, line.name)) | ||
224 | 78 | else: | ||
225 | 79 | raise orm.except_orm( | ||
226 | 80 | _('Error:'), | ||
227 | 81 | _("Cannot compute the '%s'.") % field_name) | ||
228 | 82 | if not isinstance(value, (str, unicode)): | ||
229 | 83 | raise orm.except_orm( | ||
230 | 84 | _('Field type error:'), | ||
231 | 85 | _("The type of the field '%s' is %s. It should be a string " | ||
232 | 86 | "or unicode.") | ||
233 | 87 | % (field_name, type(value))) | ||
234 | 88 | if not value: | ||
235 | 89 | raise orm.except_orm( | ||
236 | 90 | _('Error:'), | ||
237 | 91 | _("The '%s' is empty or 0. It should have a non-null value.") | ||
238 | 92 | % field_name) | ||
239 | 93 | if max_size and len(value) > max_size: | ||
240 | 94 | value = value[0:max_size] | ||
241 | 95 | return value | ||
242 | 96 | |||
243 | 97 | def _prepare_export_sepa( | ||
244 | 98 | self, cr, uid, total_amount, transactions_count, xml_string, | ||
245 | 99 | gen_args, context=None): | ||
246 | 100 | return { | ||
247 | 101 | 'batch_booking': gen_args['sepa_export'].batch_booking, | ||
248 | 102 | 'charge_bearer': gen_args['sepa_export'].charge_bearer, | ||
249 | 103 | 'total_amount': total_amount, | ||
250 | 104 | 'nb_transactions': transactions_count, | ||
251 | 105 | 'file': base64.encodestring(xml_string), | ||
252 | 106 | 'payment_order_ids': [( | ||
253 | 107 | 6, 0, [x.id for x in gen_args['sepa_export'].payment_order_ids] | ||
254 | 108 | )], | ||
255 | 109 | } | ||
256 | 110 | |||
257 | 111 | def _validate_xml(self, cr, uid, xml_string, gen_args, context=None): | ||
258 | 112 | xsd_etree_obj = etree.parse( | ||
259 | 113 | tools.file_open(gen_args['pain_xsd_file'])) | ||
260 | 114 | official_pain_schema = etree.XMLSchema(xsd_etree_obj) | ||
261 | 115 | |||
262 | 116 | try: | ||
263 | 117 | root_to_validate = etree.fromstring(xml_string) | ||
264 | 118 | official_pain_schema.assertValid(root_to_validate) | ||
265 | 119 | except Exception, e: | ||
266 | 120 | logger.warning( | ||
267 | 121 | "The XML file is invalid against the XML Schema Definition") | ||
268 | 122 | logger.warning(xml_string) | ||
269 | 123 | logger.warning(e) | ||
270 | 124 | raise orm.except_orm( | ||
271 | 125 | _('Error:'), | ||
272 | 126 | _("The generated XML file is not valid against the official " | ||
273 | 127 | "XML Schema Definition. The generated XML file and the " | ||
274 | 128 | "full error have been written in the server logs. Here " | ||
275 | 129 | "is the error, which may give you an idea on the cause " | ||
276 | 130 | "of the problem : %s") | ||
277 | 131 | % str(e)) | ||
278 | 132 | return True | ||
279 | 133 | |||
280 | 134 | def finalize_sepa_file_creation( | ||
281 | 135 | self, cr, uid, ids, xml_root, total_amount, transactions_count, | ||
282 | 136 | gen_args, context=None): | ||
283 | 137 | xml_string = etree.tostring( | ||
284 | 138 | xml_root, pretty_print=True, encoding='UTF-8', | ||
285 | 139 | xml_declaration=True) | ||
286 | 140 | logger.debug( | ||
287 | 141 | "Generated SEPA XML file in format %s below" | ||
288 | 142 | % gen_args['pain_flavor']) | ||
289 | 143 | logger.debug(xml_string) | ||
290 | 144 | self._validate_xml(cr, uid, xml_string, gen_args, context=context) | ||
291 | 145 | |||
292 | 146 | file_id = gen_args['file_obj'].create( | ||
293 | 147 | cr, uid, self._prepare_export_sepa( | ||
294 | 148 | cr, uid, total_amount, transactions_count, | ||
295 | 149 | xml_string, gen_args, context=context), | ||
296 | 150 | context=context) | ||
297 | 151 | |||
298 | 152 | self.write( | ||
299 | 153 | cr, uid, ids, { | ||
300 | 154 | 'file_id': file_id, | ||
301 | 155 | 'state': 'finish', | ||
302 | 156 | }, context=context) | ||
303 | 157 | |||
304 | 158 | action = { | ||
305 | 159 | 'name': 'SEPA File', | ||
306 | 160 | 'type': 'ir.actions.act_window', | ||
307 | 161 | 'view_type': 'form', | ||
308 | 162 | 'view_mode': 'form,tree', | ||
309 | 163 | 'res_model': self._name, | ||
310 | 164 | 'res_id': ids[0], | ||
311 | 165 | 'target': 'new', | ||
312 | 166 | } | ||
313 | 167 | return action | ||
314 | 168 | |||
315 | 169 | def generate_group_header_block( | ||
316 | 170 | self, cr, uid, parent_node, gen_args, context=None): | ||
317 | 171 | group_header_1_0 = etree.SubElement(parent_node, 'GrpHdr') | ||
318 | 172 | message_identification_1_1 = etree.SubElement( | ||
319 | 173 | group_header_1_0, 'MsgId') | ||
320 | 174 | message_identification_1_1.text = self._prepare_field( | ||
321 | 175 | cr, uid, 'Message Identification', | ||
322 | 176 | 'sepa_export.payment_order_ids[0].reference', | ||
323 | 177 | {'sepa_export': gen_args['sepa_export']}, 35, | ||
324 | 178 | gen_args=gen_args, context=context) | ||
325 | 179 | creation_date_time_1_2 = etree.SubElement(group_header_1_0, 'CreDtTm') | ||
326 | 180 | creation_date_time_1_2.text = datetime.strftime( | ||
327 | 181 | datetime.today(), '%Y-%m-%dT%H:%M:%S') | ||
328 | 182 | if gen_args.get('pain_flavor') == 'pain.001.001.02': | ||
329 | 183 | # batch_booking is in "Group header" with pain.001.001.02 | ||
330 | 184 | # and in "Payment info" in pain.001.001.03/04 | ||
331 | 185 | batch_booking = etree.SubElement(group_header_1_0, 'BtchBookg') | ||
332 | 186 | batch_booking.text = \ | ||
333 | 187 | str(gen_args['sepa_export'].batch_booking).lower() | ||
334 | 188 | nb_of_transactions_1_6 = etree.SubElement( | ||
335 | 189 | group_header_1_0, 'NbOfTxs') | ||
336 | 190 | control_sum_1_7 = etree.SubElement(group_header_1_0, 'CtrlSum') | ||
337 | 191 | # Grpg removed in pain.001.001.03 | ||
338 | 192 | if gen_args.get('pain_flavor') == 'pain.001.001.02': | ||
339 | 193 | grouping = etree.SubElement(group_header_1_0, 'Grpg') | ||
340 | 194 | grouping.text = 'GRPD' | ||
341 | 195 | self.generate_initiating_party_block( | ||
342 | 196 | cr, uid, group_header_1_0, gen_args, | ||
343 | 197 | context=context) | ||
344 | 198 | return group_header_1_0, nb_of_transactions_1_6, control_sum_1_7 | ||
345 | 199 | |||
346 | 200 | def generate_start_payment_info_block( | ||
347 | 201 | self, cr, uid, parent_node, payment_info_ident, | ||
348 | 202 | priority, local_instrument, sequence_type, requested_date, | ||
349 | 203 | eval_ctx, gen_args, context=None): | ||
350 | 204 | payment_info_2_0 = etree.SubElement(parent_node, 'PmtInf') | ||
351 | 205 | payment_info_identification_2_1 = etree.SubElement( | ||
352 | 206 | payment_info_2_0, 'PmtInfId') | ||
353 | 207 | payment_info_identification_2_1.text = self._prepare_field( | ||
354 | 208 | cr, uid, 'Payment Information Identification', | ||
355 | 209 | payment_info_ident, eval_ctx, 35, | ||
356 | 210 | gen_args=gen_args, context=context) | ||
357 | 211 | payment_method_2_2 = etree.SubElement(payment_info_2_0, 'PmtMtd') | ||
358 | 212 | if gen_args.get('pain_flavor').startswith('pain.008.'): | ||
359 | 213 | payment_method_2_2.text = 'DD' | ||
360 | 214 | request_date_tag = 'ReqdColltnDt' | ||
361 | 215 | else: | ||
362 | 216 | payment_method_2_2.text = 'TRF' | ||
363 | 217 | request_date_tag = 'ReqdExctnDt' | ||
364 | 218 | if gen_args.get('pain_flavor') != 'pain.001.001.02': | ||
365 | 219 | batch_booking_2_3 = etree.SubElement(payment_info_2_0, 'BtchBookg') | ||
366 | 220 | batch_booking_2_3.text = \ | ||
367 | 221 | str(gen_args['sepa_export'].batch_booking).lower() | ||
368 | 222 | # The "SEPA Customer-to-bank | ||
369 | 223 | # Implementation guidelines" for SCT and SDD says that control sum | ||
370 | 224 | # and nb_of_transactions should be present | ||
371 | 225 | # at both "group header" level and "payment info" level | ||
372 | 226 | nb_of_transactions_2_4 = etree.SubElement( | ||
373 | 227 | payment_info_2_0, 'NbOfTxs') | ||
374 | 228 | control_sum_2_5 = etree.SubElement(payment_info_2_0, 'CtrlSum') | ||
375 | 229 | payment_type_info_2_6 = etree.SubElement( | ||
376 | 230 | payment_info_2_0, 'PmtTpInf') | ||
377 | 231 | if priority: | ||
378 | 232 | instruction_priority_2_7 = etree.SubElement( | ||
379 | 233 | payment_type_info_2_6, 'InstrPrty') | ||
380 | 234 | instruction_priority_2_7.text = priority | ||
381 | 235 | service_level_2_8 = etree.SubElement( | ||
382 | 236 | payment_type_info_2_6, 'SvcLvl') | ||
383 | 237 | service_level_code_2_9 = etree.SubElement(service_level_2_8, 'Cd') | ||
384 | 238 | service_level_code_2_9.text = 'SEPA' | ||
385 | 239 | if local_instrument: | ||
386 | 240 | local_instrument_2_11 = etree.SubElement( | ||
387 | 241 | payment_type_info_2_6, 'LclInstrm') | ||
388 | 242 | local_instr_code_2_12 = etree.SubElement( | ||
389 | 243 | local_instrument_2_11, 'Cd') | ||
390 | 244 | local_instr_code_2_12.text = local_instrument | ||
391 | 245 | if sequence_type: | ||
392 | 246 | sequence_type_2_14 = etree.SubElement( | ||
393 | 247 | payment_type_info_2_6, 'SeqTp') | ||
394 | 248 | sequence_type_2_14.text = sequence_type | ||
395 | 249 | |||
396 | 250 | requested_date_2_17 = etree.SubElement( | ||
397 | 251 | payment_info_2_0, request_date_tag) | ||
398 | 252 | requested_date_2_17.text = requested_date | ||
399 | 253 | return payment_info_2_0, nb_of_transactions_2_4, control_sum_2_5 | ||
400 | 254 | |||
401 | 255 | def generate_initiating_party_block( | ||
402 | 256 | self, cr, uid, parent_node, gen_args, context=None): | ||
403 | 257 | my_company_name = self._prepare_field( | ||
404 | 258 | cr, uid, 'Company Name', | ||
405 | 259 | 'sepa_export.payment_order_ids[0].mode.bank_id.partner_id.name', | ||
406 | 260 | {'sepa_export': gen_args['sepa_export']}, | ||
407 | 261 | gen_args.get('name_maxsize'), gen_args=gen_args, context=context) | ||
408 | 262 | initiating_party_1_8 = etree.SubElement(parent_node, 'InitgPty') | ||
409 | 263 | initiating_party_name = etree.SubElement(initiating_party_1_8, 'Nm') | ||
410 | 264 | initiating_party_name.text = my_company_name | ||
411 | 265 | initiating_party_identifier = self.pool['res.company'].\ | ||
412 | 266 | _get_initiating_party_identifier( | ||
413 | 267 | cr, uid, | ||
414 | 268 | gen_args['sepa_export'].payment_order_ids[0].company_id.id, | ||
415 | 269 | context=context) | ||
416 | 270 | initiating_party_issuer = gen_args['sepa_export'].\ | ||
417 | 271 | payment_order_ids[0].company_id.initiating_party_issuer | ||
418 | 272 | if initiating_party_identifier and initiating_party_issuer: | ||
419 | 273 | iniparty_id = etree.SubElement(initiating_party_1_8, 'Id') | ||
420 | 274 | iniparty_org_id = etree.SubElement(iniparty_id, 'OrgId') | ||
421 | 275 | iniparty_org_other = etree.SubElement(iniparty_org_id, 'Othr') | ||
422 | 276 | iniparty_org_other_id = etree.SubElement(iniparty_org_other, 'Id') | ||
423 | 277 | iniparty_org_other_id.text = initiating_party_identifier | ||
424 | 278 | iniparty_org_other_issuer = etree.SubElement( | ||
425 | 279 | iniparty_org_other, 'Issr') | ||
426 | 280 | iniparty_org_other_issuer.text = initiating_party_issuer | ||
427 | 281 | return True | ||
428 | 282 | |||
429 | 283 | def generate_party_bic( | ||
430 | 284 | self, cr, uid, parent_node, party_type, party_type_label, bic, | ||
431 | 285 | eval_ctx, gen_args, context=None): | ||
432 | 286 | '''Generate the piece of the XML file corresponding to BIC | ||
433 | 287 | This code is mutualized between TRF and DD''' | ||
434 | 288 | party_agent = etree.SubElement(parent_node, '%sAgt' % party_type) | ||
435 | 289 | party_agent_institution = etree.SubElement( | ||
436 | 290 | party_agent, 'FinInstnId') | ||
437 | 291 | party_agent_bic = etree.SubElement( | ||
438 | 292 | party_agent_institution, gen_args.get('bic_xml_tag')) | ||
439 | 293 | party_agent_bic.text = self._prepare_field( | ||
440 | 294 | cr, uid, '%s BIC' % party_type_label, bic, eval_ctx, | ||
441 | 295 | gen_args=gen_args, context=context) | ||
442 | 296 | return True | ||
443 | 297 | |||
444 | 298 | def generate_party_block( | ||
445 | 299 | self, cr, uid, parent_node, party_type, order, name, iban, bic, | ||
446 | 300 | eval_ctx, gen_args, context=None): | ||
447 | 301 | '''Generate the piece of the XML file corresponding to Name+IBAN+BIC | ||
448 | 302 | This code is mutualized between TRF and DD''' | ||
449 | 303 | assert order in ('B', 'C'), "Order can be 'B' or 'C'" | ||
450 | 304 | if party_type == 'Cdtr': | ||
451 | 305 | party_type_label = 'Creditor' | ||
452 | 306 | elif party_type == 'Dbtr': | ||
453 | 307 | party_type_label = 'Debtor' | ||
454 | 308 | # At C level, the order is : BIC, Name, IBAN | ||
455 | 309 | # At B level, the order is : Name, IBAN, BIC | ||
456 | 310 | if order == 'C': | ||
457 | 311 | self.generate_party_bic( | ||
458 | 312 | cr, uid, parent_node, party_type, party_type_label, bic, | ||
459 | 313 | eval_ctx, gen_args, context=context) | ||
460 | 314 | party = etree.SubElement(parent_node, party_type) | ||
461 | 315 | party_name = etree.SubElement(party, 'Nm') | ||
462 | 316 | party_name.text = self._prepare_field( | ||
463 | 317 | cr, uid, '%s Name' % party_type_label, name, eval_ctx, | ||
464 | 318 | gen_args.get('name_maxsize'), | ||
465 | 319 | gen_args=gen_args, context=context) | ||
466 | 320 | party_account = etree.SubElement( | ||
467 | 321 | parent_node, '%sAcct' % party_type) | ||
468 | 322 | party_account_id = etree.SubElement(party_account, 'Id') | ||
469 | 323 | party_account_iban = etree.SubElement( | ||
470 | 324 | party_account_id, 'IBAN') | ||
471 | 325 | piban = self._prepare_field( | ||
472 | 326 | cr, uid, '%s IBAN' % party_type_label, iban, eval_ctx, | ||
473 | 327 | gen_args=gen_args, | ||
474 | 328 | context=context) | ||
475 | 329 | viban = self._validate_iban(cr, uid, piban, context=context) | ||
476 | 330 | party_account_iban.text = viban | ||
477 | 331 | if order == 'B': | ||
478 | 332 | self.generate_party_bic( | ||
479 | 333 | cr, uid, parent_node, party_type, party_type_label, bic, | ||
480 | 334 | eval_ctx, gen_args, context=context) | ||
481 | 335 | return True | ||
482 | 336 | |||
483 | 337 | def generate_remittance_info_block( | ||
484 | 338 | self, cr, uid, parent_node, line, gen_args, context=None): | ||
485 | 339 | |||
486 | 340 | remittance_info_2_91 = etree.SubElement( | ||
487 | 341 | parent_node, 'RmtInf') | ||
488 | 342 | if line.state == 'normal': | ||
489 | 343 | remittance_info_unstructured_2_99 = etree.SubElement( | ||
490 | 344 | remittance_info_2_91, 'Ustrd') | ||
491 | 345 | remittance_info_unstructured_2_99.text = \ | ||
492 | 346 | self._prepare_field( | ||
493 | 347 | cr, uid, 'Remittance Unstructured Information', | ||
494 | 348 | 'line.communication', {'line': line}, 140, | ||
495 | 349 | gen_args=gen_args, | ||
496 | 350 | context=context) | ||
497 | 351 | else: | ||
498 | 352 | if not line.struct_communication_type: | ||
499 | 353 | raise orm.except_orm( | ||
500 | 354 | _('Error:'), | ||
501 | 355 | _("Missing 'Structured Communication Type' on payment " | ||
502 | 356 | "line with reference '%s'.") | ||
503 | 357 | % (line.name)) | ||
504 | 358 | remittance_info_unstructured_2_100 = etree.SubElement( | ||
505 | 359 | remittance_info_2_91, 'Strd') | ||
506 | 360 | creditor_ref_information_2_120 = etree.SubElement( | ||
507 | 361 | remittance_info_unstructured_2_100, 'CdtrRefInf') | ||
508 | 362 | if gen_args.get('pain_flavor') == 'pain.001.001.02': | ||
509 | 363 | creditor_ref_info_type_2_121 = etree.SubElement( | ||
510 | 364 | creditor_ref_information_2_120, 'CdtrRefTp') | ||
511 | 365 | creditor_ref_info_type_code_2_123 = etree.SubElement( | ||
512 | 366 | creditor_ref_info_type_2_121, 'Cd') | ||
513 | 367 | creditor_ref_info_type_issuer_2_125 = etree.SubElement( | ||
514 | 368 | creditor_ref_info_type_2_121, 'Issr') | ||
515 | 369 | creditor_reference_2_126 = etree.SubElement( | ||
516 | 370 | creditor_ref_information_2_120, 'CdtrRef') | ||
517 | 371 | else: | ||
518 | 372 | creditor_ref_info_type_2_121 = etree.SubElement( | ||
519 | 373 | creditor_ref_information_2_120, 'Tp') | ||
520 | 374 | creditor_ref_info_type_or_2_122 = etree.SubElement( | ||
521 | 375 | creditor_ref_info_type_2_121, 'CdOrPrtry') | ||
522 | 376 | creditor_ref_info_type_code_2_123 = etree.SubElement( | ||
523 | 377 | creditor_ref_info_type_or_2_122, 'Cd') | ||
524 | 378 | creditor_ref_info_type_issuer_2_125 = etree.SubElement( | ||
525 | 379 | creditor_ref_info_type_2_121, 'Issr') | ||
526 | 380 | creditor_reference_2_126 = etree.SubElement( | ||
527 | 381 | creditor_ref_information_2_120, 'Ref') | ||
528 | 382 | |||
529 | 383 | creditor_ref_info_type_code_2_123.text = 'SCOR' | ||
530 | 384 | creditor_ref_info_type_issuer_2_125.text = \ | ||
531 | 385 | line.struct_communication_type | ||
532 | 386 | creditor_reference_2_126.text = \ | ||
533 | 387 | self._prepare_field( | ||
534 | 388 | cr, uid, 'Creditor Structured Reference', | ||
535 | 389 | 'line.communication', {'line': line}, 35, | ||
536 | 390 | gen_args=gen_args, | ||
537 | 391 | context=context) | ||
538 | 392 | return True | ||
539 | 393 | |||
540 | 394 | def generate_creditor_scheme_identification( | ||
541 | 395 | self, cr, uid, parent_node, identification, identification_label, | ||
542 | 396 | eval_ctx, scheme_name_proprietary, gen_args, context=None): | ||
543 | 397 | csi_id = etree.SubElement( | ||
544 | 398 | parent_node, 'Id') | ||
545 | 399 | csi_privateid = csi_id = etree.SubElement(csi_id, 'PrvtId') | ||
546 | 400 | csi_other = etree.SubElement(csi_privateid, 'Othr') | ||
547 | 401 | csi_other_id = etree.SubElement(csi_other, 'Id') | ||
548 | 402 | csi_other_id.text = self._prepare_field( | ||
549 | 403 | cr, uid, identification_label, identification, eval_ctx, | ||
550 | 404 | gen_args=gen_args, context=context) | ||
551 | 405 | csi_scheme_name = etree.SubElement(csi_other, 'SchmeNm') | ||
552 | 406 | csi_scheme_name_proprietary = etree.SubElement( | ||
553 | 407 | csi_scheme_name, 'Prtry') | ||
554 | 408 | csi_scheme_name_proprietary.text = scheme_name_proprietary | ||
555 | 409 | return True | ||
556 | 0 | 410 | ||
557 | === added file 'account_banking_pain_base/company.py' | |||
558 | --- account_banking_pain_base/company.py 1970-01-01 00:00:00 +0000 | |||
559 | +++ account_banking_pain_base/company.py 2014-03-19 00:47:00 +0000 | |||
560 | @@ -0,0 +1,78 @@ | |||
561 | 1 | # -*- encoding: utf-8 -*- | ||
562 | 2 | ############################################################################## | ||
563 | 3 | # | ||
564 | 4 | # PAIN Base module for OpenERP | ||
565 | 5 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
566 | 6 | # Copyright (C) 2013 Noviat (http://www.noviat.com) | ||
567 | 7 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
568 | 8 | # @author: Luc de Meyer (Noviat) | ||
569 | 9 | # | ||
570 | 10 | # This program is free software: you can redistribute it and/or modify | ||
571 | 11 | # it under the terms of the GNU Affero General Public License as | ||
572 | 12 | # published by the Free Software Foundation, either version 3 of the | ||
573 | 13 | # License, or (at your option) any later version. | ||
574 | 14 | # | ||
575 | 15 | # This program is distributed in the hope that it will be useful, | ||
576 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
577 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
578 | 18 | # GNU Affero General Public License for more details. | ||
579 | 19 | # | ||
580 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
581 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
582 | 22 | # | ||
583 | 23 | ############################################################################## | ||
584 | 24 | |||
585 | 25 | from openerp.osv import orm, fields | ||
586 | 26 | |||
587 | 27 | |||
588 | 28 | class res_company(orm.Model): | ||
589 | 29 | _inherit = 'res.company' | ||
590 | 30 | |||
591 | 31 | _columns = { | ||
592 | 32 | 'initiating_party_issuer': fields.char( | ||
593 | 33 | 'Initiating Party Issuer', size=35, | ||
594 | 34 | help="This will be used as the 'Initiating Party Issuer' in the " | ||
595 | 35 | "PAIN files generated by OpenERP."), | ||
596 | 36 | } | ||
597 | 37 | |||
598 | 38 | def _get_initiating_party_identifier( | ||
599 | 39 | self, cr, uid, company_id, context=None): | ||
600 | 40 | '''The code here may be different from one country to another. | ||
601 | 41 | If you need to add support for an additionnal country, you can | ||
602 | 42 | contribute your code here or inherit this function in the | ||
603 | 43 | localization modules for your country''' | ||
604 | 44 | assert isinstance(company_id, int), 'Only one company ID' | ||
605 | 45 | company = self.browse(cr, uid, company_id, context=context) | ||
606 | 46 | company_vat = company.vat | ||
607 | 47 | party_identifier = False | ||
608 | 48 | if company_vat and company_vat[0:2].upper() in ['BE']: | ||
609 | 49 | party_identifier = company_vat[2:].replace(' ', '') | ||
610 | 50 | return party_identifier | ||
611 | 51 | |||
612 | 52 | def _initiating_party_issuer_default(self, cr, uid, context=None): | ||
613 | 53 | '''If you need to add support for an additionnal country, you can | ||
614 | 54 | add an entry in the dict "party_issuer_per_country" here | ||
615 | 55 | or inherit this function in the localization modules for | ||
616 | 56 | your country''' | ||
617 | 57 | initiating_party_issuer = '' | ||
618 | 58 | # If your country require the 'Initiating Party Issuer', you should | ||
619 | 59 | # contribute the entry for your country in the dict below | ||
620 | 60 | party_issuer_per_country = { | ||
621 | 61 | 'BE': 'KBO-BCE', # KBO-BCE = the registry of companies in Belgium | ||
622 | 62 | } | ||
623 | 63 | company_id = self._company_default_get( | ||
624 | 64 | cr, uid, 'res.company', context=context) | ||
625 | 65 | if company_id: | ||
626 | 66 | company = self.browse(cr, uid, company_id, context=context) | ||
627 | 67 | country_code = company.country_id.code | ||
628 | 68 | initiating_party_issuer = party_issuer_per_country.get( | ||
629 | 69 | country_code, '') | ||
630 | 70 | return initiating_party_issuer | ||
631 | 71 | |||
632 | 72 | def _initiating_party_issuer_def(self, cr, uid, context=None): | ||
633 | 73 | return self._initiating_party_issuer_default( | ||
634 | 74 | cr, uid, context=context) | ||
635 | 75 | |||
636 | 76 | _defaults = { | ||
637 | 77 | 'initiating_party_issuer': _initiating_party_issuer_def, | ||
638 | 78 | } | ||
639 | 0 | 79 | ||
640 | === added file 'account_banking_pain_base/company_view.xml' | |||
641 | --- account_banking_pain_base/company_view.xml 1970-01-01 00:00:00 +0000 | |||
642 | +++ account_banking_pain_base/company_view.xml 2014-03-19 00:47:00 +0000 | |||
643 | @@ -0,0 +1,24 @@ | |||
644 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
645 | 2 | <!-- | ||
646 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
647 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
648 | 5 | The licence is in the file __openerp__.py | ||
649 | 6 | --> | ||
650 | 7 | <openerp> | ||
651 | 8 | <data> | ||
652 | 9 | |||
653 | 10 | <record id="view_company_form" model="ir.ui.view"> | ||
654 | 11 | <field name="name">pain.group.on.res.company.form</field> | ||
655 | 12 | <field name="model">res.company</field> | ||
656 | 13 | <field name="inherit_id" ref="base.view_company_form"/> | ||
657 | 14 | <field name="arch" type="xml"> | ||
658 | 15 | <field name="currency_id" position="after"> | ||
659 | 16 | <group name="pain" string="Payment Initiation" colspan="2" col="2"> | ||
660 | 17 | <field name="initiating_party_issuer"/> | ||
661 | 18 | </group> | ||
662 | 19 | </field> | ||
663 | 20 | </field> | ||
664 | 21 | </record> | ||
665 | 22 | |||
666 | 23 | </data> | ||
667 | 24 | </openerp> | ||
668 | 0 | 25 | ||
669 | === added directory 'account_banking_pain_base/i18n' | |||
670 | === added file 'account_banking_pain_base/i18n/account_banking_pain_base.pot' | |||
671 | --- account_banking_pain_base/i18n/account_banking_pain_base.pot 1970-01-01 00:00:00 +0000 | |||
672 | +++ account_banking_pain_base/i18n/account_banking_pain_base.pot 2014-03-19 00:47:00 +0000 | |||
673 | @@ -0,0 +1,146 @@ | |||
674 | 1 | # Translation of OpenERP Server. | ||
675 | 2 | # This file contains the translation of the following modules: | ||
676 | 3 | # * account_banking_pain_base | ||
677 | 4 | # | ||
678 | 5 | msgid "" | ||
679 | 6 | msgstr "" | ||
680 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
681 | 8 | "Report-Msgid-Bugs-To: \n" | ||
682 | 9 | "POT-Creation-Date: 2013-12-23 21:26+0000\n" | ||
683 | 10 | "PO-Revision-Date: 2013-12-23 21:26+0000\n" | ||
684 | 11 | "Last-Translator: <>\n" | ||
685 | 12 | "Language-Team: \n" | ||
686 | 13 | "MIME-Version: 1.0\n" | ||
687 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
688 | 15 | "Content-Transfer-Encoding: \n" | ||
689 | 16 | "Plural-Forms: \n" | ||
690 | 17 | |||
691 | 18 | #. module: account_banking_pain_base | ||
692 | 19 | #: field:res.company,initiating_party_issuer:0 | ||
693 | 20 | msgid "Initiating Party Issuer" | ||
694 | 21 | msgstr "" | ||
695 | 22 | |||
696 | 23 | #. module: account_banking_pain_base | ||
697 | 24 | #: code:addons/account_banking_pain_base/banking_export_pain.py:122 | ||
698 | 25 | #, python-format | ||
699 | 26 | msgid "The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s" | ||
700 | 27 | msgstr "" | ||
701 | 28 | |||
702 | 29 | #. module: account_banking_pain_base | ||
703 | 30 | #: field:payment.line,priority:0 | ||
704 | 31 | msgid "Priority" | ||
705 | 32 | msgstr "" | ||
706 | 33 | |||
707 | 34 | #. module: account_banking_pain_base | ||
708 | 35 | #: model:ir.model,name:account_banking_pain_base.model_payment_line | ||
709 | 36 | msgid "Payment Line" | ||
710 | 37 | msgstr "" | ||
711 | 38 | |||
712 | 39 | #. module: account_banking_pain_base | ||
713 | 40 | #: model:ir.model,name:account_banking_pain_base.model_payment_mode | ||
714 | 41 | msgid "Payment Mode" | ||
715 | 42 | msgstr "" | ||
716 | 43 | |||
717 | 44 | #. module: account_banking_pain_base | ||
718 | 45 | #: help:res.company,initiating_party_issuer:0 | ||
719 | 46 | msgid "This will be used as the 'Initiating Party Issuer' in the PAIN files generated by OpenERP." | ||
720 | 47 | msgstr "" | ||
721 | 48 | |||
722 | 49 | #. module: account_banking_pain_base | ||
723 | 50 | #: code:addons/account_banking_pain_base/banking_export_pain.py:351 | ||
724 | 51 | #, python-format | ||
725 | 52 | msgid "Missing 'Structured Communication Type' on payment line with reference '%s'." | ||
726 | 53 | msgstr "" | ||
727 | 54 | |||
728 | 55 | #. module: account_banking_pain_base | ||
729 | 56 | #: selection:payment.line,priority:0 | ||
730 | 57 | msgid "Normal" | ||
731 | 58 | msgstr "" | ||
732 | 59 | |||
733 | 60 | #. module: account_banking_pain_base | ||
734 | 61 | #: code:addons/account_banking_pain_base/banking_export_pain.py:70 | ||
735 | 62 | #, python-format | ||
736 | 63 | msgid "Cannot compute the '%s' of the Payment Line with reference '%s'." | ||
737 | 64 | msgstr "" | ||
738 | 65 | |||
739 | 66 | #. module: account_banking_pain_base | ||
740 | 67 | #: code:addons/account_banking_pain_base/banking_export_pain.py:77 | ||
741 | 68 | #, python-format | ||
742 | 69 | msgid "Cannot compute the '%s'." | ||
743 | 70 | msgstr "" | ||
744 | 71 | |||
745 | 72 | #. module: account_banking_pain_base | ||
746 | 73 | #: code:addons/account_banking_pain_base/banking_export_pain.py:81 | ||
747 | 74 | #, python-format | ||
748 | 75 | msgid "The type of the field '%s' is %s. It should be a string or unicode." | ||
749 | 76 | msgstr "" | ||
750 | 77 | |||
751 | 78 | #. module: account_banking_pain_base | ||
752 | 79 | #: code:addons/account_banking_pain_base/banking_export_pain.py:47 | ||
753 | 80 | #: code:addons/account_banking_pain_base/banking_export_pain.py:69 | ||
754 | 81 | #: code:addons/account_banking_pain_base/banking_export_pain.py:76 | ||
755 | 82 | #: code:addons/account_banking_pain_base/banking_export_pain.py:86 | ||
756 | 83 | #: code:addons/account_banking_pain_base/banking_export_pain.py:121 | ||
757 | 84 | #: code:addons/account_banking_pain_base/banking_export_pain.py:350 | ||
758 | 85 | #, python-format | ||
759 | 86 | msgid "Error:" | ||
760 | 87 | msgstr "" | ||
761 | 88 | |||
762 | 89 | #. module: account_banking_pain_base | ||
763 | 90 | #: model:ir.model,name:account_banking_pain_base.model_res_company | ||
764 | 91 | msgid "Companies" | ||
765 | 92 | msgstr "" | ||
766 | 93 | |||
767 | 94 | #. module: account_banking_pain_base | ||
768 | 95 | #: code:addons/account_banking_pain_base/banking_export_pain.py:47 | ||
769 | 96 | #, python-format | ||
770 | 97 | msgid "This IBAN is not valid : %s" | ||
771 | 98 | msgstr "" | ||
772 | 99 | |||
773 | 100 | #. module: account_banking_pain_base | ||
774 | 101 | #: code:addons/account_banking_pain_base/banking_export_pain.py:80 | ||
775 | 102 | #, python-format | ||
776 | 103 | msgid "Field type error:" | ||
777 | 104 | msgstr "" | ||
778 | 105 | |||
779 | 106 | #. module: account_banking_pain_base | ||
780 | 107 | #: field:payment.line,struct_communication_type:0 | ||
781 | 108 | msgid "Structured Communication Type" | ||
782 | 109 | msgstr "" | ||
783 | 110 | |||
784 | 111 | #. module: account_banking_pain_base | ||
785 | 112 | #: code:addons/account_banking_pain_base/banking_export_pain.py:87 | ||
786 | 113 | #, python-format | ||
787 | 114 | msgid "The '%s' is empty or 0. It should have a non-null value." | ||
788 | 115 | msgstr "" | ||
789 | 116 | |||
790 | 117 | #. module: account_banking_pain_base | ||
791 | 118 | #: model:ir.model,name:account_banking_pain_base.model_banking_export_pain | ||
792 | 119 | msgid "banking.export.pain" | ||
793 | 120 | msgstr "" | ||
794 | 121 | |||
795 | 122 | #. module: account_banking_pain_base | ||
796 | 123 | #: help:payment.mode,convert_to_ascii:0 | ||
797 | 124 | msgid "If active, OpenERP will convert each accented caracter to the corresponding unaccented caracter, so that only ASCII caracters are used in the generated PAIN file." | ||
798 | 125 | msgstr "" | ||
799 | 126 | |||
800 | 127 | #. module: account_banking_pain_base | ||
801 | 128 | #: help:payment.line,priority:0 | ||
802 | 129 | msgid "This field will be used as the 'Instruction Priority' in the generated PAIN file." | ||
803 | 130 | msgstr "" | ||
804 | 131 | |||
805 | 132 | #. module: account_banking_pain_base | ||
806 | 133 | #: view:res.company:0 | ||
807 | 134 | msgid "Payment Initiation" | ||
808 | 135 | msgstr "" | ||
809 | 136 | |||
810 | 137 | #. module: account_banking_pain_base | ||
811 | 138 | #: selection:payment.line,priority:0 | ||
812 | 139 | msgid "High" | ||
813 | 140 | msgstr "" | ||
814 | 141 | |||
815 | 142 | #. module: account_banking_pain_base | ||
816 | 143 | #: field:payment.mode,convert_to_ascii:0 | ||
817 | 144 | msgid "Convert to ASCII" | ||
818 | 145 | msgstr "" | ||
819 | 146 | |||
820 | 0 | 147 | ||
821 | === added file 'account_banking_pain_base/i18n/fr.po' | |||
822 | --- account_banking_pain_base/i18n/fr.po 1970-01-01 00:00:00 +0000 | |||
823 | +++ account_banking_pain_base/i18n/fr.po 2014-03-19 00:47:00 +0000 | |||
824 | @@ -0,0 +1,146 @@ | |||
825 | 1 | # Translation of OpenERP Server. | ||
826 | 2 | # This file contains the translation of the following modules: | ||
827 | 3 | # * account_banking_pain_base | ||
828 | 4 | # | ||
829 | 5 | msgid "" | ||
830 | 6 | msgstr "" | ||
831 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
832 | 8 | "Report-Msgid-Bugs-To: \n" | ||
833 | 9 | "POT-Creation-Date: 2013-12-23 21:27+0000\n" | ||
834 | 10 | "PO-Revision-Date: 2013-12-23 21:27+0000\n" | ||
835 | 11 | "Last-Translator: <>\n" | ||
836 | 12 | "Language-Team: \n" | ||
837 | 13 | "MIME-Version: 1.0\n" | ||
838 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
839 | 15 | "Content-Transfer-Encoding: \n" | ||
840 | 16 | "Plural-Forms: \n" | ||
841 | 17 | |||
842 | 18 | #. module: account_banking_pain_base | ||
843 | 19 | #: field:res.company,initiating_party_issuer:0 | ||
844 | 20 | msgid "Initiating Party Issuer" | ||
845 | 21 | msgstr "Initiating Party Issuer" | ||
846 | 22 | |||
847 | 23 | #. module: account_banking_pain_base | ||
848 | 24 | #: code:addons/account_banking_pain_base/banking_export_pain.py:122 | ||
849 | 25 | #, python-format | ||
850 | 26 | msgid "The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s" | ||
851 | 27 | msgstr "Le fichier XML généré n'est pas valide par rapport à la Définition du Schéma XML officiel. Le fichier XML généré et le message d'erreur complet ont été écrits dans les logs du serveur. Voici l'erreur, qui vous donnera peut-être une idée sur la cause du problème : %s" | ||
852 | 28 | |||
853 | 29 | #. module: account_banking_pain_base | ||
854 | 30 | #: field:payment.line,priority:0 | ||
855 | 31 | msgid "Priority" | ||
856 | 32 | msgstr "Priorité" | ||
857 | 33 | |||
858 | 34 | #. module: account_banking_pain_base | ||
859 | 35 | #: model:ir.model,name:account_banking_pain_base.model_payment_line | ||
860 | 36 | msgid "Payment Line" | ||
861 | 37 | msgstr "Ligne de paiement" | ||
862 | 38 | |||
863 | 39 | #. module: account_banking_pain_base | ||
864 | 40 | #: model:ir.model,name:account_banking_pain_base.model_payment_mode | ||
865 | 41 | msgid "Payment Mode" | ||
866 | 42 | msgstr "Mode de paiement" | ||
867 | 43 | |||
868 | 44 | #. module: account_banking_pain_base | ||
869 | 45 | #: help:res.company,initiating_party_issuer:0 | ||
870 | 46 | msgid "This will be used as the 'Initiating Party Issuer' in the PAIN files generated by OpenERP." | ||
871 | 47 | msgstr "Ce champ sera le 'Initiating Party Issuer' dans les fichiers PAIN générés par OpenERP." | ||
872 | 48 | |||
873 | 49 | #. module: account_banking_pain_base | ||
874 | 50 | #: code:addons/account_banking_pain_base/banking_export_pain.py:351 | ||
875 | 51 | #, python-format | ||
876 | 52 | msgid "Missing 'Structured Communication Type' on payment line with reference '%s'." | ||
877 | 53 | msgstr "Le 'Type de communication structuré' n'est pas renseigné sur la ligne de paiement ayant la référence '%s'." | ||
878 | 54 | |||
879 | 55 | #. module: account_banking_pain_base | ||
880 | 56 | #: selection:payment.line,priority:0 | ||
881 | 57 | msgid "Normal" | ||
882 | 58 | msgstr "Normal" | ||
883 | 59 | |||
884 | 60 | #. module: account_banking_pain_base | ||
885 | 61 | #: code:addons/account_banking_pain_base/banking_export_pain.py:70 | ||
886 | 62 | #, python-format | ||
887 | 63 | msgid "Cannot compute the '%s' of the Payment Line with reference '%s'." | ||
888 | 64 | msgstr "Impossible de calculer le '%s' de la ligne de paiement ayant la référence '%s'." | ||
889 | 65 | |||
890 | 66 | #. module: account_banking_pain_base | ||
891 | 67 | #: code:addons/account_banking_pain_base/banking_export_pain.py:77 | ||
892 | 68 | #, python-format | ||
893 | 69 | msgid "Cannot compute the '%s'." | ||
894 | 70 | msgstr "Impossible de calculer le '%s'." | ||
895 | 71 | |||
896 | 72 | #. module: account_banking_pain_base | ||
897 | 73 | #: code:addons/account_banking_pain_base/banking_export_pain.py:81 | ||
898 | 74 | #, python-format | ||
899 | 75 | msgid "The type of the field '%s' is %s. It should be a string or unicode." | ||
900 | 76 | msgstr "Le type du champ '%s' est %s. Il devrait être de type string ou unicode." | ||
901 | 77 | |||
902 | 78 | #. module: account_banking_pain_base | ||
903 | 79 | #: code:addons/account_banking_pain_base/banking_export_pain.py:47 | ||
904 | 80 | #: code:addons/account_banking_pain_base/banking_export_pain.py:69 | ||
905 | 81 | #: code:addons/account_banking_pain_base/banking_export_pain.py:76 | ||
906 | 82 | #: code:addons/account_banking_pain_base/banking_export_pain.py:86 | ||
907 | 83 | #: code:addons/account_banking_pain_base/banking_export_pain.py:121 | ||
908 | 84 | #: code:addons/account_banking_pain_base/banking_export_pain.py:350 | ||
909 | 85 | #, python-format | ||
910 | 86 | msgid "Error:" | ||
911 | 87 | msgstr "Erreur :" | ||
912 | 88 | |||
913 | 89 | #. module: account_banking_pain_base | ||
914 | 90 | #: model:ir.model,name:account_banking_pain_base.model_res_company | ||
915 | 91 | msgid "Companies" | ||
916 | 92 | msgstr "Sociétés" | ||
917 | 93 | |||
918 | 94 | #. module: account_banking_pain_base | ||
919 | 95 | #: code:addons/account_banking_pain_base/banking_export_pain.py:47 | ||
920 | 96 | #, python-format | ||
921 | 97 | msgid "This IBAN is not valid : %s" | ||
922 | 98 | msgstr "Cet IBAN n'est pas valide : %s" | ||
923 | 99 | |||
924 | 100 | #. module: account_banking_pain_base | ||
925 | 101 | #: code:addons/account_banking_pain_base/banking_export_pain.py:80 | ||
926 | 102 | #, python-format | ||
927 | 103 | msgid "Field type error:" | ||
928 | 104 | msgstr "Erreur dans le type de champ :" | ||
929 | 105 | |||
930 | 106 | #. module: account_banking_pain_base | ||
931 | 107 | #: field:payment.line,struct_communication_type:0 | ||
932 | 108 | msgid "Structured Communication Type" | ||
933 | 109 | msgstr "Type de communication structurée" | ||
934 | 110 | |||
935 | 111 | #. module: account_banking_pain_base | ||
936 | 112 | #: code:addons/account_banking_pain_base/banking_export_pain.py:87 | ||
937 | 113 | #, python-format | ||
938 | 114 | msgid "The '%s' is empty or 0. It should have a non-null value." | ||
939 | 115 | msgstr "Le '%s' est vide ou égal à 0. Il devrait avoir une valeur non-nulle." | ||
940 | 116 | |||
941 | 117 | #. module: account_banking_pain_base | ||
942 | 118 | #: model:ir.model,name:account_banking_pain_base.model_banking_export_pain | ||
943 | 119 | msgid "banking.export.pain" | ||
944 | 120 | msgstr "banking.export.pain" | ||
945 | 121 | |||
946 | 122 | #. module: account_banking_pain_base | ||
947 | 123 | #: help:payment.mode,convert_to_ascii:0 | ||
948 | 124 | msgid "If active, OpenERP will convert each accented caracter to the corresponding unaccented caracter, so that only ASCII caracters are used in the generated PAIN file." | ||
949 | 125 | msgstr "Si actif, OpenERP convertira chaque caractère accentué en son équivalent non accentué, de telle façon que seuls des caractères ASCII soient utilisés dans le fichier PAIN généré." | ||
950 | 126 | |||
951 | 127 | #. module: account_banking_pain_base | ||
952 | 128 | #: help:payment.line,priority:0 | ||
953 | 129 | msgid "This field will be used as the 'Instruction Priority' in the generated PAIN file." | ||
954 | 130 | msgstr "Ce champ sera le 'Instruction Priority' dans le fichier PAIN généré." | ||
955 | 131 | |||
956 | 132 | #. module: account_banking_pain_base | ||
957 | 133 | #: view:res.company:0 | ||
958 | 134 | msgid "Payment Initiation" | ||
959 | 135 | msgstr "Payment Initiation" | ||
960 | 136 | |||
961 | 137 | #. module: account_banking_pain_base | ||
962 | 138 | #: selection:payment.line,priority:0 | ||
963 | 139 | msgid "High" | ||
964 | 140 | msgstr "Élevé" | ||
965 | 141 | |||
966 | 142 | #. module: account_banking_pain_base | ||
967 | 143 | #: field:payment.mode,convert_to_ascii:0 | ||
968 | 144 | msgid "Convert to ASCII" | ||
969 | 145 | msgstr "Convertir en ASCII" | ||
970 | 146 | |||
971 | 0 | 147 | ||
972 | === added file 'account_banking_pain_base/payment_line.py' | |||
973 | --- account_banking_pain_base/payment_line.py 1970-01-01 00:00:00 +0000 | |||
974 | +++ account_banking_pain_base/payment_line.py 2014-03-19 00:47:00 +0000 | |||
975 | @@ -0,0 +1,52 @@ | |||
976 | 1 | # -*- encoding: utf-8 -*- | ||
977 | 2 | ############################################################################## | ||
978 | 3 | # | ||
979 | 4 | # PAIN Base module for OpenERP | ||
980 | 5 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
981 | 6 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
982 | 7 | # | ||
983 | 8 | # This program is free software: you can redistribute it and/or modify | ||
984 | 9 | # it under the terms of the GNU Affero General Public License as | ||
985 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
986 | 11 | # License, or (at your option) any later version. | ||
987 | 12 | # | ||
988 | 13 | # This program is distributed in the hope that it will be useful, | ||
989 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
990 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
991 | 16 | # GNU Affero General Public License for more details. | ||
992 | 17 | # | ||
993 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
994 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
995 | 20 | # | ||
996 | 21 | ############################################################################## | ||
997 | 22 | |||
998 | 23 | from openerp.osv import orm, fields | ||
999 | 24 | |||
1000 | 25 | |||
1001 | 26 | class payment_line(orm.Model): | ||
1002 | 27 | _inherit = 'payment.line' | ||
1003 | 28 | |||
1004 | 29 | def _get_struct_communication_types(self, cr, uid, context=None): | ||
1005 | 30 | return [('ISO', 'ISO')] | ||
1006 | 31 | |||
1007 | 32 | _columns = { | ||
1008 | 33 | 'priority': fields.selection([ | ||
1009 | 34 | ('NORM', 'Normal'), | ||
1010 | 35 | ('HIGH', 'High'), | ||
1011 | 36 | ], 'Priority', | ||
1012 | 37 | help="This field will be used as the 'Instruction Priority' in " | ||
1013 | 38 | "the generated PAIN file."), | ||
1014 | 39 | # Update size from 64 to 140, because PAIN allows 140 caracters | ||
1015 | 40 | 'communication': fields.char( | ||
1016 | 41 | 'Communication', size=140, required=True, | ||
1017 | 42 | help="Used as the message between ordering customer and current " | ||
1018 | 43 | "company. Depicts 'What do you want to say to the recipient " | ||
1019 | 44 | "about this order ?'"), | ||
1020 | 45 | 'struct_communication_type': fields.selection( | ||
1021 | 46 | _get_struct_communication_types, 'Structured Communication Type'), | ||
1022 | 47 | } | ||
1023 | 48 | |||
1024 | 49 | _defaults = { | ||
1025 | 50 | 'priority': 'NORM', | ||
1026 | 51 | 'struct_communication_type': 'ISO', | ||
1027 | 52 | } | ||
1028 | 0 | 53 | ||
1029 | === added file 'account_banking_pain_base/payment_line_view.xml' | |||
1030 | --- account_banking_pain_base/payment_line_view.xml 1970-01-01 00:00:00 +0000 | |||
1031 | +++ account_banking_pain_base/payment_line_view.xml 2014-03-19 00:47:00 +0000 | |||
1032 | @@ -0,0 +1,43 @@ | |||
1033 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
1034 | 2 | <!-- | ||
1035 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
1036 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
1037 | 5 | The licence is in the file __openerp__.py | ||
1038 | 6 | --> | ||
1039 | 7 | <openerp> | ||
1040 | 8 | <data> | ||
1041 | 9 | |||
1042 | 10 | <record id="view_payment_line_form" model="ir.ui.view"> | ||
1043 | 11 | <field name="name">pain.base.payment.line.form</field> | ||
1044 | 12 | <field name="model">payment.line</field> | ||
1045 | 13 | <field name="inherit_id" ref="account_payment.view_payment_line_form"/> | ||
1046 | 14 | <field name="arch" type="xml"> | ||
1047 | 15 | <field name="bank_id" position="after"> | ||
1048 | 16 | <field name="priority"/> | ||
1049 | 17 | <newline /> | ||
1050 | 18 | </field> | ||
1051 | 19 | <field name="communication2" position="replace"/> | ||
1052 | 20 | <field name="state" position="after"> | ||
1053 | 21 | <field name="struct_communication_type" attrs="{'invisible': [('state', '!=', 'structured')], 'required': [('state', '=', 'structured')]}"/> | ||
1054 | 22 | </field> | ||
1055 | 23 | </field> | ||
1056 | 24 | </record> | ||
1057 | 25 | |||
1058 | 26 | <record id="view_payment_order_form" model="ir.ui.view"> | ||
1059 | 27 | <field name="name">pain.base.payment.line.inside.order.form</field> | ||
1060 | 28 | <field name="model">payment.order</field> | ||
1061 | 29 | <field name="inherit_id" ref="account_payment.view_payment_order_form"/> | ||
1062 | 30 | <field name="arch" type="xml"> | ||
1063 | 31 | <xpath expr="//field[@name='line_ids']/form//field[@name='bank_id']" position="after"> | ||
1064 | 32 | <field name="priority"/> | ||
1065 | 33 | <newline /> | ||
1066 | 34 | </xpath> | ||
1067 | 35 | <xpath expr="//field[@name='line_ids']/form//field[@name='communication2']" position="replace"/> | ||
1068 | 36 | <xpath expr="//field[@name='line_ids']/form//field[@name='state']" position="after"> | ||
1069 | 37 | <field name="struct_communication_type" attrs="{'invisible': [('state', '!=', 'structured')], 'required': [('state', '=', 'structured')]}"/> | ||
1070 | 38 | </xpath> | ||
1071 | 39 | </field> | ||
1072 | 40 | </record> | ||
1073 | 41 | |||
1074 | 42 | </data> | ||
1075 | 43 | </openerp> | ||
1076 | 0 | 44 | ||
1077 | === added file 'account_banking_pain_base/payment_mode.py' | |||
1078 | --- account_banking_pain_base/payment_mode.py 1970-01-01 00:00:00 +0000 | |||
1079 | +++ account_banking_pain_base/payment_mode.py 2014-03-19 00:47:00 +0000 | |||
1080 | @@ -0,0 +1,39 @@ | |||
1081 | 1 | # -*- encoding: utf-8 -*- | ||
1082 | 2 | ############################################################################## | ||
1083 | 3 | # | ||
1084 | 4 | # PAIN Base module for OpenERP | ||
1085 | 5 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
1086 | 6 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
1087 | 7 | # | ||
1088 | 8 | # This program is free software: you can redistribute it and/or modify | ||
1089 | 9 | # it under the terms of the GNU Affero General Public License as | ||
1090 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
1091 | 11 | # License, or (at your option) any later version. | ||
1092 | 12 | # | ||
1093 | 13 | # This program is distributed in the hope that it will be useful, | ||
1094 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1095 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1096 | 16 | # GNU Affero General Public License for more details. | ||
1097 | 17 | # | ||
1098 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
1099 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1100 | 20 | # | ||
1101 | 21 | ############################################################################## | ||
1102 | 22 | |||
1103 | 23 | from openerp.osv import orm, fields | ||
1104 | 24 | |||
1105 | 25 | |||
1106 | 26 | class payment_mode(orm.Model): | ||
1107 | 27 | _inherit = 'payment.mode' | ||
1108 | 28 | |||
1109 | 29 | _columns = { | ||
1110 | 30 | 'convert_to_ascii': fields.boolean( | ||
1111 | 31 | 'Convert to ASCII', | ||
1112 | 32 | help="If active, OpenERP will convert each accented caracter to " | ||
1113 | 33 | "the corresponding unaccented caracter, so that only ASCII " | ||
1114 | 34 | "caracters are used in the generated PAIN file."), | ||
1115 | 35 | } | ||
1116 | 36 | |||
1117 | 37 | _defaults = { | ||
1118 | 38 | 'convert_to_ascii': True, | ||
1119 | 39 | } | ||
1120 | 0 | 40 | ||
1121 | === added file 'account_banking_pain_base/payment_mode_view.xml' | |||
1122 | --- account_banking_pain_base/payment_mode_view.xml 1970-01-01 00:00:00 +0000 | |||
1123 | +++ account_banking_pain_base/payment_mode_view.xml 2014-03-19 00:47:00 +0000 | |||
1124 | @@ -0,0 +1,22 @@ | |||
1125 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
1126 | 2 | <!-- | ||
1127 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
1128 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
1129 | 5 | The licence is in the file __openerp__.py | ||
1130 | 6 | --> | ||
1131 | 7 | <openerp> | ||
1132 | 8 | <data> | ||
1133 | 9 | |||
1134 | 10 | <record id="view_payment_mode_form_inherit" model="ir.ui.view"> | ||
1135 | 11 | <field name="name">add.convert_to_ascii.in.payment.mode.form</field> | ||
1136 | 12 | <field name="model">payment.mode</field> | ||
1137 | 13 | <field name="inherit_id" ref="account_banking.view_payment_mode_form_inherit"/> | ||
1138 | 14 | <field name="arch" type="xml"> | ||
1139 | 15 | <field name="type" position="after"> | ||
1140 | 16 | <field name="convert_to_ascii"/> | ||
1141 | 17 | </field> | ||
1142 | 18 | </field> | ||
1143 | 19 | </record> | ||
1144 | 20 | |||
1145 | 21 | </data> | ||
1146 | 22 | </openerp> | ||
1147 | 0 | 23 | ||
1148 | === modified file 'account_banking_sepa_credit_transfer/__init__.py' | |||
1149 | --- account_banking_sepa_credit_transfer/__init__.py 2013-05-15 20:09:21 +0000 | |||
1150 | +++ account_banking_sepa_credit_transfer/__init__.py 2014-03-19 00:47:00 +0000 | |||
1151 | @@ -20,6 +20,5 @@ | |||
1152 | 20 | # | 20 | # |
1153 | 21 | ############################################################################## | 21 | ############################################################################## |
1154 | 22 | 22 | ||
1158 | 23 | import wizard | 23 | from . import wizard |
1159 | 24 | import account_banking_sepa | 24 | from . import account_banking_sepa |
1157 | 25 | |||
1160 | 26 | 25 | ||
1161 | === modified file 'account_banking_sepa_credit_transfer/__openerp__.py' | |||
1162 | --- account_banking_sepa_credit_transfer/__openerp__.py 2013-09-22 19:51:06 +0000 | |||
1163 | +++ account_banking_sepa_credit_transfer/__openerp__.py 2014-03-19 00:47:00 +0000 | |||
1164 | @@ -21,24 +21,25 @@ | |||
1165 | 21 | { | 21 | { |
1166 | 22 | 'name': 'Account Banking SEPA Credit Transfer', | 22 | 'name': 'Account Banking SEPA Credit Transfer', |
1167 | 23 | 'summary': 'Create SEPA XML files for Credit Transfers', | 23 | 'summary': 'Create SEPA XML files for Credit Transfers', |
1169 | 24 | 'version': '0.1', | 24 | 'version': '0.2', |
1170 | 25 | 'license': 'AGPL-3', | 25 | 'license': 'AGPL-3', |
1171 | 26 | 'author': 'Akretion', | 26 | 'author': 'Akretion', |
1172 | 27 | 'website': 'http://www.akretion.com', | 27 | 'website': 'http://www.akretion.com', |
1173 | 28 | 'category': 'Banking addons', | 28 | 'category': 'Banking addons', |
1177 | 29 | 'depends': ['account_banking'], | 29 | 'depends': ['account_banking_pain_base'], |
1178 | 30 | 'init_xml': [], | 30 | 'external_dependencies': { |
1179 | 31 | 'update_xml': [ | 31 | 'python': ['unidecode', 'lxml'], |
1180 | 32 | }, | ||
1181 | 33 | 'data': [ | ||
1182 | 32 | 'account_banking_sepa_view.xml', | 34 | 'account_banking_sepa_view.xml', |
1183 | 33 | 'wizard/export_sepa_view.xml', | 35 | 'wizard/export_sepa_view.xml', |
1184 | 34 | 'data/payment_type_sepa_sct.xml', | 36 | 'data/payment_type_sepa_sct.xml', |
1185 | 35 | 'security/ir.model.access.csv', | 37 | 'security/ir.model.access.csv', |
1186 | 36 | ], | 38 | ], |
1187 | 37 | 'demo_xml': [], | ||
1188 | 38 | 'description': ''' | 39 | 'description': ''' |
1189 | 39 | Module to export payment orders in SEPA XML file format. | 40 | Module to export payment orders in SEPA XML file format. |
1190 | 40 | 41 | ||
1192 | 41 | SEPA PAIN (PAyment INitiation) is the new european standard for Customer-to-Bank payment instructions. This module implements SEPA Credit Transfer (SCT), more specifically PAIN versions 001.001.02, 001.001.03 and 001.001.04. It is part of the ISO 20022 standard, available on http://www.iso20022.org. | 42 | SEPA PAIN (PAyment INitiation) is the new european standard for Customer-to-Bank payment instructions. This module implements SEPA Credit Transfer (SCT), more specifically PAIN versions 001.001.02, 001.001.03, 001.001.04 and 001.001.05. It is part of the ISO 20022 standard, available on http://www.iso20022.org. |
1193 | 42 | 43 | ||
1194 | 43 | The Implementation Guidelines for SEPA Credit Transfer published by the European Payments Council (http://http://www.europeanpaymentscouncil.eu) use PAIN version 001.001.03, so it's probably the version of PAIN that you should try first. | 44 | The Implementation Guidelines for SEPA Credit Transfer published by the European Payments Council (http://http://www.europeanpaymentscouncil.eu) use PAIN version 001.001.03, so it's probably the version of PAIN that you should try first. |
1195 | 44 | 45 | ||
1196 | @@ -48,4 +49,5 @@ | |||
1197 | 48 | ''', | 49 | ''', |
1198 | 49 | 'active': False, | 50 | 'active': False, |
1199 | 50 | 'installable': True, | 51 | 'installable': True, |
1200 | 52 | 'application': True, | ||
1201 | 51 | } | 53 | } |
1202 | 52 | 54 | ||
1203 | === modified file 'account_banking_sepa_credit_transfer/account_banking_sepa.py' | |||
1204 | --- account_banking_sepa_credit_transfer/account_banking_sepa.py 2013-05-22 21:07:52 +0000 | |||
1205 | +++ account_banking_sepa_credit_transfer/account_banking_sepa.py 2014-03-19 00:47:00 +0000 | |||
1206 | @@ -19,22 +19,26 @@ | |||
1207 | 19 | # | 19 | # |
1208 | 20 | ############################################################################## | 20 | ############################################################################## |
1209 | 21 | 21 | ||
1213 | 22 | from osv import osv, fields | 22 | from openerp.osv import orm, fields |
1211 | 23 | import time | ||
1212 | 24 | from tools.translate import _ | ||
1214 | 25 | import decimal_precision as dp | 23 | import decimal_precision as dp |
1218 | 26 | 24 | from unidecode import unidecode | |
1219 | 27 | 25 | ||
1220 | 28 | class banking_export_sepa(osv.osv): | 26 | |
1221 | 27 | class banking_export_sepa(orm.Model): | ||
1222 | 29 | '''SEPA export''' | 28 | '''SEPA export''' |
1223 | 30 | _name = 'banking.export.sepa' | 29 | _name = 'banking.export.sepa' |
1224 | 31 | _description = __doc__ | 30 | _description = __doc__ |
1226 | 32 | _rec_name = 'msg_identification' | 31 | _rec_name = 'filename' |
1227 | 33 | 32 | ||
1228 | 34 | def _generate_filename(self, cr, uid, ids, name, arg, context=None): | 33 | def _generate_filename(self, cr, uid, ids, name, arg, context=None): |
1229 | 35 | res = {} | 34 | res = {} |
1230 | 36 | for sepa_file in self.browse(cr, uid, ids, context=context): | 35 | for sepa_file in self.browse(cr, uid, ids, context=context): |
1232 | 37 | res[sepa_file.id] = 'sepa_' + (sepa_file.msg_identification or '') + '.xml' | 36 | ref = sepa_file.payment_order_ids[0].reference |
1233 | 37 | if ref: | ||
1234 | 38 | label = unidecode(ref.replace('/', '-')) | ||
1235 | 39 | else: | ||
1236 | 40 | label = 'error' | ||
1237 | 41 | res[sepa_file.id] = 'sct_%s.xml' % label | ||
1238 | 38 | return res | 42 | return res |
1239 | 39 | 43 | ||
1240 | 40 | _columns = { | 44 | _columns = { |
1241 | @@ -42,39 +46,45 @@ | |||
1242 | 42 | 'payment.order', | 46 | 'payment.order', |
1243 | 43 | 'account_payment_order_sepa_rel', | 47 | 'account_payment_order_sepa_rel', |
1244 | 44 | 'banking_export_sepa_id', 'account_order_id', | 48 | 'banking_export_sepa_id', 'account_order_id', |
1255 | 45 | 'Payment orders', | 49 | 'Payment Orders', |
1256 | 46 | readonly=True), | 50 | readonly=True), |
1257 | 47 | 'prefered_exec_date': fields.date('Prefered execution date', readonly=True), | 51 | 'nb_transactions': fields.integer( |
1258 | 48 | 'nb_transactions': fields.integer('Number of transactions', readonly=True), | 52 | 'Number of Transactions', readonly=True), |
1259 | 49 | 'total_amount': fields.float('Total amount', | 53 | 'total_amount': fields.float( |
1260 | 50 | digits_compute=dp.get_precision('Account'), readonly=True), | 54 | 'Total Amount', digits_compute=dp.get_precision('Account'), |
1261 | 51 | 'msg_identification': fields.char('Message identification', size=35, | 55 | readonly=True), |
1262 | 52 | readonly=True), | 56 | 'batch_booking': fields.boolean( |
1263 | 53 | 'batch_booking': fields.boolean('Batch booking', readonly=True, | 57 | 'Batch Booking', readonly=True, |
1264 | 54 | help="If true, the bank statement will display only one debit line for all the wire transfers of the SEPA XML file ; if false, the bank statement will display one debit line per wire transfer of the SEPA XML file."), | 58 | help="If true, the bank statement will display only one debit " |
1265 | 59 | "line for all the wire transfers of the SEPA XML file ; " | ||
1266 | 60 | "if false, the bank statement will display one debit line " | ||
1267 | 61 | "per wire transfer of the SEPA XML file."), | ||
1268 | 55 | 'charge_bearer': fields.selection([ | 62 | 'charge_bearer': fields.selection([ |
1269 | 63 | ('SLEV', 'Following Service Level'), | ||
1270 | 56 | ('SHAR', 'Shared'), | 64 | ('SHAR', 'Shared'), |
1277 | 57 | ('CRED', 'Borne by creditor'), | 65 | ('CRED', 'Borne by Creditor'), |
1278 | 58 | ('DEBT', 'Borne by debtor'), | 66 | ('DEBT', 'Borne by Debtor'), |
1279 | 59 | ('SLEV', 'Following service level'), | 67 | ], 'Charge Bearer', readonly=True, |
1280 | 60 | ], 'Charge bearer', readonly=True, | 68 | help="Following service level : transaction charges are to be " |
1281 | 61 | help='Shared : transaction charges on the sender side are to be borne by the debtor, transaction charges on the receiver side are to be borne by the creditor (most transfers use this). Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor. Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme.'), | 69 | "applied following the rules agreed in the service level and/or " |
1282 | 62 | 'generation_date': fields.datetime('Generation date', | 70 | "scheme (SEPA Core messages must use this). Shared : " |
1283 | 71 | "transaction charges on the creditor side are to be borne by " | ||
1284 | 72 | "the creditor, transaction charges on the debtor side are to " | ||
1285 | 73 | "be borne by the debtor. Borne by creditor : all transaction " | ||
1286 | 74 | "charges are to be borne by the creditor. Borne by debtor : " | ||
1287 | 75 | "all transaction charges are to be borne by the debtor."), | ||
1288 | 76 | 'create_date': fields.datetime('Generation Date', readonly=True), | ||
1289 | 77 | 'file': fields.binary('SEPA XML File', readonly=True), | ||
1290 | 78 | 'filename': fields.function( | ||
1291 | 79 | _generate_filename, type='char', size=256, string='Filename', | ||
1292 | 63 | readonly=True), | 80 | readonly=True), |
1293 | 64 | 'file': fields.binary('SEPA XML file', readonly=True), | ||
1294 | 65 | 'filename': fields.function(_generate_filename, type='char', size=256, | ||
1295 | 66 | method=True, string='Filename', readonly=True), | ||
1296 | 67 | 'state': fields.selection([ | 81 | 'state': fields.selection([ |
1300 | 68 | ('draft', 'Draft'), | 82 | ('draft', 'Draft'), |
1301 | 69 | ('sent', 'Sent'), | 83 | ('sent', 'Sent'), |
1302 | 70 | ('done', 'Reconciled'), | 84 | ('done', 'Reconciled'), |
1303 | 71 | ], 'State', readonly=True), | 85 | ], 'State', readonly=True), |
1304 | 72 | } | 86 | } |
1305 | 73 | 87 | ||
1306 | 74 | _defaults = { | 88 | _defaults = { |
1307 | 75 | 'generation_date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'), | ||
1308 | 76 | 'state': 'draft', | 89 | 'state': 'draft', |
1309 | 77 | } | 90 | } |
1310 | 78 | |||
1311 | 79 | banking_export_sepa() | ||
1312 | 80 | |||
1313 | 81 | 91 | ||
1314 | === modified file 'account_banking_sepa_credit_transfer/account_banking_sepa_view.xml' | |||
1315 | --- account_banking_sepa_credit_transfer/account_banking_sepa_view.xml 2013-09-22 19:51:06 +0000 | |||
1316 | +++ account_banking_sepa_credit_transfer/account_banking_sepa_view.xml 2014-03-19 00:47:00 +0000 | |||
1317 | @@ -15,20 +15,18 @@ | |||
1318 | 15 | <form string="SEPA Credit Transfer"> | 15 | <form string="SEPA Credit Transfer"> |
1319 | 16 | <notebook> | 16 | <notebook> |
1320 | 17 | <page string="General Information"> | 17 | <page string="General Information"> |
1321 | 18 | <field name="msg_identification" select="1" /> | ||
1322 | 19 | <field name="total_amount" /> | 18 | <field name="total_amount" /> |
1323 | 20 | <field name="nb_transactions" /> | 19 | <field name="nb_transactions" /> |
1324 | 21 | <field name="prefered_exec_date" /> | ||
1325 | 22 | <field name="batch_booking" /> | 20 | <field name="batch_booking" /> |
1326 | 23 | <field name="charge_bearer"/> | 21 | <field name="charge_bearer"/> |
1328 | 24 | <field name="generation_date" /> | 22 | <field name="create_date" /> |
1329 | 25 | <newline /> | 23 | <newline /> |
1330 | 26 | <field name="file" filename="filename"/> | 24 | <field name="file" filename="filename"/> |
1331 | 27 | <field name="filename" invisible="True"/> | 25 | <field name="filename" invisible="True"/> |
1332 | 28 | </page> | 26 | </page> |
1333 | 29 | <page string="Payment Orders"> | 27 | <page string="Payment Orders"> |
1334 | 30 | <field name="payment_order_ids" colspan="4" nolabel="1"> | 28 | <field name="payment_order_ids" colspan="4" nolabel="1"> |
1336 | 31 | <tree colors="blue:state in ('draft');gray:state in ('cancel','done');black:state in ('open')" string="Payment order"> | 29 | <tree colors="blue:state in ('draft');gray:state in ('cancel','done');black:state in ('open')" string="Payment Orders"> |
1337 | 32 | <field name="reference"/> | 30 | <field name="reference"/> |
1338 | 33 | <field name="date_created"/> | 31 | <field name="date_created"/> |
1339 | 34 | <field name="date_done"/> | 32 | <field name="date_done"/> |
1340 | @@ -49,9 +47,8 @@ | |||
1341 | 49 | <field name="type">tree</field> | 47 | <field name="type">tree</field> |
1342 | 50 | <field name="arch" type="xml"> | 48 | <field name="arch" type="xml"> |
1343 | 51 | <tree string="SEPA Credit Transfer"> | 49 | <tree string="SEPA Credit Transfer"> |
1347 | 52 | <field name="msg_identification"/> | 50 | <field name="filename"/> |
1348 | 53 | <field name="prefered_exec_date"/> | 51 | <field name="create_date"/> |
1346 | 54 | <field name="generation_date"/> | ||
1349 | 55 | <field name="nb_transactions"/> | 52 | <field name="nb_transactions"/> |
1350 | 56 | </tree> | 53 | </tree> |
1351 | 57 | </field> | 54 | </field> |
1352 | @@ -59,7 +56,7 @@ | |||
1353 | 59 | 56 | ||
1354 | 60 | 57 | ||
1355 | 61 | <record id="action_account_banking_sepa" model="ir.actions.act_window"> | 58 | <record id="action_account_banking_sepa" model="ir.actions.act_window"> |
1357 | 62 | <field name="name">Generated SEPA Credit Transfer XML files</field> | 59 | <field name="name">SEPA Credit Transfer Files</field> |
1358 | 63 | <field name="res_model">banking.export.sepa</field> | 60 | <field name="res_model">banking.export.sepa</field> |
1359 | 64 | <field name="view_type">form</field> | 61 | <field name="view_type">form</field> |
1360 | 65 | <field name="view_mode">tree,form</field> | 62 | <field name="view_mode">tree,form</field> |
1361 | @@ -67,13 +64,13 @@ | |||
1362 | 67 | 64 | ||
1363 | 68 | 65 | ||
1364 | 69 | <menuitem id="menu_account_banking_sepa" | 66 | <menuitem id="menu_account_banking_sepa" |
1366 | 70 | parent="account_banking.menu_finance_banking_actions" | 67 | parent="account_payment.menu_main_payment" |
1367 | 71 | action="action_account_banking_sepa" | 68 | action="action_account_banking_sepa" |
1368 | 72 | sequence="15" | 69 | sequence="15" |
1369 | 73 | /> | 70 | /> |
1370 | 74 | 71 | ||
1371 | 75 | <act_window id="act_banking_export_sepa_payment_order" | 72 | <act_window id="act_banking_export_sepa_payment_order" |
1373 | 76 | name="Generated SEPA Credit Transfer files" | 73 | name="SEPA Credit Transfer Files" |
1374 | 77 | domain="[('payment_order_ids', '=', active_id)]" | 74 | domain="[('payment_order_ids', '=', active_id)]" |
1375 | 78 | res_model="banking.export.sepa" | 75 | res_model="banking.export.sepa" |
1376 | 79 | src_model="payment.order" | 76 | src_model="payment.order" |
1377 | 80 | 77 | ||
1378 | === added file 'account_banking_sepa_credit_transfer/data/pain.001.001.05.xsd' | |||
1379 | --- account_banking_sepa_credit_transfer/data/pain.001.001.05.xsd 1970-01-01 00:00:00 +0000 | |||
1380 | +++ account_banking_sepa_credit_transfer/data/pain.001.001.05.xsd 2014-03-19 00:47:00 +0000 | |||
1381 | @@ -0,0 +1,931 @@ | |||
1382 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
1383 | 2 | <!--Generated by Standards Editor (build:R1.0.41.3) on 2013 Mar 05 13:39:40, ISO 20022 version : 2013--> | ||
1384 | 3 | <xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.05" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pain.001.001.05"> | ||
1385 | 4 | <xs:element name="Document" type="Document"/> | ||
1386 | 5 | <xs:complexType name="AccountIdentification4Choice"> | ||
1387 | 6 | <xs:choice> | ||
1388 | 7 | <xs:element name="IBAN" type="IBAN2007Identifier"/> | ||
1389 | 8 | <xs:element name="Othr" type="GenericAccountIdentification1"/> | ||
1390 | 9 | </xs:choice> | ||
1391 | 10 | </xs:complexType> | ||
1392 | 11 | <xs:complexType name="AccountSchemeName1Choice"> | ||
1393 | 12 | <xs:choice> | ||
1394 | 13 | <xs:element name="Cd" type="ExternalAccountIdentification1Code"/> | ||
1395 | 14 | <xs:element name="Prtry" type="Max35Text"/> | ||
1396 | 15 | </xs:choice> | ||
1397 | 16 | </xs:complexType> | ||
1398 | 17 | <xs:simpleType name="ActiveOrHistoricCurrencyAndAmount_SimpleType"> | ||
1399 | 18 | <xs:restriction base="xs:decimal"> | ||
1400 | 19 | <xs:fractionDigits value="5"/> | ||
1401 | 20 | <xs:totalDigits value="18"/> | ||
1402 | 21 | <xs:minInclusive value="0"/> | ||
1403 | 22 | </xs:restriction> | ||
1404 | 23 | </xs:simpleType> | ||
1405 | 24 | <xs:complexType name="ActiveOrHistoricCurrencyAndAmount"> | ||
1406 | 25 | <xs:simpleContent> | ||
1407 | 26 | <xs:extension base="ActiveOrHistoricCurrencyAndAmount_SimpleType"> | ||
1408 | 27 | <xs:attribute name="Ccy" type="ActiveOrHistoricCurrencyCode" use="required"/> | ||
1409 | 28 | </xs:extension> | ||
1410 | 29 | </xs:simpleContent> | ||
1411 | 30 | </xs:complexType> | ||
1412 | 31 | <xs:simpleType name="ActiveOrHistoricCurrencyCode"> | ||
1413 | 32 | <xs:restriction base="xs:string"> | ||
1414 | 33 | <xs:pattern value="[A-Z]{3,3}"/> | ||
1415 | 34 | </xs:restriction> | ||
1416 | 35 | </xs:simpleType> | ||
1417 | 36 | <xs:simpleType name="AddressType2Code"> | ||
1418 | 37 | <xs:restriction base="xs:string"> | ||
1419 | 38 | <xs:enumeration value="ADDR"/> | ||
1420 | 39 | <xs:enumeration value="PBOX"/> | ||
1421 | 40 | <xs:enumeration value="HOME"/> | ||
1422 | 41 | <xs:enumeration value="BIZZ"/> | ||
1423 | 42 | <xs:enumeration value="MLTO"/> | ||
1424 | 43 | <xs:enumeration value="DLVY"/> | ||
1425 | 44 | </xs:restriction> | ||
1426 | 45 | </xs:simpleType> | ||
1427 | 46 | <xs:complexType name="AmountType3Choice"> | ||
1428 | 47 | <xs:choice> | ||
1429 | 48 | <xs:element name="InstdAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
1430 | 49 | <xs:element name="EqvtAmt" type="EquivalentAmount2"/> | ||
1431 | 50 | </xs:choice> | ||
1432 | 51 | </xs:complexType> | ||
1433 | 52 | <xs:simpleType name="AnyBICIdentifier"> | ||
1434 | 53 | <xs:restriction base="xs:string"> | ||
1435 | 54 | <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/> | ||
1436 | 55 | </xs:restriction> | ||
1437 | 56 | </xs:simpleType> | ||
1438 | 57 | <xs:complexType name="Authorisation1Choice"> | ||
1439 | 58 | <xs:choice> | ||
1440 | 59 | <xs:element name="Cd" type="Authorisation1Code"/> | ||
1441 | 60 | <xs:element name="Prtry" type="Max128Text"/> | ||
1442 | 61 | </xs:choice> | ||
1443 | 62 | </xs:complexType> | ||
1444 | 63 | <xs:simpleType name="Authorisation1Code"> | ||
1445 | 64 | <xs:restriction base="xs:string"> | ||
1446 | 65 | <xs:enumeration value="AUTH"/> | ||
1447 | 66 | <xs:enumeration value="FDET"/> | ||
1448 | 67 | <xs:enumeration value="FSUM"/> | ||
1449 | 68 | <xs:enumeration value="ILEV"/> | ||
1450 | 69 | </xs:restriction> | ||
1451 | 70 | </xs:simpleType> | ||
1452 | 71 | <xs:simpleType name="BICFIIdentifier"> | ||
1453 | 72 | <xs:restriction base="xs:string"> | ||
1454 | 73 | <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/> | ||
1455 | 74 | </xs:restriction> | ||
1456 | 75 | </xs:simpleType> | ||
1457 | 76 | <xs:simpleType name="BaseOneRate"> | ||
1458 | 77 | <xs:restriction base="xs:decimal"> | ||
1459 | 78 | <xs:fractionDigits value="10"/> | ||
1460 | 79 | <xs:totalDigits value="11"/> | ||
1461 | 80 | </xs:restriction> | ||
1462 | 81 | </xs:simpleType> | ||
1463 | 82 | <xs:simpleType name="BatchBookingIndicator"> | ||
1464 | 83 | <xs:restriction base="xs:boolean"/> | ||
1465 | 84 | </xs:simpleType> | ||
1466 | 85 | <xs:complexType name="BranchAndFinancialInstitutionIdentification5"> | ||
1467 | 86 | <xs:sequence> | ||
1468 | 87 | <xs:element name="FinInstnId" type="FinancialInstitutionIdentification8"/> | ||
1469 | 88 | <xs:element maxOccurs="1" minOccurs="0" name="BrnchId" type="BranchData2"/> | ||
1470 | 89 | </xs:sequence> | ||
1471 | 90 | </xs:complexType> | ||
1472 | 91 | <xs:complexType name="BranchData2"> | ||
1473 | 92 | <xs:sequence> | ||
1474 | 93 | <xs:element maxOccurs="1" minOccurs="0" name="Id" type="Max35Text"/> | ||
1475 | 94 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
1476 | 95 | <xs:element maxOccurs="1" minOccurs="0" name="PstlAdr" type="PostalAddress6"/> | ||
1477 | 96 | </xs:sequence> | ||
1478 | 97 | </xs:complexType> | ||
1479 | 98 | <xs:complexType name="CashAccount24"> | ||
1480 | 99 | <xs:sequence> | ||
1481 | 100 | <xs:element name="Id" type="AccountIdentification4Choice"/> | ||
1482 | 101 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="CashAccountType2Choice"/> | ||
1483 | 102 | <xs:element maxOccurs="1" minOccurs="0" name="Ccy" type="ActiveOrHistoricCurrencyCode"/> | ||
1484 | 103 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max70Text"/> | ||
1485 | 104 | </xs:sequence> | ||
1486 | 105 | </xs:complexType> | ||
1487 | 106 | <xs:complexType name="CashAccountType2Choice"> | ||
1488 | 107 | <xs:choice> | ||
1489 | 108 | <xs:element name="Cd" type="ExternalCashAccountType1Code"/> | ||
1490 | 109 | <xs:element name="Prtry" type="Max35Text"/> | ||
1491 | 110 | </xs:choice> | ||
1492 | 111 | </xs:complexType> | ||
1493 | 112 | <xs:complexType name="CategoryPurpose1Choice"> | ||
1494 | 113 | <xs:choice> | ||
1495 | 114 | <xs:element name="Cd" type="ExternalCategoryPurpose1Code"/> | ||
1496 | 115 | <xs:element name="Prtry" type="Max35Text"/> | ||
1497 | 116 | </xs:choice> | ||
1498 | 117 | </xs:complexType> | ||
1499 | 118 | <xs:simpleType name="ChargeBearerType1Code"> | ||
1500 | 119 | <xs:restriction base="xs:string"> | ||
1501 | 120 | <xs:enumeration value="DEBT"/> | ||
1502 | 121 | <xs:enumeration value="CRED"/> | ||
1503 | 122 | <xs:enumeration value="SHAR"/> | ||
1504 | 123 | <xs:enumeration value="SLEV"/> | ||
1505 | 124 | </xs:restriction> | ||
1506 | 125 | </xs:simpleType> | ||
1507 | 126 | <xs:complexType name="Cheque7"> | ||
1508 | 127 | <xs:sequence> | ||
1509 | 128 | <xs:element maxOccurs="1" minOccurs="0" name="ChqTp" type="ChequeType2Code"/> | ||
1510 | 129 | <xs:element maxOccurs="1" minOccurs="0" name="ChqNb" type="Max35Text"/> | ||
1511 | 130 | <xs:element maxOccurs="1" minOccurs="0" name="ChqFr" type="NameAndAddress10"/> | ||
1512 | 131 | <xs:element maxOccurs="1" minOccurs="0" name="DlvryMtd" type="ChequeDeliveryMethod1Choice"/> | ||
1513 | 132 | <xs:element maxOccurs="1" minOccurs="0" name="DlvrTo" type="NameAndAddress10"/> | ||
1514 | 133 | <xs:element maxOccurs="1" minOccurs="0" name="InstrPrty" type="Priority2Code"/> | ||
1515 | 134 | <xs:element maxOccurs="1" minOccurs="0" name="ChqMtrtyDt" type="ISODate"/> | ||
1516 | 135 | <xs:element maxOccurs="1" minOccurs="0" name="FrmsCd" type="Max35Text"/> | ||
1517 | 136 | <xs:element maxOccurs="2" minOccurs="0" name="MemoFld" type="Max35Text"/> | ||
1518 | 137 | <xs:element maxOccurs="1" minOccurs="0" name="RgnlClrZone" type="Max35Text"/> | ||
1519 | 138 | <xs:element maxOccurs="1" minOccurs="0" name="PrtLctn" type="Max35Text"/> | ||
1520 | 139 | <xs:element maxOccurs="5" minOccurs="0" name="Sgntr" type="Max70Text"/> | ||
1521 | 140 | </xs:sequence> | ||
1522 | 141 | </xs:complexType> | ||
1523 | 142 | <xs:simpleType name="ChequeDelivery1Code"> | ||
1524 | 143 | <xs:restriction base="xs:string"> | ||
1525 | 144 | <xs:enumeration value="MLDB"/> | ||
1526 | 145 | <xs:enumeration value="MLCD"/> | ||
1527 | 146 | <xs:enumeration value="MLFA"/> | ||
1528 | 147 | <xs:enumeration value="CRDB"/> | ||
1529 | 148 | <xs:enumeration value="CRCD"/> | ||
1530 | 149 | <xs:enumeration value="CRFA"/> | ||
1531 | 150 | <xs:enumeration value="PUDB"/> | ||
1532 | 151 | <xs:enumeration value="PUCD"/> | ||
1533 | 152 | <xs:enumeration value="PUFA"/> | ||
1534 | 153 | <xs:enumeration value="RGDB"/> | ||
1535 | 154 | <xs:enumeration value="RGCD"/> | ||
1536 | 155 | <xs:enumeration value="RGFA"/> | ||
1537 | 156 | </xs:restriction> | ||
1538 | 157 | </xs:simpleType> | ||
1539 | 158 | <xs:complexType name="ChequeDeliveryMethod1Choice"> | ||
1540 | 159 | <xs:choice> | ||
1541 | 160 | <xs:element name="Cd" type="ChequeDelivery1Code"/> | ||
1542 | 161 | <xs:element name="Prtry" type="Max35Text"/> | ||
1543 | 162 | </xs:choice> | ||
1544 | 163 | </xs:complexType> | ||
1545 | 164 | <xs:simpleType name="ChequeType2Code"> | ||
1546 | 165 | <xs:restriction base="xs:string"> | ||
1547 | 166 | <xs:enumeration value="CCHQ"/> | ||
1548 | 167 | <xs:enumeration value="CCCH"/> | ||
1549 | 168 | <xs:enumeration value="BCHQ"/> | ||
1550 | 169 | <xs:enumeration value="DRFT"/> | ||
1551 | 170 | <xs:enumeration value="ELDR"/> | ||
1552 | 171 | </xs:restriction> | ||
1553 | 172 | </xs:simpleType> | ||
1554 | 173 | <xs:complexType name="ClearingSystemIdentification2Choice"> | ||
1555 | 174 | <xs:choice> | ||
1556 | 175 | <xs:element name="Cd" type="ExternalClearingSystemIdentification1Code"/> | ||
1557 | 176 | <xs:element name="Prtry" type="Max35Text"/> | ||
1558 | 177 | </xs:choice> | ||
1559 | 178 | </xs:complexType> | ||
1560 | 179 | <xs:complexType name="ClearingSystemMemberIdentification2"> | ||
1561 | 180 | <xs:sequence> | ||
1562 | 181 | <xs:element maxOccurs="1" minOccurs="0" name="ClrSysId" type="ClearingSystemIdentification2Choice"/> | ||
1563 | 182 | <xs:element name="MmbId" type="Max35Text"/> | ||
1564 | 183 | </xs:sequence> | ||
1565 | 184 | </xs:complexType> | ||
1566 | 185 | <xs:complexType name="ContactDetails2"> | ||
1567 | 186 | <xs:sequence> | ||
1568 | 187 | <xs:element maxOccurs="1" minOccurs="0" name="NmPrfx" type="NamePrefix1Code"/> | ||
1569 | 188 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
1570 | 189 | <xs:element maxOccurs="1" minOccurs="0" name="PhneNb" type="PhoneNumber"/> | ||
1571 | 190 | <xs:element maxOccurs="1" minOccurs="0" name="MobNb" type="PhoneNumber"/> | ||
1572 | 191 | <xs:element maxOccurs="1" minOccurs="0" name="FaxNb" type="PhoneNumber"/> | ||
1573 | 192 | <xs:element maxOccurs="1" minOccurs="0" name="EmailAdr" type="Max2048Text"/> | ||
1574 | 193 | <xs:element maxOccurs="1" minOccurs="0" name="Othr" type="Max35Text"/> | ||
1575 | 194 | </xs:sequence> | ||
1576 | 195 | </xs:complexType> | ||
1577 | 196 | <xs:simpleType name="CountryCode"> | ||
1578 | 197 | <xs:restriction base="xs:string"> | ||
1579 | 198 | <xs:pattern value="[A-Z]{2,2}"/> | ||
1580 | 199 | </xs:restriction> | ||
1581 | 200 | </xs:simpleType> | ||
1582 | 201 | <xs:simpleType name="CreditDebitCode"> | ||
1583 | 202 | <xs:restriction base="xs:string"> | ||
1584 | 203 | <xs:enumeration value="CRDT"/> | ||
1585 | 204 | <xs:enumeration value="DBIT"/> | ||
1586 | 205 | </xs:restriction> | ||
1587 | 206 | </xs:simpleType> | ||
1588 | 207 | <xs:complexType name="CreditTransferTransaction6"> | ||
1589 | 208 | <xs:sequence> | ||
1590 | 209 | <xs:element name="PmtId" type="PaymentIdentification1"/> | ||
1591 | 210 | <xs:element maxOccurs="1" minOccurs="0" name="PmtTpInf" type="PaymentTypeInformation19"/> | ||
1592 | 211 | <xs:element name="Amt" type="AmountType3Choice"/> | ||
1593 | 212 | <xs:element maxOccurs="1" minOccurs="0" name="XchgRateInf" type="ExchangeRate1"/> | ||
1594 | 213 | <xs:element maxOccurs="1" minOccurs="0" name="ChrgBr" type="ChargeBearerType1Code"/> | ||
1595 | 214 | <xs:element maxOccurs="1" minOccurs="0" name="ChqInstr" type="Cheque7"/> | ||
1596 | 215 | <xs:element maxOccurs="1" minOccurs="0" name="UltmtDbtr" type="PartyIdentification43"/> | ||
1597 | 216 | <xs:element maxOccurs="1" minOccurs="0" name="IntrmyAgt1" type="BranchAndFinancialInstitutionIdentification5"/> | ||
1598 | 217 | <xs:element maxOccurs="1" minOccurs="0" name="IntrmyAgt1Acct" type="CashAccount24"/> | ||
1599 | 218 | <xs:element maxOccurs="1" minOccurs="0" name="IntrmyAgt2" type="BranchAndFinancialInstitutionIdentification5"/> | ||
1600 | 219 | <xs:element maxOccurs="1" minOccurs="0" name="IntrmyAgt2Acct" type="CashAccount24"/> | ||
1601 | 220 | <xs:element maxOccurs="1" minOccurs="0" name="IntrmyAgt3" type="BranchAndFinancialInstitutionIdentification5"/> | ||
1602 | 221 | <xs:element maxOccurs="1" minOccurs="0" name="IntrmyAgt3Acct" type="CashAccount24"/> | ||
1603 | 222 | <xs:element maxOccurs="1" minOccurs="0" name="CdtrAgt" type="BranchAndFinancialInstitutionIdentification5"/> | ||
1604 | 223 | <xs:element maxOccurs="1" minOccurs="0" name="CdtrAgtAcct" type="CashAccount24"/> | ||
1605 | 224 | <xs:element maxOccurs="1" minOccurs="0" name="Cdtr" type="PartyIdentification43"/> | ||
1606 | 225 | <xs:element maxOccurs="1" minOccurs="0" name="CdtrAcct" type="CashAccount24"/> | ||
1607 | 226 | <xs:element maxOccurs="1" minOccurs="0" name="UltmtCdtr" type="PartyIdentification43"/> | ||
1608 | 227 | <xs:element maxOccurs="unbounded" minOccurs="0" name="InstrForCdtrAgt" type="InstructionForCreditorAgent1"/> | ||
1609 | 228 | <xs:element maxOccurs="1" minOccurs="0" name="InstrForDbtrAgt" type="Max140Text"/> | ||
1610 | 229 | <xs:element maxOccurs="1" minOccurs="0" name="Purp" type="Purpose2Choice"/> | ||
1611 | 230 | <xs:element maxOccurs="10" minOccurs="0" name="RgltryRptg" type="RegulatoryReporting3"/> | ||
1612 | 231 | <xs:element maxOccurs="1" minOccurs="0" name="Tax" type="TaxInformation3"/> | ||
1613 | 232 | <xs:element maxOccurs="10" minOccurs="0" name="RltdRmtInf" type="RemittanceLocation2"/> | ||
1614 | 233 | <xs:element maxOccurs="1" minOccurs="0" name="RmtInf" type="RemittanceInformation7"/> | ||
1615 | 234 | <xs:element maxOccurs="unbounded" minOccurs="0" name="SplmtryData" type="SupplementaryData1"/> | ||
1616 | 235 | </xs:sequence> | ||
1617 | 236 | </xs:complexType> | ||
1618 | 237 | <xs:complexType name="CreditorReferenceInformation2"> | ||
1619 | 238 | <xs:sequence> | ||
1620 | 239 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="CreditorReferenceType2"/> | ||
1621 | 240 | <xs:element maxOccurs="1" minOccurs="0" name="Ref" type="Max35Text"/> | ||
1622 | 241 | </xs:sequence> | ||
1623 | 242 | </xs:complexType> | ||
1624 | 243 | <xs:complexType name="CreditorReferenceType1Choice"> | ||
1625 | 244 | <xs:choice> | ||
1626 | 245 | <xs:element name="Cd" type="DocumentType3Code"/> | ||
1627 | 246 | <xs:element name="Prtry" type="Max35Text"/> | ||
1628 | 247 | </xs:choice> | ||
1629 | 248 | </xs:complexType> | ||
1630 | 249 | <xs:complexType name="CreditorReferenceType2"> | ||
1631 | 250 | <xs:sequence> | ||
1632 | 251 | <xs:element name="CdOrPrtry" type="CreditorReferenceType1Choice"/> | ||
1633 | 252 | <xs:element maxOccurs="1" minOccurs="0" name="Issr" type="Max35Text"/> | ||
1634 | 253 | </xs:sequence> | ||
1635 | 254 | </xs:complexType> | ||
1636 | 255 | <xs:complexType name="CustomerCreditTransferInitiationV05"> | ||
1637 | 256 | <xs:sequence> | ||
1638 | 257 | <xs:element name="GrpHdr" type="GroupHeader48"/> | ||
1639 | 258 | <xs:element maxOccurs="unbounded" minOccurs="1" name="PmtInf" type="PaymentInstruction9"/> | ||
1640 | 259 | <xs:element maxOccurs="unbounded" minOccurs="0" name="SplmtryData" type="SupplementaryData1"/> | ||
1641 | 260 | </xs:sequence> | ||
1642 | 261 | </xs:complexType> | ||
1643 | 262 | <xs:complexType name="DateAndPlaceOfBirth"> | ||
1644 | 263 | <xs:sequence> | ||
1645 | 264 | <xs:element name="BirthDt" type="ISODate"/> | ||
1646 | 265 | <xs:element maxOccurs="1" minOccurs="0" name="PrvcOfBirth" type="Max35Text"/> | ||
1647 | 266 | <xs:element name="CityOfBirth" type="Max35Text"/> | ||
1648 | 267 | <xs:element name="CtryOfBirth" type="CountryCode"/> | ||
1649 | 268 | </xs:sequence> | ||
1650 | 269 | </xs:complexType> | ||
1651 | 270 | <xs:complexType name="DatePeriodDetails"> | ||
1652 | 271 | <xs:sequence> | ||
1653 | 272 | <xs:element name="FrDt" type="ISODate"/> | ||
1654 | 273 | <xs:element name="ToDt" type="ISODate"/> | ||
1655 | 274 | </xs:sequence> | ||
1656 | 275 | </xs:complexType> | ||
1657 | 276 | <xs:simpleType name="DecimalNumber"> | ||
1658 | 277 | <xs:restriction base="xs:decimal"> | ||
1659 | 278 | <xs:fractionDigits value="17"/> | ||
1660 | 279 | <xs:totalDigits value="18"/> | ||
1661 | 280 | </xs:restriction> | ||
1662 | 281 | </xs:simpleType> | ||
1663 | 282 | <xs:complexType name="DiscountAmountAndType1"> | ||
1664 | 283 | <xs:sequence> | ||
1665 | 284 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="DiscountAmountType1Choice"/> | ||
1666 | 285 | <xs:element name="Amt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
1667 | 286 | </xs:sequence> | ||
1668 | 287 | </xs:complexType> | ||
1669 | 288 | <xs:complexType name="DiscountAmountType1Choice"> | ||
1670 | 289 | <xs:choice> | ||
1671 | 290 | <xs:element name="Cd" type="ExternalDiscountAmountType1Code"/> | ||
1672 | 291 | <xs:element name="Prtry" type="Max35Text"/> | ||
1673 | 292 | </xs:choice> | ||
1674 | 293 | </xs:complexType> | ||
1675 | 294 | <xs:complexType name="Document"> | ||
1676 | 295 | <xs:sequence> | ||
1677 | 296 | <xs:element name="CstmrCdtTrfInitn" type="CustomerCreditTransferInitiationV05"/> | ||
1678 | 297 | </xs:sequence> | ||
1679 | 298 | </xs:complexType> | ||
1680 | 299 | <xs:complexType name="DocumentAdjustment1"> | ||
1681 | 300 | <xs:sequence> | ||
1682 | 301 | <xs:element name="Amt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
1683 | 302 | <xs:element maxOccurs="1" minOccurs="0" name="CdtDbtInd" type="CreditDebitCode"/> | ||
1684 | 303 | <xs:element maxOccurs="1" minOccurs="0" name="Rsn" type="Max4Text"/> | ||
1685 | 304 | <xs:element maxOccurs="1" minOccurs="0" name="AddtlInf" type="Max140Text"/> | ||
1686 | 305 | </xs:sequence> | ||
1687 | 306 | </xs:complexType> | ||
1688 | 307 | <xs:simpleType name="DocumentType3Code"> | ||
1689 | 308 | <xs:restriction base="xs:string"> | ||
1690 | 309 | <xs:enumeration value="RADM"/> | ||
1691 | 310 | <xs:enumeration value="RPIN"/> | ||
1692 | 311 | <xs:enumeration value="FXDR"/> | ||
1693 | 312 | <xs:enumeration value="DISP"/> | ||
1694 | 313 | <xs:enumeration value="PUOR"/> | ||
1695 | 314 | <xs:enumeration value="SCOR"/> | ||
1696 | 315 | </xs:restriction> | ||
1697 | 316 | </xs:simpleType> | ||
1698 | 317 | <xs:simpleType name="DocumentType5Code"> | ||
1699 | 318 | <xs:restriction base="xs:string"> | ||
1700 | 319 | <xs:enumeration value="MSIN"/> | ||
1701 | 320 | <xs:enumeration value="CNFA"/> | ||
1702 | 321 | <xs:enumeration value="DNFA"/> | ||
1703 | 322 | <xs:enumeration value="CINV"/> | ||
1704 | 323 | <xs:enumeration value="CREN"/> | ||
1705 | 324 | <xs:enumeration value="DEBN"/> | ||
1706 | 325 | <xs:enumeration value="HIRI"/> | ||
1707 | 326 | <xs:enumeration value="SBIN"/> | ||
1708 | 327 | <xs:enumeration value="CMCN"/> | ||
1709 | 328 | <xs:enumeration value="SOAC"/> | ||
1710 | 329 | <xs:enumeration value="DISP"/> | ||
1711 | 330 | <xs:enumeration value="BOLD"/> | ||
1712 | 331 | <xs:enumeration value="VCHR"/> | ||
1713 | 332 | <xs:enumeration value="AROI"/> | ||
1714 | 333 | <xs:enumeration value="TSUT"/> | ||
1715 | 334 | </xs:restriction> | ||
1716 | 335 | </xs:simpleType> | ||
1717 | 336 | <xs:complexType name="EquivalentAmount2"> | ||
1718 | 337 | <xs:sequence> | ||
1719 | 338 | <xs:element name="Amt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
1720 | 339 | <xs:element name="CcyOfTrf" type="ActiveOrHistoricCurrencyCode"/> | ||
1721 | 340 | </xs:sequence> | ||
1722 | 341 | </xs:complexType> | ||
1723 | 342 | <xs:complexType name="ExchangeRate1"> | ||
1724 | 343 | <xs:sequence> | ||
1725 | 344 | <xs:element maxOccurs="1" minOccurs="0" name="UnitCcy" type="ActiveOrHistoricCurrencyCode"/> | ||
1726 | 345 | <xs:element maxOccurs="1" minOccurs="0" name="XchgRate" type="BaseOneRate"/> | ||
1727 | 346 | <xs:element maxOccurs="1" minOccurs="0" name="RateTp" type="ExchangeRateType1Code"/> | ||
1728 | 347 | <xs:element maxOccurs="1" minOccurs="0" name="CtrctId" type="Max35Text"/> | ||
1729 | 348 | </xs:sequence> | ||
1730 | 349 | </xs:complexType> | ||
1731 | 350 | <xs:simpleType name="ExchangeRateType1Code"> | ||
1732 | 351 | <xs:restriction base="xs:string"> | ||
1733 | 352 | <xs:enumeration value="SPOT"/> | ||
1734 | 353 | <xs:enumeration value="SALE"/> | ||
1735 | 354 | <xs:enumeration value="AGRD"/> | ||
1736 | 355 | </xs:restriction> | ||
1737 | 356 | </xs:simpleType> | ||
1738 | 357 | <xs:simpleType name="ExternalAccountIdentification1Code"> | ||
1739 | 358 | <xs:restriction base="xs:string"> | ||
1740 | 359 | <xs:minLength value="1"/> | ||
1741 | 360 | <xs:maxLength value="4"/> | ||
1742 | 361 | </xs:restriction> | ||
1743 | 362 | </xs:simpleType> | ||
1744 | 363 | <xs:simpleType name="ExternalCashAccountType1Code"> | ||
1745 | 364 | <xs:restriction base="xs:string"> | ||
1746 | 365 | <xs:minLength value="1"/> | ||
1747 | 366 | <xs:maxLength value="4"/> | ||
1748 | 367 | </xs:restriction> | ||
1749 | 368 | </xs:simpleType> | ||
1750 | 369 | <xs:simpleType name="ExternalCategoryPurpose1Code"> | ||
1751 | 370 | <xs:restriction base="xs:string"> | ||
1752 | 371 | <xs:minLength value="1"/> | ||
1753 | 372 | <xs:maxLength value="4"/> | ||
1754 | 373 | </xs:restriction> | ||
1755 | 374 | </xs:simpleType> | ||
1756 | 375 | <xs:simpleType name="ExternalClearingSystemIdentification1Code"> | ||
1757 | 376 | <xs:restriction base="xs:string"> | ||
1758 | 377 | <xs:minLength value="1"/> | ||
1759 | 378 | <xs:maxLength value="5"/> | ||
1760 | 379 | </xs:restriction> | ||
1761 | 380 | </xs:simpleType> | ||
1762 | 381 | <xs:simpleType name="ExternalDiscountAmountType1Code"> | ||
1763 | 382 | <xs:restriction base="xs:string"> | ||
1764 | 383 | <xs:minLength value="1"/> | ||
1765 | 384 | <xs:maxLength value="4"/> | ||
1766 | 385 | </xs:restriction> | ||
1767 | 386 | </xs:simpleType> | ||
1768 | 387 | <xs:simpleType name="ExternalFinancialInstitutionIdentification1Code"> | ||
1769 | 388 | <xs:restriction base="xs:string"> | ||
1770 | 389 | <xs:minLength value="1"/> | ||
1771 | 390 | <xs:maxLength value="4"/> | ||
1772 | 391 | </xs:restriction> | ||
1773 | 392 | </xs:simpleType> | ||
1774 | 393 | <xs:simpleType name="ExternalLocalInstrument1Code"> | ||
1775 | 394 | <xs:restriction base="xs:string"> | ||
1776 | 395 | <xs:minLength value="1"/> | ||
1777 | 396 | <xs:maxLength value="35"/> | ||
1778 | 397 | </xs:restriction> | ||
1779 | 398 | </xs:simpleType> | ||
1780 | 399 | <xs:simpleType name="ExternalOrganisationIdentification1Code"> | ||
1781 | 400 | <xs:restriction base="xs:string"> | ||
1782 | 401 | <xs:minLength value="1"/> | ||
1783 | 402 | <xs:maxLength value="4"/> | ||
1784 | 403 | </xs:restriction> | ||
1785 | 404 | </xs:simpleType> | ||
1786 | 405 | <xs:simpleType name="ExternalPersonIdentification1Code"> | ||
1787 | 406 | <xs:restriction base="xs:string"> | ||
1788 | 407 | <xs:minLength value="1"/> | ||
1789 | 408 | <xs:maxLength value="4"/> | ||
1790 | 409 | </xs:restriction> | ||
1791 | 410 | </xs:simpleType> | ||
1792 | 411 | <xs:simpleType name="ExternalPurpose1Code"> | ||
1793 | 412 | <xs:restriction base="xs:string"> | ||
1794 | 413 | <xs:minLength value="1"/> | ||
1795 | 414 | <xs:maxLength value="4"/> | ||
1796 | 415 | </xs:restriction> | ||
1797 | 416 | </xs:simpleType> | ||
1798 | 417 | <xs:simpleType name="ExternalServiceLevel1Code"> | ||
1799 | 418 | <xs:restriction base="xs:string"> | ||
1800 | 419 | <xs:minLength value="1"/> | ||
1801 | 420 | <xs:maxLength value="4"/> | ||
1802 | 421 | </xs:restriction> | ||
1803 | 422 | </xs:simpleType> | ||
1804 | 423 | <xs:simpleType name="ExternalTaxAmountType1Code"> | ||
1805 | 424 | <xs:restriction base="xs:string"> | ||
1806 | 425 | <xs:minLength value="1"/> | ||
1807 | 426 | <xs:maxLength value="4"/> | ||
1808 | 427 | </xs:restriction> | ||
1809 | 428 | </xs:simpleType> | ||
1810 | 429 | <xs:complexType name="FinancialIdentificationSchemeName1Choice"> | ||
1811 | 430 | <xs:choice> | ||
1812 | 431 | <xs:element name="Cd" type="ExternalFinancialInstitutionIdentification1Code"/> | ||
1813 | 432 | <xs:element name="Prtry" type="Max35Text"/> | ||
1814 | 433 | </xs:choice> | ||
1815 | 434 | </xs:complexType> | ||
1816 | 435 | <xs:complexType name="FinancialInstitutionIdentification8"> | ||
1817 | 436 | <xs:sequence> | ||
1818 | 437 | <xs:element maxOccurs="1" minOccurs="0" name="BICFI" type="BICFIIdentifier"/> | ||
1819 | 438 | <xs:element maxOccurs="1" minOccurs="0" name="ClrSysMmbId" type="ClearingSystemMemberIdentification2"/> | ||
1820 | 439 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
1821 | 440 | <xs:element maxOccurs="1" minOccurs="0" name="PstlAdr" type="PostalAddress6"/> | ||
1822 | 441 | <xs:element maxOccurs="1" minOccurs="0" name="Othr" type="GenericFinancialIdentification1"/> | ||
1823 | 442 | </xs:sequence> | ||
1824 | 443 | </xs:complexType> | ||
1825 | 444 | <xs:complexType name="GenericAccountIdentification1"> | ||
1826 | 445 | <xs:sequence> | ||
1827 | 446 | <xs:element name="Id" type="Max34Text"/> | ||
1828 | 447 | <xs:element maxOccurs="1" minOccurs="0" name="SchmeNm" type="AccountSchemeName1Choice"/> | ||
1829 | 448 | <xs:element maxOccurs="1" minOccurs="0" name="Issr" type="Max35Text"/> | ||
1830 | 449 | </xs:sequence> | ||
1831 | 450 | </xs:complexType> | ||
1832 | 451 | <xs:complexType name="GenericFinancialIdentification1"> | ||
1833 | 452 | <xs:sequence> | ||
1834 | 453 | <xs:element name="Id" type="Max35Text"/> | ||
1835 | 454 | <xs:element maxOccurs="1" minOccurs="0" name="SchmeNm" type="FinancialIdentificationSchemeName1Choice"/> | ||
1836 | 455 | <xs:element maxOccurs="1" minOccurs="0" name="Issr" type="Max35Text"/> | ||
1837 | 456 | </xs:sequence> | ||
1838 | 457 | </xs:complexType> | ||
1839 | 458 | <xs:complexType name="GenericOrganisationIdentification1"> | ||
1840 | 459 | <xs:sequence> | ||
1841 | 460 | <xs:element name="Id" type="Max35Text"/> | ||
1842 | 461 | <xs:element maxOccurs="1" minOccurs="0" name="SchmeNm" type="OrganisationIdentificationSchemeName1Choice"/> | ||
1843 | 462 | <xs:element maxOccurs="1" minOccurs="0" name="Issr" type="Max35Text"/> | ||
1844 | 463 | </xs:sequence> | ||
1845 | 464 | </xs:complexType> | ||
1846 | 465 | <xs:complexType name="GenericPersonIdentification1"> | ||
1847 | 466 | <xs:sequence> | ||
1848 | 467 | <xs:element name="Id" type="Max35Text"/> | ||
1849 | 468 | <xs:element maxOccurs="1" minOccurs="0" name="SchmeNm" type="PersonIdentificationSchemeName1Choice"/> | ||
1850 | 469 | <xs:element maxOccurs="1" minOccurs="0" name="Issr" type="Max35Text"/> | ||
1851 | 470 | </xs:sequence> | ||
1852 | 471 | </xs:complexType> | ||
1853 | 472 | <xs:complexType name="GroupHeader48"> | ||
1854 | 473 | <xs:sequence> | ||
1855 | 474 | <xs:element name="MsgId" type="Max35Text"/> | ||
1856 | 475 | <xs:element name="CreDtTm" type="ISODateTime"/> | ||
1857 | 476 | <xs:element maxOccurs="2" minOccurs="0" name="Authstn" type="Authorisation1Choice"/> | ||
1858 | 477 | <xs:element name="NbOfTxs" type="Max15NumericText"/> | ||
1859 | 478 | <xs:element maxOccurs="1" minOccurs="0" name="CtrlSum" type="DecimalNumber"/> | ||
1860 | 479 | <xs:element name="InitgPty" type="PartyIdentification43"/> | ||
1861 | 480 | <xs:element maxOccurs="1" minOccurs="0" name="FwdgAgt" type="BranchAndFinancialInstitutionIdentification5"/> | ||
1862 | 481 | </xs:sequence> | ||
1863 | 482 | </xs:complexType> | ||
1864 | 483 | <xs:simpleType name="IBAN2007Identifier"> | ||
1865 | 484 | <xs:restriction base="xs:string"> | ||
1866 | 485 | <xs:pattern value="[A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}"/> | ||
1867 | 486 | </xs:restriction> | ||
1868 | 487 | </xs:simpleType> | ||
1869 | 488 | <xs:simpleType name="ISODate"> | ||
1870 | 489 | <xs:restriction base="xs:date"/> | ||
1871 | 490 | </xs:simpleType> | ||
1872 | 491 | <xs:simpleType name="ISODateTime"> | ||
1873 | 492 | <xs:restriction base="xs:dateTime"/> | ||
1874 | 493 | </xs:simpleType> | ||
1875 | 494 | <xs:simpleType name="Instruction3Code"> | ||
1876 | 495 | <xs:restriction base="xs:string"> | ||
1877 | 496 | <xs:enumeration value="CHQB"/> | ||
1878 | 497 | <xs:enumeration value="HOLD"/> | ||
1879 | 498 | <xs:enumeration value="PHOB"/> | ||
1880 | 499 | <xs:enumeration value="TELB"/> | ||
1881 | 500 | </xs:restriction> | ||
1882 | 501 | </xs:simpleType> | ||
1883 | 502 | <xs:complexType name="InstructionForCreditorAgent1"> | ||
1884 | 503 | <xs:sequence> | ||
1885 | 504 | <xs:element maxOccurs="1" minOccurs="0" name="Cd" type="Instruction3Code"/> | ||
1886 | 505 | <xs:element maxOccurs="1" minOccurs="0" name="InstrInf" type="Max140Text"/> | ||
1887 | 506 | </xs:sequence> | ||
1888 | 507 | </xs:complexType> | ||
1889 | 508 | <xs:complexType name="LocalInstrument2Choice"> | ||
1890 | 509 | <xs:choice> | ||
1891 | 510 | <xs:element name="Cd" type="ExternalLocalInstrument1Code"/> | ||
1892 | 511 | <xs:element name="Prtry" type="Max35Text"/> | ||
1893 | 512 | </xs:choice> | ||
1894 | 513 | </xs:complexType> | ||
1895 | 514 | <xs:simpleType name="Max10Text"> | ||
1896 | 515 | <xs:restriction base="xs:string"> | ||
1897 | 516 | <xs:minLength value="1"/> | ||
1898 | 517 | <xs:maxLength value="10"/> | ||
1899 | 518 | </xs:restriction> | ||
1900 | 519 | </xs:simpleType> | ||
1901 | 520 | <xs:simpleType name="Max128Text"> | ||
1902 | 521 | <xs:restriction base="xs:string"> | ||
1903 | 522 | <xs:minLength value="1"/> | ||
1904 | 523 | <xs:maxLength value="128"/> | ||
1905 | 524 | </xs:restriction> | ||
1906 | 525 | </xs:simpleType> | ||
1907 | 526 | <xs:simpleType name="Max140Text"> | ||
1908 | 527 | <xs:restriction base="xs:string"> | ||
1909 | 528 | <xs:minLength value="1"/> | ||
1910 | 529 | <xs:maxLength value="140"/> | ||
1911 | 530 | </xs:restriction> | ||
1912 | 531 | </xs:simpleType> | ||
1913 | 532 | <xs:simpleType name="Max15NumericText"> | ||
1914 | 533 | <xs:restriction base="xs:string"> | ||
1915 | 534 | <xs:pattern value="[0-9]{1,15}"/> | ||
1916 | 535 | </xs:restriction> | ||
1917 | 536 | </xs:simpleType> | ||
1918 | 537 | <xs:simpleType name="Max16Text"> | ||
1919 | 538 | <xs:restriction base="xs:string"> | ||
1920 | 539 | <xs:minLength value="1"/> | ||
1921 | 540 | <xs:maxLength value="16"/> | ||
1922 | 541 | </xs:restriction> | ||
1923 | 542 | </xs:simpleType> | ||
1924 | 543 | <xs:simpleType name="Max2048Text"> | ||
1925 | 544 | <xs:restriction base="xs:string"> | ||
1926 | 545 | <xs:minLength value="1"/> | ||
1927 | 546 | <xs:maxLength value="2048"/> | ||
1928 | 547 | </xs:restriction> | ||
1929 | 548 | </xs:simpleType> | ||
1930 | 549 | <xs:simpleType name="Max34Text"> | ||
1931 | 550 | <xs:restriction base="xs:string"> | ||
1932 | 551 | <xs:minLength value="1"/> | ||
1933 | 552 | <xs:maxLength value="34"/> | ||
1934 | 553 | </xs:restriction> | ||
1935 | 554 | </xs:simpleType> | ||
1936 | 555 | <xs:simpleType name="Max350Text"> | ||
1937 | 556 | <xs:restriction base="xs:string"> | ||
1938 | 557 | <xs:minLength value="1"/> | ||
1939 | 558 | <xs:maxLength value="350"/> | ||
1940 | 559 | </xs:restriction> | ||
1941 | 560 | </xs:simpleType> | ||
1942 | 561 | <xs:simpleType name="Max35Text"> | ||
1943 | 562 | <xs:restriction base="xs:string"> | ||
1944 | 563 | <xs:minLength value="1"/> | ||
1945 | 564 | <xs:maxLength value="35"/> | ||
1946 | 565 | </xs:restriction> | ||
1947 | 566 | </xs:simpleType> | ||
1948 | 567 | <xs:simpleType name="Max4Text"> | ||
1949 | 568 | <xs:restriction base="xs:string"> | ||
1950 | 569 | <xs:minLength value="1"/> | ||
1951 | 570 | <xs:maxLength value="4"/> | ||
1952 | 571 | </xs:restriction> | ||
1953 | 572 | </xs:simpleType> | ||
1954 | 573 | <xs:simpleType name="Max70Text"> | ||
1955 | 574 | <xs:restriction base="xs:string"> | ||
1956 | 575 | <xs:minLength value="1"/> | ||
1957 | 576 | <xs:maxLength value="70"/> | ||
1958 | 577 | </xs:restriction> | ||
1959 | 578 | </xs:simpleType> | ||
1960 | 579 | <xs:complexType name="NameAndAddress10"> | ||
1961 | 580 | <xs:sequence> | ||
1962 | 581 | <xs:element name="Nm" type="Max140Text"/> | ||
1963 | 582 | <xs:element name="Adr" type="PostalAddress6"/> | ||
1964 | 583 | </xs:sequence> | ||
1965 | 584 | </xs:complexType> | ||
1966 | 585 | <xs:simpleType name="NamePrefix1Code"> | ||
1967 | 586 | <xs:restriction base="xs:string"> | ||
1968 | 587 | <xs:enumeration value="DOCT"/> | ||
1969 | 588 | <xs:enumeration value="MIST"/> | ||
1970 | 589 | <xs:enumeration value="MISS"/> | ||
1971 | 590 | <xs:enumeration value="MADM"/> | ||
1972 | 591 | </xs:restriction> | ||
1973 | 592 | </xs:simpleType> | ||
1974 | 593 | <xs:simpleType name="Number"> | ||
1975 | 594 | <xs:restriction base="xs:decimal"> | ||
1976 | 595 | <xs:fractionDigits value="0"/> | ||
1977 | 596 | <xs:totalDigits value="18"/> | ||
1978 | 597 | </xs:restriction> | ||
1979 | 598 | </xs:simpleType> | ||
1980 | 599 | <xs:complexType name="OrganisationIdentification8"> | ||
1981 | 600 | <xs:sequence> | ||
1982 | 601 | <xs:element maxOccurs="1" minOccurs="0" name="AnyBIC" type="AnyBICIdentifier"/> | ||
1983 | 602 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Othr" type="GenericOrganisationIdentification1"/> | ||
1984 | 603 | </xs:sequence> | ||
1985 | 604 | </xs:complexType> | ||
1986 | 605 | <xs:complexType name="OrganisationIdentificationSchemeName1Choice"> | ||
1987 | 606 | <xs:choice> | ||
1988 | 607 | <xs:element name="Cd" type="ExternalOrganisationIdentification1Code"/> | ||
1989 | 608 | <xs:element name="Prtry" type="Max35Text"/> | ||
1990 | 609 | </xs:choice> | ||
1991 | 610 | </xs:complexType> | ||
1992 | 611 | <xs:complexType name="Party11Choice"> | ||
1993 | 612 | <xs:choice> | ||
1994 | 613 | <xs:element name="OrgId" type="OrganisationIdentification8"/> | ||
1995 | 614 | <xs:element name="PrvtId" type="PersonIdentification5"/> | ||
1996 | 615 | </xs:choice> | ||
1997 | 616 | </xs:complexType> | ||
1998 | 617 | <xs:complexType name="PartyIdentification43"> | ||
1999 | 618 | <xs:sequence> | ||
2000 | 619 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
2001 | 620 | <xs:element maxOccurs="1" minOccurs="0" name="PstlAdr" type="PostalAddress6"/> | ||
2002 | 621 | <xs:element maxOccurs="1" minOccurs="0" name="Id" type="Party11Choice"/> | ||
2003 | 622 | <xs:element maxOccurs="1" minOccurs="0" name="CtryOfRes" type="CountryCode"/> | ||
2004 | 623 | <xs:element maxOccurs="1" minOccurs="0" name="CtctDtls" type="ContactDetails2"/> | ||
2005 | 624 | </xs:sequence> | ||
2006 | 625 | </xs:complexType> | ||
2007 | 626 | <xs:complexType name="PaymentIdentification1"> | ||
2008 | 627 | <xs:sequence> | ||
2009 | 628 | <xs:element maxOccurs="1" minOccurs="0" name="InstrId" type="Max35Text"/> | ||
2010 | 629 | <xs:element name="EndToEndId" type="Max35Text"/> | ||
2011 | 630 | </xs:sequence> | ||
2012 | 631 | </xs:complexType> | ||
2013 | 632 | <xs:complexType name="PaymentInstruction9"> | ||
2014 | 633 | <xs:sequence> | ||
2015 | 634 | <xs:element name="PmtInfId" type="Max35Text"/> | ||
2016 | 635 | <xs:element name="PmtMtd" type="PaymentMethod3Code"/> | ||
2017 | 636 | <xs:element maxOccurs="1" minOccurs="0" name="BtchBookg" type="BatchBookingIndicator"/> | ||
2018 | 637 | <xs:element maxOccurs="1" minOccurs="0" name="NbOfTxs" type="Max15NumericText"/> | ||
2019 | 638 | <xs:element maxOccurs="1" minOccurs="0" name="CtrlSum" type="DecimalNumber"/> | ||
2020 | 639 | <xs:element maxOccurs="1" minOccurs="0" name="PmtTpInf" type="PaymentTypeInformation19"/> | ||
2021 | 640 | <xs:element name="ReqdExctnDt" type="ISODate"/> | ||
2022 | 641 | <xs:element maxOccurs="1" minOccurs="0" name="PoolgAdjstmntDt" type="ISODate"/> | ||
2023 | 642 | <xs:element name="Dbtr" type="PartyIdentification43"/> | ||
2024 | 643 | <xs:element name="DbtrAcct" type="CashAccount24"/> | ||
2025 | 644 | <xs:element name="DbtrAgt" type="BranchAndFinancialInstitutionIdentification5"/> | ||
2026 | 645 | <xs:element maxOccurs="1" minOccurs="0" name="DbtrAgtAcct" type="CashAccount24"/> | ||
2027 | 646 | <xs:element maxOccurs="1" minOccurs="0" name="InstrForDbtrAgt" type="Max140Text"/> | ||
2028 | 647 | <xs:element maxOccurs="1" minOccurs="0" name="UltmtDbtr" type="PartyIdentification43"/> | ||
2029 | 648 | <xs:element maxOccurs="1" minOccurs="0" name="ChrgBr" type="ChargeBearerType1Code"/> | ||
2030 | 649 | <xs:element maxOccurs="1" minOccurs="0" name="ChrgsAcct" type="CashAccount24"/> | ||
2031 | 650 | <xs:element maxOccurs="1" minOccurs="0" name="ChrgsAcctAgt" type="BranchAndFinancialInstitutionIdentification5"/> | ||
2032 | 651 | <xs:element maxOccurs="unbounded" minOccurs="1" name="CdtTrfTxInf" type="CreditTransferTransaction6"/> | ||
2033 | 652 | </xs:sequence> | ||
2034 | 653 | </xs:complexType> | ||
2035 | 654 | <xs:simpleType name="PaymentMethod3Code"> | ||
2036 | 655 | <xs:restriction base="xs:string"> | ||
2037 | 656 | <xs:enumeration value="CHK"/> | ||
2038 | 657 | <xs:enumeration value="TRF"/> | ||
2039 | 658 | <xs:enumeration value="TRA"/> | ||
2040 | 659 | </xs:restriction> | ||
2041 | 660 | </xs:simpleType> | ||
2042 | 661 | <xs:complexType name="PaymentTypeInformation19"> | ||
2043 | 662 | <xs:sequence> | ||
2044 | 663 | <xs:element maxOccurs="1" minOccurs="0" name="InstrPrty" type="Priority2Code"/> | ||
2045 | 664 | <xs:element maxOccurs="1" minOccurs="0" name="SvcLvl" type="ServiceLevel8Choice"/> | ||
2046 | 665 | <xs:element maxOccurs="1" minOccurs="0" name="LclInstrm" type="LocalInstrument2Choice"/> | ||
2047 | 666 | <xs:element maxOccurs="1" minOccurs="0" name="CtgyPurp" type="CategoryPurpose1Choice"/> | ||
2048 | 667 | </xs:sequence> | ||
2049 | 668 | </xs:complexType> | ||
2050 | 669 | <xs:simpleType name="PercentageRate"> | ||
2051 | 670 | <xs:restriction base="xs:decimal"> | ||
2052 | 671 | <xs:fractionDigits value="10"/> | ||
2053 | 672 | <xs:totalDigits value="11"/> | ||
2054 | 673 | </xs:restriction> | ||
2055 | 674 | </xs:simpleType> | ||
2056 | 675 | <xs:complexType name="PersonIdentification5"> | ||
2057 | 676 | <xs:sequence> | ||
2058 | 677 | <xs:element maxOccurs="1" minOccurs="0" name="DtAndPlcOfBirth" type="DateAndPlaceOfBirth"/> | ||
2059 | 678 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Othr" type="GenericPersonIdentification1"/> | ||
2060 | 679 | </xs:sequence> | ||
2061 | 680 | </xs:complexType> | ||
2062 | 681 | <xs:complexType name="PersonIdentificationSchemeName1Choice"> | ||
2063 | 682 | <xs:choice> | ||
2064 | 683 | <xs:element name="Cd" type="ExternalPersonIdentification1Code"/> | ||
2065 | 684 | <xs:element name="Prtry" type="Max35Text"/> | ||
2066 | 685 | </xs:choice> | ||
2067 | 686 | </xs:complexType> | ||
2068 | 687 | <xs:simpleType name="PhoneNumber"> | ||
2069 | 688 | <xs:restriction base="xs:string"> | ||
2070 | 689 | <xs:pattern value="\+[0-9]{1,3}-[0-9()+\-]{1,30}"/> | ||
2071 | 690 | </xs:restriction> | ||
2072 | 691 | </xs:simpleType> | ||
2073 | 692 | <xs:complexType name="PostalAddress6"> | ||
2074 | 693 | <xs:sequence> | ||
2075 | 694 | <xs:element maxOccurs="1" minOccurs="0" name="AdrTp" type="AddressType2Code"/> | ||
2076 | 695 | <xs:element maxOccurs="1" minOccurs="0" name="Dept" type="Max70Text"/> | ||
2077 | 696 | <xs:element maxOccurs="1" minOccurs="0" name="SubDept" type="Max70Text"/> | ||
2078 | 697 | <xs:element maxOccurs="1" minOccurs="0" name="StrtNm" type="Max70Text"/> | ||
2079 | 698 | <xs:element maxOccurs="1" minOccurs="0" name="BldgNb" type="Max16Text"/> | ||
2080 | 699 | <xs:element maxOccurs="1" minOccurs="0" name="PstCd" type="Max16Text"/> | ||
2081 | 700 | <xs:element maxOccurs="1" minOccurs="0" name="TwnNm" type="Max35Text"/> | ||
2082 | 701 | <xs:element maxOccurs="1" minOccurs="0" name="CtrySubDvsn" type="Max35Text"/> | ||
2083 | 702 | <xs:element maxOccurs="1" minOccurs="0" name="Ctry" type="CountryCode"/> | ||
2084 | 703 | <xs:element maxOccurs="7" minOccurs="0" name="AdrLine" type="Max70Text"/> | ||
2085 | 704 | </xs:sequence> | ||
2086 | 705 | </xs:complexType> | ||
2087 | 706 | <xs:simpleType name="Priority2Code"> | ||
2088 | 707 | <xs:restriction base="xs:string"> | ||
2089 | 708 | <xs:enumeration value="HIGH"/> | ||
2090 | 709 | <xs:enumeration value="NORM"/> | ||
2091 | 710 | </xs:restriction> | ||
2092 | 711 | </xs:simpleType> | ||
2093 | 712 | <xs:complexType name="Purpose2Choice"> | ||
2094 | 713 | <xs:choice> | ||
2095 | 714 | <xs:element name="Cd" type="ExternalPurpose1Code"/> | ||
2096 | 715 | <xs:element name="Prtry" type="Max35Text"/> | ||
2097 | 716 | </xs:choice> | ||
2098 | 717 | </xs:complexType> | ||
2099 | 718 | <xs:complexType name="ReferredDocumentInformation3"> | ||
2100 | 719 | <xs:sequence> | ||
2101 | 720 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="ReferredDocumentType2"/> | ||
2102 | 721 | <xs:element maxOccurs="1" minOccurs="0" name="Nb" type="Max35Text"/> | ||
2103 | 722 | <xs:element maxOccurs="1" minOccurs="0" name="RltdDt" type="ISODate"/> | ||
2104 | 723 | </xs:sequence> | ||
2105 | 724 | </xs:complexType> | ||
2106 | 725 | <xs:complexType name="ReferredDocumentType1Choice"> | ||
2107 | 726 | <xs:choice> | ||
2108 | 727 | <xs:element name="Cd" type="DocumentType5Code"/> | ||
2109 | 728 | <xs:element name="Prtry" type="Max35Text"/> | ||
2110 | 729 | </xs:choice> | ||
2111 | 730 | </xs:complexType> | ||
2112 | 731 | <xs:complexType name="ReferredDocumentType2"> | ||
2113 | 732 | <xs:sequence> | ||
2114 | 733 | <xs:element name="CdOrPrtry" type="ReferredDocumentType1Choice"/> | ||
2115 | 734 | <xs:element maxOccurs="1" minOccurs="0" name="Issr" type="Max35Text"/> | ||
2116 | 735 | </xs:sequence> | ||
2117 | 736 | </xs:complexType> | ||
2118 | 737 | <xs:complexType name="RegulatoryAuthority2"> | ||
2119 | 738 | <xs:sequence> | ||
2120 | 739 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
2121 | 740 | <xs:element maxOccurs="1" minOccurs="0" name="Ctry" type="CountryCode"/> | ||
2122 | 741 | </xs:sequence> | ||
2123 | 742 | </xs:complexType> | ||
2124 | 743 | <xs:complexType name="RegulatoryReporting3"> | ||
2125 | 744 | <xs:sequence> | ||
2126 | 745 | <xs:element maxOccurs="1" minOccurs="0" name="DbtCdtRptgInd" type="RegulatoryReportingType1Code"/> | ||
2127 | 746 | <xs:element maxOccurs="1" minOccurs="0" name="Authrty" type="RegulatoryAuthority2"/> | ||
2128 | 747 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Dtls" type="StructuredRegulatoryReporting3"/> | ||
2129 | 748 | </xs:sequence> | ||
2130 | 749 | </xs:complexType> | ||
2131 | 750 | <xs:simpleType name="RegulatoryReportingType1Code"> | ||
2132 | 751 | <xs:restriction base="xs:string"> | ||
2133 | 752 | <xs:enumeration value="CRED"/> | ||
2134 | 753 | <xs:enumeration value="DEBT"/> | ||
2135 | 754 | <xs:enumeration value="BOTH"/> | ||
2136 | 755 | </xs:restriction> | ||
2137 | 756 | </xs:simpleType> | ||
2138 | 757 | <xs:complexType name="RemittanceAmount2"> | ||
2139 | 758 | <xs:sequence> | ||
2140 | 759 | <xs:element maxOccurs="1" minOccurs="0" name="DuePyblAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2141 | 760 | <xs:element maxOccurs="unbounded" minOccurs="0" name="DscntApldAmt" type="DiscountAmountAndType1"/> | ||
2142 | 761 | <xs:element maxOccurs="1" minOccurs="0" name="CdtNoteAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2143 | 762 | <xs:element maxOccurs="unbounded" minOccurs="0" name="TaxAmt" type="TaxAmountAndType1"/> | ||
2144 | 763 | <xs:element maxOccurs="unbounded" minOccurs="0" name="AdjstmntAmtAndRsn" type="DocumentAdjustment1"/> | ||
2145 | 764 | <xs:element maxOccurs="1" minOccurs="0" name="RmtdAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2146 | 765 | </xs:sequence> | ||
2147 | 766 | </xs:complexType> | ||
2148 | 767 | <xs:complexType name="RemittanceInformation7"> | ||
2149 | 768 | <xs:sequence> | ||
2150 | 769 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Ustrd" type="Max140Text"/> | ||
2151 | 770 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Strd" type="StructuredRemittanceInformation9"/> | ||
2152 | 771 | </xs:sequence> | ||
2153 | 772 | </xs:complexType> | ||
2154 | 773 | <xs:complexType name="RemittanceLocation2"> | ||
2155 | 774 | <xs:sequence> | ||
2156 | 775 | <xs:element maxOccurs="1" minOccurs="0" name="RmtId" type="Max35Text"/> | ||
2157 | 776 | <xs:element maxOccurs="1" minOccurs="0" name="RmtLctnMtd" type="RemittanceLocationMethod2Code"/> | ||
2158 | 777 | <xs:element maxOccurs="1" minOccurs="0" name="RmtLctnElctrncAdr" type="Max2048Text"/> | ||
2159 | 778 | <xs:element maxOccurs="1" minOccurs="0" name="RmtLctnPstlAdr" type="NameAndAddress10"/> | ||
2160 | 779 | </xs:sequence> | ||
2161 | 780 | </xs:complexType> | ||
2162 | 781 | <xs:simpleType name="RemittanceLocationMethod2Code"> | ||
2163 | 782 | <xs:restriction base="xs:string"> | ||
2164 | 783 | <xs:enumeration value="FAXI"/> | ||
2165 | 784 | <xs:enumeration value="EDIC"/> | ||
2166 | 785 | <xs:enumeration value="URID"/> | ||
2167 | 786 | <xs:enumeration value="EMAL"/> | ||
2168 | 787 | <xs:enumeration value="POST"/> | ||
2169 | 788 | <xs:enumeration value="SMSM"/> | ||
2170 | 789 | </xs:restriction> | ||
2171 | 790 | </xs:simpleType> | ||
2172 | 791 | <xs:complexType name="ServiceLevel8Choice"> | ||
2173 | 792 | <xs:choice> | ||
2174 | 793 | <xs:element name="Cd" type="ExternalServiceLevel1Code"/> | ||
2175 | 794 | <xs:element name="Prtry" type="Max35Text"/> | ||
2176 | 795 | </xs:choice> | ||
2177 | 796 | </xs:complexType> | ||
2178 | 797 | <xs:complexType name="StructuredRegulatoryReporting3"> | ||
2179 | 798 | <xs:sequence> | ||
2180 | 799 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="Max35Text"/> | ||
2181 | 800 | <xs:element maxOccurs="1" minOccurs="0" name="Dt" type="ISODate"/> | ||
2182 | 801 | <xs:element maxOccurs="1" minOccurs="0" name="Ctry" type="CountryCode"/> | ||
2183 | 802 | <xs:element maxOccurs="1" minOccurs="0" name="Cd" type="Max10Text"/> | ||
2184 | 803 | <xs:element maxOccurs="1" minOccurs="0" name="Amt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2185 | 804 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Inf" type="Max35Text"/> | ||
2186 | 805 | </xs:sequence> | ||
2187 | 806 | </xs:complexType> | ||
2188 | 807 | <xs:complexType name="StructuredRemittanceInformation9"> | ||
2189 | 808 | <xs:sequence> | ||
2190 | 809 | <xs:element maxOccurs="unbounded" minOccurs="0" name="RfrdDocInf" type="ReferredDocumentInformation3"/> | ||
2191 | 810 | <xs:element maxOccurs="1" minOccurs="0" name="RfrdDocAmt" type="RemittanceAmount2"/> | ||
2192 | 811 | <xs:element maxOccurs="1" minOccurs="0" name="CdtrRefInf" type="CreditorReferenceInformation2"/> | ||
2193 | 812 | <xs:element maxOccurs="1" minOccurs="0" name="Invcr" type="PartyIdentification43"/> | ||
2194 | 813 | <xs:element maxOccurs="1" minOccurs="0" name="Invcee" type="PartyIdentification43"/> | ||
2195 | 814 | <xs:element maxOccurs="3" minOccurs="0" name="AddtlRmtInf" type="Max140Text"/> | ||
2196 | 815 | </xs:sequence> | ||
2197 | 816 | </xs:complexType> | ||
2198 | 817 | <xs:complexType name="SupplementaryData1"> | ||
2199 | 818 | <xs:sequence> | ||
2200 | 819 | <xs:element maxOccurs="1" minOccurs="0" name="PlcAndNm" type="Max350Text"/> | ||
2201 | 820 | <xs:element name="Envlp" type="SupplementaryDataEnvelope1"/> | ||
2202 | 821 | </xs:sequence> | ||
2203 | 822 | </xs:complexType> | ||
2204 | 823 | <xs:complexType name="SupplementaryDataEnvelope1"> | ||
2205 | 824 | <xs:sequence> | ||
2206 | 825 | <xs:any namespace="##any" processContents="lax"/> | ||
2207 | 826 | </xs:sequence> | ||
2208 | 827 | </xs:complexType> | ||
2209 | 828 | <xs:complexType name="TaxAmount1"> | ||
2210 | 829 | <xs:sequence> | ||
2211 | 830 | <xs:element maxOccurs="1" minOccurs="0" name="Rate" type="PercentageRate"/> | ||
2212 | 831 | <xs:element maxOccurs="1" minOccurs="0" name="TaxblBaseAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2213 | 832 | <xs:element maxOccurs="1" minOccurs="0" name="TtlAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2214 | 833 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Dtls" type="TaxRecordDetails1"/> | ||
2215 | 834 | </xs:sequence> | ||
2216 | 835 | </xs:complexType> | ||
2217 | 836 | <xs:complexType name="TaxAmountAndType1"> | ||
2218 | 837 | <xs:sequence> | ||
2219 | 838 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="TaxAmountType1Choice"/> | ||
2220 | 839 | <xs:element name="Amt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2221 | 840 | </xs:sequence> | ||
2222 | 841 | </xs:complexType> | ||
2223 | 842 | <xs:complexType name="TaxAmountType1Choice"> | ||
2224 | 843 | <xs:choice> | ||
2225 | 844 | <xs:element name="Cd" type="ExternalTaxAmountType1Code"/> | ||
2226 | 845 | <xs:element name="Prtry" type="Max35Text"/> | ||
2227 | 846 | </xs:choice> | ||
2228 | 847 | </xs:complexType> | ||
2229 | 848 | <xs:complexType name="TaxAuthorisation1"> | ||
2230 | 849 | <xs:sequence> | ||
2231 | 850 | <xs:element maxOccurs="1" minOccurs="0" name="Titl" type="Max35Text"/> | ||
2232 | 851 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
2233 | 852 | </xs:sequence> | ||
2234 | 853 | </xs:complexType> | ||
2235 | 854 | <xs:complexType name="TaxInformation3"> | ||
2236 | 855 | <xs:sequence> | ||
2237 | 856 | <xs:element maxOccurs="1" minOccurs="0" name="Cdtr" type="TaxParty1"/> | ||
2238 | 857 | <xs:element maxOccurs="1" minOccurs="0" name="Dbtr" type="TaxParty2"/> | ||
2239 | 858 | <xs:element maxOccurs="1" minOccurs="0" name="AdmstnZn" type="Max35Text"/> | ||
2240 | 859 | <xs:element maxOccurs="1" minOccurs="0" name="RefNb" type="Max140Text"/> | ||
2241 | 860 | <xs:element maxOccurs="1" minOccurs="0" name="Mtd" type="Max35Text"/> | ||
2242 | 861 | <xs:element maxOccurs="1" minOccurs="0" name="TtlTaxblBaseAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2243 | 862 | <xs:element maxOccurs="1" minOccurs="0" name="TtlTaxAmt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2244 | 863 | <xs:element maxOccurs="1" minOccurs="0" name="Dt" type="ISODate"/> | ||
2245 | 864 | <xs:element maxOccurs="1" minOccurs="0" name="SeqNb" type="Number"/> | ||
2246 | 865 | <xs:element maxOccurs="unbounded" minOccurs="0" name="Rcrd" type="TaxRecord1"/> | ||
2247 | 866 | </xs:sequence> | ||
2248 | 867 | </xs:complexType> | ||
2249 | 868 | <xs:complexType name="TaxParty1"> | ||
2250 | 869 | <xs:sequence> | ||
2251 | 870 | <xs:element maxOccurs="1" minOccurs="0" name="TaxId" type="Max35Text"/> | ||
2252 | 871 | <xs:element maxOccurs="1" minOccurs="0" name="RegnId" type="Max35Text"/> | ||
2253 | 872 | <xs:element maxOccurs="1" minOccurs="0" name="TaxTp" type="Max35Text"/> | ||
2254 | 873 | </xs:sequence> | ||
2255 | 874 | </xs:complexType> | ||
2256 | 875 | <xs:complexType name="TaxParty2"> | ||
2257 | 876 | <xs:sequence> | ||
2258 | 877 | <xs:element maxOccurs="1" minOccurs="0" name="TaxId" type="Max35Text"/> | ||
2259 | 878 | <xs:element maxOccurs="1" minOccurs="0" name="RegnId" type="Max35Text"/> | ||
2260 | 879 | <xs:element maxOccurs="1" minOccurs="0" name="TaxTp" type="Max35Text"/> | ||
2261 | 880 | <xs:element maxOccurs="1" minOccurs="0" name="Authstn" type="TaxAuthorisation1"/> | ||
2262 | 881 | </xs:sequence> | ||
2263 | 882 | </xs:complexType> | ||
2264 | 883 | <xs:complexType name="TaxPeriod1"> | ||
2265 | 884 | <xs:sequence> | ||
2266 | 885 | <xs:element maxOccurs="1" minOccurs="0" name="Yr" type="ISODate"/> | ||
2267 | 886 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="TaxRecordPeriod1Code"/> | ||
2268 | 887 | <xs:element maxOccurs="1" minOccurs="0" name="FrToDt" type="DatePeriodDetails"/> | ||
2269 | 888 | </xs:sequence> | ||
2270 | 889 | </xs:complexType> | ||
2271 | 890 | <xs:complexType name="TaxRecord1"> | ||
2272 | 891 | <xs:sequence> | ||
2273 | 892 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="Max35Text"/> | ||
2274 | 893 | <xs:element maxOccurs="1" minOccurs="0" name="Ctgy" type="Max35Text"/> | ||
2275 | 894 | <xs:element maxOccurs="1" minOccurs="0" name="CtgyDtls" type="Max35Text"/> | ||
2276 | 895 | <xs:element maxOccurs="1" minOccurs="0" name="DbtrSts" type="Max35Text"/> | ||
2277 | 896 | <xs:element maxOccurs="1" minOccurs="0" name="CertId" type="Max35Text"/> | ||
2278 | 897 | <xs:element maxOccurs="1" minOccurs="0" name="FrmsCd" type="Max35Text"/> | ||
2279 | 898 | <xs:element maxOccurs="1" minOccurs="0" name="Prd" type="TaxPeriod1"/> | ||
2280 | 899 | <xs:element maxOccurs="1" minOccurs="0" name="TaxAmt" type="TaxAmount1"/> | ||
2281 | 900 | <xs:element maxOccurs="1" minOccurs="0" name="AddtlInf" type="Max140Text"/> | ||
2282 | 901 | </xs:sequence> | ||
2283 | 902 | </xs:complexType> | ||
2284 | 903 | <xs:complexType name="TaxRecordDetails1"> | ||
2285 | 904 | <xs:sequence> | ||
2286 | 905 | <xs:element maxOccurs="1" minOccurs="0" name="Prd" type="TaxPeriod1"/> | ||
2287 | 906 | <xs:element name="Amt" type="ActiveOrHistoricCurrencyAndAmount"/> | ||
2288 | 907 | </xs:sequence> | ||
2289 | 908 | </xs:complexType> | ||
2290 | 909 | <xs:simpleType name="TaxRecordPeriod1Code"> | ||
2291 | 910 | <xs:restriction base="xs:string"> | ||
2292 | 911 | <xs:enumeration value="MM01"/> | ||
2293 | 912 | <xs:enumeration value="MM02"/> | ||
2294 | 913 | <xs:enumeration value="MM03"/> | ||
2295 | 914 | <xs:enumeration value="MM04"/> | ||
2296 | 915 | <xs:enumeration value="MM05"/> | ||
2297 | 916 | <xs:enumeration value="MM06"/> | ||
2298 | 917 | <xs:enumeration value="MM07"/> | ||
2299 | 918 | <xs:enumeration value="MM08"/> | ||
2300 | 919 | <xs:enumeration value="MM09"/> | ||
2301 | 920 | <xs:enumeration value="MM10"/> | ||
2302 | 921 | <xs:enumeration value="MM11"/> | ||
2303 | 922 | <xs:enumeration value="MM12"/> | ||
2304 | 923 | <xs:enumeration value="QTR1"/> | ||
2305 | 924 | <xs:enumeration value="QTR2"/> | ||
2306 | 925 | <xs:enumeration value="QTR3"/> | ||
2307 | 926 | <xs:enumeration value="QTR4"/> | ||
2308 | 927 | <xs:enumeration value="HLF1"/> | ||
2309 | 928 | <xs:enumeration value="HLF2"/> | ||
2310 | 929 | </xs:restriction> | ||
2311 | 930 | </xs:simpleType> | ||
2312 | 931 | </xs:schema> | ||
2313 | 0 | 932 | ||
2314 | === modified file 'account_banking_sepa_credit_transfer/data/payment_type_sepa_sct.xml' | |||
2315 | --- account_banking_sepa_credit_transfer/data/payment_type_sepa_sct.xml 2013-09-23 13:38:15 +0000 | |||
2316 | +++ account_banking_sepa_credit_transfer/data/payment_type_sepa_sct.xml 2014-03-19 00:47:00 +0000 | |||
2317 | @@ -1,34 +1,39 @@ | |||
2318 | 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2319 | 2 | <openerp> | 2 | <openerp> |
2321 | 3 | <data noupdate="1"> | 3 | <data noupdate="0"> |
2322 | 4 | 4 | ||
2323 | 5 | 5 | ||
2324 | 6 | <!-- TODO In the suitable_bank_types field, we should restrict to IBAN type and Rib+IBAN of l10n_fr_rib ? --> | 6 | <!-- TODO In the suitable_bank_types field, we should restrict to IBAN type and Rib+IBAN of l10n_fr_rib ? --> |
2325 | 7 | <record id="export_sepa_sct_001_001_05" model="payment.mode.type"> | ||
2326 | 8 | <field name="name">SEPA Credit Transfer v05</field> | ||
2327 | 9 | <field name="code">pain.001.001.05</field> | ||
2328 | 10 | <field name="suitable_bank_types" | ||
2329 | 11 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> | ||
2330 | 12 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> | ||
2331 | 13 | </record> | ||
2332 | 14 | |||
2333 | 7 | <record id="export_sepa_sct_001_001_04" model="payment.mode.type"> | 15 | <record id="export_sepa_sct_001_001_04" model="payment.mode.type"> |
2334 | 8 | <field name="name">SEPA Credit Transfer v04</field> | 16 | <field name="name">SEPA Credit Transfer v04</field> |
2335 | 9 | <field name="code">pain.001.001.04</field> | 17 | <field name="code">pain.001.001.04</field> |
2336 | 10 | <field name="suitable_bank_types" | 18 | <field name="suitable_bank_types" |
2338 | 11 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> | 19 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> |
2339 | 12 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> | 20 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> |
2340 | 13 | <field name="payment_order_type">payment</field> | ||
2341 | 14 | </record> | 21 | </record> |
2342 | 15 | 22 | ||
2343 | 16 | <record id="export_sepa_sct_001_001_03" model="payment.mode.type"> | 23 | <record id="export_sepa_sct_001_001_03" model="payment.mode.type"> |
2345 | 17 | <field name="name">SEPA Credit Transfer v03</field> | 24 | <field name="name">SEPA Credit Transfer v03 (recommended)</field> |
2346 | 18 | <field name="code">pain.001.001.03</field> | 25 | <field name="code">pain.001.001.03</field> |
2347 | 19 | <field name="suitable_bank_types" | 26 | <field name="suitable_bank_types" |
2349 | 20 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> | 27 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> |
2350 | 21 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> | 28 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> |
2351 | 22 | <field name="payment_order_type">payment</field> | ||
2352 | 23 | </record> | 29 | </record> |
2353 | 24 | 30 | ||
2354 | 25 | <record id="export_sepa_sct_001_001_02" model="payment.mode.type"> | 31 | <record id="export_sepa_sct_001_001_02" model="payment.mode.type"> |
2355 | 26 | <field name="name">SEPA Credit Transfer v02</field> | 32 | <field name="name">SEPA Credit Transfer v02</field> |
2356 | 27 | <field name="code">pain.001.001.02</field> | 33 | <field name="code">pain.001.001.02</field> |
2357 | 28 | <field name="suitable_bank_types" | 34 | <field name="suitable_bank_types" |
2359 | 29 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> | 35 | eval="[(6,0,[ref('base_iban.bank_iban')])]" /> |
2360 | 30 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> | 36 | <field name="ir_model_id" ref="model_banking_export_sepa_wizard"/> |
2361 | 31 | <field name="payment_order_type">payment</field> | ||
2362 | 32 | </record> | 37 | </record> |
2363 | 33 | 38 | ||
2364 | 34 | 39 | ||
2365 | 35 | 40 | ||
2366 | === modified file 'account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot' | |||
2367 | --- account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot 2013-06-06 08:04:29 +0000 | |||
2368 | +++ account_banking_sepa_credit_transfer/i18n/account_banking_sepa_credit_transfer.pot 2014-03-19 00:47:00 +0000 | |||
2369 | @@ -4,10 +4,10 @@ | |||
2370 | 4 | # | 4 | # |
2371 | 5 | msgid "" | 5 | msgid "" |
2372 | 6 | msgstr "" | 6 | msgstr "" |
2374 | 7 | "Project-Id-Version: OpenERP Server 6.1\n" | 7 | "Project-Id-Version: OpenERP Server 7.0\n" |
2375 | 8 | "Report-Msgid-Bugs-To: \n" | 8 | "Report-Msgid-Bugs-To: \n" |
2378 | 9 | "POT-Creation-Date: 2013-06-06 08:01+0000\n" | 9 | "POT-Creation-Date: 2013-12-23 22:49+0000\n" |
2379 | 10 | "PO-Revision-Date: 2013-06-06 08:01+0000\n" | 10 | "PO-Revision-Date: 2013-12-23 22:49+0000\n" |
2380 | 11 | "Last-Translator: <>\n" | 11 | "Last-Translator: <>\n" |
2381 | 12 | "Language-Team: \n" | 12 | "Language-Team: \n" |
2382 | 13 | "MIME-Version: 1.0\n" | 13 | "MIME-Version: 1.0\n" |
2383 | @@ -16,24 +16,14 @@ | |||
2384 | 16 | "Plural-Forms: \n" | 16 | "Plural-Forms: \n" |
2385 | 17 | 17 | ||
2386 | 18 | #. module: account_banking_sepa_credit_transfer | 18 | #. module: account_banking_sepa_credit_transfer |
2387 | 19 | #: field:banking.export.sepa,file:0 | ||
2388 | 20 | #: field:banking.export.sepa.wizard,file_id:0 | ||
2389 | 21 | msgid "SEPA XML file" | ||
2390 | 22 | msgstr "" | ||
2391 | 23 | |||
2392 | 24 | #. module: account_banking_sepa_credit_transfer | ||
2393 | 25 | #: view:banking.export.sepa:0 | ||
2394 | 26 | msgid "Payment order" | ||
2395 | 27 | msgstr "" | ||
2396 | 28 | |||
2397 | 29 | #. module: account_banking_sepa_credit_transfer | ||
2398 | 30 | #: selection:banking.export.sepa.wizard,state:0 | 19 | #: selection:banking.export.sepa.wizard,state:0 |
2399 | 31 | msgid "Create" | 20 | msgid "Create" |
2400 | 32 | msgstr "" | 21 | msgstr "" |
2401 | 33 | 22 | ||
2402 | 34 | #. module: account_banking_sepa_credit_transfer | 23 | #. module: account_banking_sepa_credit_transfer |
2405 | 35 | #: help:banking.export.sepa.wizard,msg_identification:0 | 24 | #: field:banking.export.sepa,nb_transactions:0 |
2406 | 36 | msgid "This is the message identification of the entire SEPA XML file. 35 characters max." | 25 | #: field:banking.export.sepa.wizard,nb_transactions:0 |
2407 | 26 | msgid "Number of Transactions" | ||
2408 | 37 | msgstr "" | 27 | msgstr "" |
2409 | 38 | 28 | ||
2410 | 39 | #. module: account_banking_sepa_credit_transfer | 29 | #. module: account_banking_sepa_credit_transfer |
2411 | @@ -43,11 +33,6 @@ | |||
2412 | 43 | msgstr "" | 33 | msgstr "" |
2413 | 44 | 34 | ||
2414 | 45 | #. module: account_banking_sepa_credit_transfer | 35 | #. module: account_banking_sepa_credit_transfer |
2415 | 46 | #: view:banking.export.sepa:0 | ||
2416 | 47 | msgid "General information" | ||
2417 | 48 | msgstr "" | ||
2418 | 49 | |||
2419 | 50 | #. module: account_banking_sepa_credit_transfer | ||
2420 | 51 | #: field:banking.export.sepa,state:0 | 36 | #: field:banking.export.sepa,state:0 |
2421 | 52 | #: field:banking.export.sepa.wizard,state:0 | 37 | #: field:banking.export.sepa.wizard,state:0 |
2422 | 53 | msgid "State" | 38 | msgid "State" |
2423 | @@ -59,9 +44,8 @@ | |||
2424 | 59 | msgstr "" | 44 | msgstr "" |
2425 | 60 | 45 | ||
2426 | 61 | #. module: account_banking_sepa_credit_transfer | 46 | #. module: account_banking_sepa_credit_transfer |
2430 | 62 | #: field:banking.export.sepa,prefered_exec_date:0 | 47 | #: help:banking.export.sepa.wizard,charge_bearer:0 |
2431 | 63 | #: field:banking.export.sepa.wizard,prefered_exec_date:0 | 48 | msgid "Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme (SEPA Core messages must use this). Shared : transaction charges on the debtor side are to be borne by the debtor, transaction charges on the creditor side are to be borne by the creditor. Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor." |
2429 | 64 | msgid "Prefered execution date" | ||
2432 | 65 | msgstr "" | 49 | msgstr "" |
2433 | 66 | 50 | ||
2434 | 67 | #. module: account_banking_sepa_credit_transfer | 51 | #. module: account_banking_sepa_credit_transfer |
2435 | @@ -71,13 +55,19 @@ | |||
2436 | 71 | msgstr "" | 55 | msgstr "" |
2437 | 72 | 56 | ||
2438 | 73 | #. module: account_banking_sepa_credit_transfer | 57 | #. module: account_banking_sepa_credit_transfer |
2441 | 74 | #: field:banking.export.sepa,generation_date:0 | 58 | #: field:banking.export.sepa,batch_booking:0 |
2442 | 75 | msgid "Generation date" | 59 | #: field:banking.export.sepa.wizard,batch_booking:0 |
2443 | 60 | msgid "Batch Booking" | ||
2444 | 61 | msgstr "" | ||
2445 | 62 | |||
2446 | 63 | #. module: account_banking_sepa_credit_transfer | ||
2447 | 64 | #: selection:banking.export.sepa,state:0 | ||
2448 | 65 | msgid "Sent" | ||
2449 | 76 | msgstr "" | 66 | msgstr "" |
2450 | 77 | 67 | ||
2451 | 78 | #. module: account_banking_sepa_credit_transfer | 68 | #. module: account_banking_sepa_credit_transfer |
2452 | 79 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa_wizard | 69 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa_wizard |
2454 | 80 | msgid "Export SEPA Credit Transfer XML file" | 70 | msgid "Export SEPA Credit Transfer File" |
2455 | 81 | msgstr "" | 71 | msgstr "" |
2456 | 82 | 72 | ||
2457 | 83 | #. module: account_banking_sepa_credit_transfer | 73 | #. module: account_banking_sepa_credit_transfer |
2458 | @@ -96,19 +86,15 @@ | |||
2459 | 96 | msgstr "" | 86 | msgstr "" |
2460 | 97 | 87 | ||
2461 | 98 | #. module: account_banking_sepa_credit_transfer | 88 | #. module: account_banking_sepa_credit_transfer |
2475 | 99 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.act_banking_export_sepa_payment_order | 89 | #: selection:banking.export.sepa,charge_bearer:0 |
2476 | 100 | msgid "Generated SEPA files" | 90 | #: selection:banking.export.sepa.wizard,charge_bearer:0 |
2477 | 101 | msgstr "" | 91 | msgid "Following Service Level" |
2478 | 102 | 92 | msgstr "" | |
2479 | 103 | #. module: account_banking_sepa_credit_transfer | 93 | |
2480 | 104 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.action_account_banking_sepa | 94 | #. module: account_banking_sepa_credit_transfer |
2481 | 105 | #: model:ir.ui.menu,name:account_banking_sepa_credit_transfer.menu_account_banking_sepa | 95 | #: selection:banking.export.sepa,charge_bearer:0 |
2482 | 106 | msgid "Generated SEPA XML files" | 96 | #: selection:banking.export.sepa.wizard,charge_bearer:0 |
2483 | 107 | msgstr "" | 97 | msgid "Borne by Creditor" |
2471 | 108 | |||
2472 | 109 | #. module: account_banking_sepa_credit_transfer | ||
2473 | 110 | #: selection:banking.export.sepa,state:0 | ||
2474 | 111 | msgid "Sent" | ||
2484 | 112 | msgstr "" | 98 | msgstr "" |
2485 | 113 | 99 | ||
2486 | 114 | #. module: account_banking_sepa_credit_transfer | 100 | #. module: account_banking_sepa_credit_transfer |
2487 | @@ -122,90 +108,80 @@ | |||
2488 | 122 | msgstr "" | 108 | msgstr "" |
2489 | 123 | 109 | ||
2490 | 124 | #. module: account_banking_sepa_credit_transfer | 110 | #. module: account_banking_sepa_credit_transfer |
2494 | 125 | #: field:banking.export.sepa,msg_identification:0 | 111 | #: selection:banking.export.sepa,charge_bearer:0 |
2495 | 126 | #: field:banking.export.sepa.wizard,msg_identification:0 | 112 | #: selection:banking.export.sepa.wizard,charge_bearer:0 |
2496 | 127 | msgid "Message identification" | 113 | msgid "Borne by Debtor" |
2497 | 128 | msgstr "" | 114 | msgstr "" |
2498 | 129 | 115 | ||
2499 | 130 | #. module: account_banking_sepa_credit_transfer | 116 | #. module: account_banking_sepa_credit_transfer |
2501 | 131 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:284 | 117 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:128 |
2502 | 118 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:245 | ||
2503 | 132 | #, python-format | 119 | #, python-format |
2505 | 133 | msgid "The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s" | 120 | msgid "Error:" |
2506 | 134 | msgstr "" | 121 | msgstr "" |
2507 | 135 | 122 | ||
2508 | 136 | #. module: account_banking_sepa_credit_transfer | 123 | #. module: account_banking_sepa_credit_transfer |
2509 | 137 | #: field:banking.export.sepa,total_amount:0 | 124 | #: field:banking.export.sepa,total_amount:0 |
2510 | 138 | #: field:banking.export.sepa.wizard,total_amount:0 | 125 | #: field:banking.export.sepa.wizard,total_amount:0 |
2512 | 139 | msgid "Total amount" | 126 | msgid "Total Amount" |
2513 | 127 | msgstr "" | ||
2514 | 128 | |||
2515 | 129 | #. module: account_banking_sepa_credit_transfer | ||
2516 | 130 | #: field:banking.export.sepa,charge_bearer:0 | ||
2517 | 131 | #: field:banking.export.sepa.wizard,charge_bearer:0 | ||
2518 | 132 | msgid "Charge Bearer" | ||
2519 | 133 | msgstr "" | ||
2520 | 134 | |||
2521 | 135 | #. module: account_banking_sepa_credit_transfer | ||
2522 | 136 | #: view:banking.export.sepa.wizard:0 | ||
2523 | 137 | msgid "SEPA File Generation" | ||
2524 | 138 | msgstr "" | ||
2525 | 139 | |||
2526 | 140 | #. module: account_banking_sepa_credit_transfer | ||
2527 | 141 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa | ||
2528 | 142 | msgid "SEPA export" | ||
2529 | 143 | msgstr "" | ||
2530 | 144 | |||
2531 | 145 | #. module: account_banking_sepa_credit_transfer | ||
2532 | 146 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:246 | ||
2533 | 147 | #, python-format | ||
2534 | 148 | msgid "Missing Bank Account on invoice '%s' (payment order line reference '%s')." | ||
2535 | 149 | msgstr "" | ||
2536 | 150 | |||
2537 | 151 | #. module: account_banking_sepa_credit_transfer | ||
2538 | 152 | #: field:banking.export.sepa,file:0 | ||
2539 | 153 | #: field:banking.export.sepa.wizard,file_id:0 | ||
2540 | 154 | msgid "SEPA XML File" | ||
2541 | 140 | msgstr "" | 155 | msgstr "" |
2542 | 141 | 156 | ||
2543 | 142 | #. module: account_banking_sepa_credit_transfer | 157 | #. module: account_banking_sepa_credit_transfer |
2544 | 143 | #: help:banking.export.sepa,charge_bearer:0 | 158 | #: help:banking.export.sepa,charge_bearer:0 |
2547 | 144 | #: help:banking.export.sepa.wizard,charge_bearer:0 | 159 | msgid "Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme (SEPA Core messages must use this). Shared : transaction charges on the creditor side are to be borne by the creditor, transaction charges on the debtor side are to be borne by the debtor. Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor." |
2546 | 145 | msgid "Shared : transaction charges on the sender side are to be borne by the debtor, transaction charges on the receiver side are to be borne by the creditor (most transfers use this). Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor. Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme." | ||
2548 | 146 | msgstr "" | 160 | msgstr "" |
2549 | 147 | 161 | ||
2550 | 148 | #. module: account_banking_sepa_credit_transfer | 162 | #. module: account_banking_sepa_credit_transfer |
2554 | 149 | #: selection:banking.export.sepa,charge_bearer:0 | 163 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:129 |
2555 | 150 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | 164 | #, python-format |
2556 | 151 | msgid "Borne by creditor" | 165 | msgid "Payment Type Code '%s' is not supported. The only Payment Type Codes supported for SEPA Credit Transfers are 'pain.001.001.02', 'pain.001.001.03', 'pain.001.001.04' and 'pain.001.001.05'." |
2557 | 152 | msgstr "" | 166 | msgstr "" |
2558 | 153 | 167 | ||
2559 | 154 | #. module: account_banking_sepa_credit_transfer | 168 | #. module: account_banking_sepa_credit_transfer |
2560 | 155 | #: view:banking.export.sepa:0 | 169 | #: view:banking.export.sepa:0 |
2561 | 156 | #: field:banking.export.sepa,payment_order_ids:0 | 170 | #: field:banking.export.sepa,payment_order_ids:0 |
2562 | 157 | #: field:banking.export.sepa.wizard,payment_order_ids:0 | 171 | #: field:banking.export.sepa.wizard,payment_order_ids:0 |
2614 | 158 | msgid "Payment orders" | 172 | msgid "Payment Orders" |
2615 | 159 | msgstr "" | 173 | msgstr "" |
2616 | 160 | 174 | ||
2617 | 161 | #. module: account_banking_sepa_credit_transfer | 175 | #. module: account_banking_sepa_credit_transfer |
2618 | 162 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:90 | 176 | #: view:banking.export.sepa:0 |
2619 | 163 | #, python-format | 177 | msgid "General Information" |
2620 | 164 | msgid "This IBAN is not valid : %s" | 178 | msgstr "" |
2621 | 165 | msgstr "" | 179 | |
2622 | 166 | 180 | #. module: account_banking_sepa_credit_transfer | |
2623 | 167 | #. module: account_banking_sepa_credit_transfer | 181 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.act_banking_export_sepa_payment_order |
2624 | 168 | #: view:banking.export.sepa.wizard:0 | 182 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.action_account_banking_sepa |
2625 | 169 | msgid "SEPA XML file generation" | 183 | #: model:ir.ui.menu,name:account_banking_sepa_credit_transfer.menu_account_banking_sepa |
2626 | 170 | msgstr "" | 184 | msgid "SEPA Credit Transfer Files" |
2576 | 171 | |||
2577 | 172 | #. module: account_banking_sepa_credit_transfer | ||
2578 | 173 | #: view:banking.export.sepa.wizard:0 | ||
2579 | 174 | msgid "Reference for further communication" | ||
2580 | 175 | msgstr "" | ||
2581 | 176 | |||
2582 | 177 | #. module: account_banking_sepa_credit_transfer | ||
2583 | 178 | #: view:banking.export.sepa.wizard:0 | ||
2584 | 179 | msgid "Processing details" | ||
2585 | 180 | msgstr "" | ||
2586 | 181 | |||
2587 | 182 | #. module: account_banking_sepa_credit_transfer | ||
2588 | 183 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa | ||
2589 | 184 | msgid "SEPA export" | ||
2590 | 185 | msgstr "" | ||
2591 | 186 | |||
2592 | 187 | #. module: account_banking_sepa_credit_transfer | ||
2593 | 188 | #: selection:banking.export.sepa,charge_bearer:0 | ||
2594 | 189 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
2595 | 190 | msgid "Borne by debtor" | ||
2596 | 191 | msgstr "" | ||
2597 | 192 | |||
2598 | 193 | #. module: account_banking_sepa_credit_transfer | ||
2599 | 194 | #: field:banking.export.sepa,nb_transactions:0 | ||
2600 | 195 | #: field:banking.export.sepa.wizard,nb_transactions:0 | ||
2601 | 196 | msgid "Number of transactions" | ||
2602 | 197 | msgstr "" | ||
2603 | 198 | |||
2604 | 199 | #. module: account_banking_sepa_credit_transfer | ||
2605 | 200 | #: selection:banking.export.sepa,charge_bearer:0 | ||
2606 | 201 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
2607 | 202 | msgid "Following service level" | ||
2608 | 203 | msgstr "" | ||
2609 | 204 | |||
2610 | 205 | #. module: account_banking_sepa_credit_transfer | ||
2611 | 206 | #: field:banking.export.sepa,charge_bearer:0 | ||
2612 | 207 | #: field:banking.export.sepa.wizard,charge_bearer:0 | ||
2613 | 208 | msgid "Charge bearer" | ||
2627 | 209 | msgstr "" | 185 | msgstr "" |
2628 | 210 | 186 | ||
2629 | 211 | #. module: account_banking_sepa_credit_transfer | 187 | #. module: account_banking_sepa_credit_transfer |
2630 | @@ -215,11 +191,6 @@ | |||
2631 | 215 | msgstr "" | 191 | msgstr "" |
2632 | 216 | 192 | ||
2633 | 217 | #. module: account_banking_sepa_credit_transfer | 193 | #. module: account_banking_sepa_credit_transfer |
2634 | 218 | #: help:banking.export.sepa.wizard,prefered_exec_date:0 | ||
2635 | 219 | msgid "This is the date on which the file should be processed by the bank. Please keep in mind that banks only execute on working days and typically use a delay of two days between execution date and effective transfer date." | ||
2636 | 220 | msgstr "" | ||
2637 | 221 | |||
2638 | 222 | #. module: account_banking_sepa_credit_transfer | ||
2639 | 223 | #: field:banking.export.sepa.wizard,file:0 | 194 | #: field:banking.export.sepa.wizard,file:0 |
2640 | 224 | msgid "File" | 195 | msgid "File" |
2641 | 225 | msgstr "" | 196 | msgstr "" |
2642 | @@ -230,22 +201,7 @@ | |||
2643 | 230 | msgstr "" | 201 | msgstr "" |
2644 | 231 | 202 | ||
2645 | 232 | #. module: account_banking_sepa_credit_transfer | 203 | #. module: account_banking_sepa_credit_transfer |
2663 | 233 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:135 | 204 | #: field:banking.export.sepa,create_date:0 |
2664 | 234 | #, python-format | 205 | msgid "Generation Date" |
2648 | 235 | msgid "Payment Type Code '%s' is not supported. The only Payment Type Codes supported for SEPA Credit Transfers are 'pain.001.001.02', 'pain.001.001.03' and 'pain.001.001.04'." | ||
2649 | 236 | msgstr "" | ||
2650 | 237 | |||
2651 | 238 | #. module: account_banking_sepa_credit_transfer | ||
2652 | 239 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:90 | ||
2653 | 240 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:135 | ||
2654 | 241 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:284 | ||
2655 | 242 | #, python-format | ||
2656 | 243 | msgid "Error :" | ||
2657 | 244 | msgstr "" | ||
2658 | 245 | |||
2659 | 246 | #. module: account_banking_sepa_credit_transfer | ||
2660 | 247 | #: field:banking.export.sepa,batch_booking:0 | ||
2661 | 248 | #: field:banking.export.sepa.wizard,batch_booking:0 | ||
2662 | 249 | msgid "Batch booking" | ||
2665 | 250 | msgstr "" | 206 | msgstr "" |
2666 | 251 | 207 | ||
2667 | 252 | 208 | ||
2668 | === modified file 'account_banking_sepa_credit_transfer/i18n/fr.po' | |||
2669 | --- account_banking_sepa_credit_transfer/i18n/fr.po 2013-06-06 08:04:29 +0000 | |||
2670 | +++ account_banking_sepa_credit_transfer/i18n/fr.po 2014-03-19 00:47:00 +0000 | |||
2671 | @@ -4,10 +4,10 @@ | |||
2672 | 4 | # | 4 | # |
2673 | 5 | msgid "" | 5 | msgid "" |
2674 | 6 | msgstr "" | 6 | msgstr "" |
2676 | 7 | "Project-Id-Version: OpenERP Server 6.1\n" | 7 | "Project-Id-Version: OpenERP Server 7.0\n" |
2677 | 8 | "Report-Msgid-Bugs-To: \n" | 8 | "Report-Msgid-Bugs-To: \n" |
2680 | 9 | "POT-Creation-Date: 2013-06-06 08:01+0000\n" | 9 | "POT-Creation-Date: 2013-12-23 22:52+0000\n" |
2681 | 10 | "PO-Revision-Date: 2013-06-06 08:01+0000\n" | 10 | "PO-Revision-Date: 2013-12-23 22:52+0000\n" |
2682 | 11 | "Last-Translator: <>\n" | 11 | "Last-Translator: <>\n" |
2683 | 12 | "Language-Team: \n" | 12 | "Language-Team: \n" |
2684 | 13 | "MIME-Version: 1.0\n" | 13 | "MIME-Version: 1.0\n" |
2685 | @@ -16,25 +16,15 @@ | |||
2686 | 16 | "Plural-Forms: \n" | 16 | "Plural-Forms: \n" |
2687 | 17 | 17 | ||
2688 | 18 | #. module: account_banking_sepa_credit_transfer | 18 | #. module: account_banking_sepa_credit_transfer |
2689 | 19 | #: field:banking.export.sepa,file:0 | ||
2690 | 20 | #: field:banking.export.sepa.wizard,file_id:0 | ||
2691 | 21 | msgid "SEPA XML file" | ||
2692 | 22 | msgstr "Fichier SEPA XML" | ||
2693 | 23 | |||
2694 | 24 | #. module: account_banking_sepa_credit_transfer | ||
2695 | 25 | #: view:banking.export.sepa:0 | ||
2696 | 26 | msgid "Payment order" | ||
2697 | 27 | msgstr "Ordre de paiement" | ||
2698 | 28 | |||
2699 | 29 | #. module: account_banking_sepa_credit_transfer | ||
2700 | 30 | #: selection:banking.export.sepa.wizard,state:0 | 19 | #: selection:banking.export.sepa.wizard,state:0 |
2701 | 31 | msgid "Create" | 20 | msgid "Create" |
2702 | 32 | msgstr "Créer" | 21 | msgstr "Créer" |
2703 | 33 | 22 | ||
2704 | 34 | #. module: account_banking_sepa_credit_transfer | 23 | #. module: account_banking_sepa_credit_transfer |
2708 | 35 | #: help:banking.export.sepa.wizard,msg_identification:0 | 24 | #: field:banking.export.sepa,nb_transactions:0 |
2709 | 36 | msgid "This is the message identification of the entire SEPA XML file. 35 characters max." | 25 | #: field:banking.export.sepa.wizard,nb_transactions:0 |
2710 | 37 | msgstr "Ceci est le libellé d'identification du fichier SEPA XML. 35 caractères maximum." | 26 | msgid "Number of Transactions" |
2711 | 27 | msgstr "Nombre de transactions" | ||
2712 | 38 | 28 | ||
2713 | 39 | #. module: account_banking_sepa_credit_transfer | 29 | #. module: account_banking_sepa_credit_transfer |
2714 | 40 | #: field:banking.export.sepa,filename:0 | 30 | #: field:banking.export.sepa,filename:0 |
2715 | @@ -43,11 +33,6 @@ | |||
2716 | 43 | msgstr "Nom du fichier" | 33 | msgstr "Nom du fichier" |
2717 | 44 | 34 | ||
2718 | 45 | #. module: account_banking_sepa_credit_transfer | 35 | #. module: account_banking_sepa_credit_transfer |
2719 | 46 | #: view:banking.export.sepa:0 | ||
2720 | 47 | msgid "General information" | ||
2721 | 48 | msgstr "Informations générales" | ||
2722 | 49 | |||
2723 | 50 | #. module: account_banking_sepa_credit_transfer | ||
2724 | 51 | #: field:banking.export.sepa,state:0 | 36 | #: field:banking.export.sepa,state:0 |
2725 | 52 | #: field:banking.export.sepa.wizard,state:0 | 37 | #: field:banking.export.sepa.wizard,state:0 |
2726 | 53 | msgid "State" | 38 | msgid "State" |
2727 | @@ -59,10 +44,9 @@ | |||
2728 | 59 | msgstr "Brouillon" | 44 | msgstr "Brouillon" |
2729 | 60 | 45 | ||
2730 | 61 | #. module: account_banking_sepa_credit_transfer | 46 | #. module: account_banking_sepa_credit_transfer |
2735 | 62 | #: field:banking.export.sepa,prefered_exec_date:0 | 47 | #: help:banking.export.sepa.wizard,charge_bearer:0 |
2736 | 63 | #: field:banking.export.sepa.wizard,prefered_exec_date:0 | 48 | msgid "Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme (SEPA Core messages must use this). Shared : transaction charges on the debtor side are to be borne by the debtor, transaction charges on the creditor side are to be borne by the creditor. Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor." |
2737 | 64 | msgid "Prefered execution date" | 49 | msgstr "Suivant le niveau de service : la répartition des frais bancaires suit les règles pré-établies dans le schema ou dans le contrat avec la banque (les messages SEPA Core doivent utiliser ce paramètre). Partagés : les frais bancaires côté débiteur sont à la charge du débiteur, les frais bancaires côté créancier sont à la charge du créancier. Supportés par le créancier : tous les frais bancaires sont à la charge du créancier. Supportés par le débiteur : tous les frais bancaires sont à la charge du débiteur." |
2734 | 65 | msgstr "Date d'exécution demandée" | ||
2738 | 66 | 50 | ||
2739 | 67 | #. module: account_banking_sepa_credit_transfer | 51 | #. module: account_banking_sepa_credit_transfer |
2740 | 68 | #: selection:banking.export.sepa,charge_bearer:0 | 52 | #: selection:banking.export.sepa,charge_bearer:0 |
2741 | @@ -71,14 +55,20 @@ | |||
2742 | 71 | msgstr "Partagé" | 55 | msgstr "Partagé" |
2743 | 72 | 56 | ||
2744 | 73 | #. module: account_banking_sepa_credit_transfer | 57 | #. module: account_banking_sepa_credit_transfer |
2748 | 74 | #: field:banking.export.sepa,generation_date:0 | 58 | #: field:banking.export.sepa,batch_booking:0 |
2749 | 75 | msgid "Generation date" | 59 | #: field:banking.export.sepa.wizard,batch_booking:0 |
2750 | 76 | msgstr "Date de génération" | 60 | msgid "Batch Booking" |
2751 | 61 | msgstr "Débit groupé" | ||
2752 | 62 | |||
2753 | 63 | #. module: account_banking_sepa_credit_transfer | ||
2754 | 64 | #: selection:banking.export.sepa,state:0 | ||
2755 | 65 | msgid "Sent" | ||
2756 | 66 | msgstr "Envoyé" | ||
2757 | 77 | 67 | ||
2758 | 78 | #. module: account_banking_sepa_credit_transfer | 68 | #. module: account_banking_sepa_credit_transfer |
2759 | 79 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa_wizard | 69 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa_wizard |
2762 | 80 | msgid "Export SEPA Credit Transfer XML file" | 70 | msgid "Export SEPA Credit Transfer File" |
2763 | 81 | msgstr "Exporte the fichier de virement SEPA XML" | 71 | msgstr "Exporte le fichier de virement SEPA" |
2764 | 82 | 72 | ||
2765 | 83 | #. module: account_banking_sepa_credit_transfer | 73 | #. module: account_banking_sepa_credit_transfer |
2766 | 84 | #: view:banking.export.sepa:0 | 74 | #: view:banking.export.sepa:0 |
2767 | @@ -96,20 +86,16 @@ | |||
2768 | 96 | msgstr "Réconcilié" | 86 | msgstr "Réconcilié" |
2769 | 97 | 87 | ||
2770 | 98 | #. module: account_banking_sepa_credit_transfer | 88 | #. module: account_banking_sepa_credit_transfer |
2785 | 99 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.act_banking_export_sepa_payment_order | 89 | #: selection:banking.export.sepa,charge_bearer:0 |
2786 | 100 | msgid "Generated SEPA files" | 90 | #: selection:banking.export.sepa.wizard,charge_bearer:0 |
2787 | 101 | msgstr "Fichiers SEPA générés" | 91 | msgid "Following Service Level" |
2788 | 102 | 92 | msgstr "Suivant le niveau de service" | |
2789 | 103 | #. module: account_banking_sepa_credit_transfer | 93 | |
2790 | 104 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.action_account_banking_sepa | 94 | #. module: account_banking_sepa_credit_transfer |
2791 | 105 | #: model:ir.ui.menu,name:account_banking_sepa_credit_transfer.menu_account_banking_sepa | 95 | #: selection:banking.export.sepa,charge_bearer:0 |
2792 | 106 | msgid "Generated SEPA XML files" | 96 | #: selection:banking.export.sepa.wizard,charge_bearer:0 |
2793 | 107 | msgstr "Fichiers SEPA XML générés" | 97 | msgid "Borne by Creditor" |
2794 | 108 | 98 | msgstr "Supportés par le destinataire" | |
2781 | 109 | #. module: account_banking_sepa_credit_transfer | ||
2782 | 110 | #: selection:banking.export.sepa,state:0 | ||
2783 | 111 | msgid "Sent" | ||
2784 | 112 | msgstr "Envoyé" | ||
2795 | 113 | 99 | ||
2796 | 114 | #. module: account_banking_sepa_credit_transfer | 100 | #. module: account_banking_sepa_credit_transfer |
2797 | 115 | #: view:banking.export.sepa.wizard:0 | 101 | #: view:banking.export.sepa.wizard:0 |
2798 | @@ -122,91 +108,81 @@ | |||
2799 | 122 | msgstr "Générer" | 108 | msgstr "Générer" |
2800 | 123 | 109 | ||
2801 | 124 | #. module: account_banking_sepa_credit_transfer | 110 | #. module: account_banking_sepa_credit_transfer |
2806 | 125 | #: field:banking.export.sepa,msg_identification:0 | 111 | #: selection:banking.export.sepa,charge_bearer:0 |
2807 | 126 | #: field:banking.export.sepa.wizard,msg_identification:0 | 112 | #: selection:banking.export.sepa.wizard,charge_bearer:0 |
2808 | 127 | msgid "Message identification" | 113 | msgid "Borne by Debtor" |
2809 | 128 | msgstr "Libellé d'identification" | 114 | msgstr "Supportés par l'émetteur" |
2810 | 129 | 115 | ||
2811 | 130 | #. module: account_banking_sepa_credit_transfer | 116 | #. module: account_banking_sepa_credit_transfer |
2813 | 131 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:284 | 117 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:128 |
2814 | 118 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:245 | ||
2815 | 132 | #, python-format | 119 | #, python-format |
2818 | 133 | msgid "The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s" | 120 | msgid "Error:" |
2819 | 134 | msgstr "Le fichier XML généré n'est pas valide par rapport à la Définition du Schéma XML officiel. Le fichier XML généré et le message d'erreur complet ont été écrits dans les logs du serveur. Voici l'erreur, qui vous donnera peut-être une idée sur la cause du problème : %s" | 121 | msgstr "Erreur :" |
2820 | 135 | 122 | ||
2821 | 136 | #. module: account_banking_sepa_credit_transfer | 123 | #. module: account_banking_sepa_credit_transfer |
2822 | 137 | #: field:banking.export.sepa,total_amount:0 | 124 | #: field:banking.export.sepa,total_amount:0 |
2823 | 138 | #: field:banking.export.sepa.wizard,total_amount:0 | 125 | #: field:banking.export.sepa.wizard,total_amount:0 |
2825 | 139 | msgid "Total amount" | 126 | msgid "Total Amount" |
2826 | 140 | msgstr "Montant total" | 127 | msgstr "Montant total" |
2827 | 141 | 128 | ||
2828 | 142 | #. module: account_banking_sepa_credit_transfer | 129 | #. module: account_banking_sepa_credit_transfer |
2829 | 130 | #: field:banking.export.sepa,charge_bearer:0 | ||
2830 | 131 | #: field:banking.export.sepa.wizard,charge_bearer:0 | ||
2831 | 132 | msgid "Charge Bearer" | ||
2832 | 133 | msgstr "Répartition des frais" | ||
2833 | 134 | |||
2834 | 135 | #. module: account_banking_sepa_credit_transfer | ||
2835 | 136 | #: view:banking.export.sepa.wizard:0 | ||
2836 | 137 | msgid "SEPA File Generation" | ||
2837 | 138 | msgstr "Génération du fichier SEPA" | ||
2838 | 139 | |||
2839 | 140 | #. module: account_banking_sepa_credit_transfer | ||
2840 | 141 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa | ||
2841 | 142 | msgid "SEPA export" | ||
2842 | 143 | msgstr "Export SEPA" | ||
2843 | 144 | |||
2844 | 145 | #. module: account_banking_sepa_credit_transfer | ||
2845 | 146 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:246 | ||
2846 | 147 | #, python-format | ||
2847 | 148 | msgid "Missing Bank Account on invoice '%s' (payment order line reference '%s')." | ||
2848 | 149 | msgstr "Compte bancaire manquant sur la facture '%s' (référence de la ligne de paiement : '%s')." | ||
2849 | 150 | |||
2850 | 151 | #. module: account_banking_sepa_credit_transfer | ||
2851 | 152 | #: field:banking.export.sepa,file:0 | ||
2852 | 153 | #: field:banking.export.sepa.wizard,file_id:0 | ||
2853 | 154 | msgid "SEPA XML File" | ||
2854 | 155 | msgstr "Fichier SEPA XML" | ||
2855 | 156 | |||
2856 | 157 | #. module: account_banking_sepa_credit_transfer | ||
2857 | 143 | #: help:banking.export.sepa,charge_bearer:0 | 158 | #: help:banking.export.sepa,charge_bearer:0 |
2861 | 144 | #: help:banking.export.sepa.wizard,charge_bearer:0 | 159 | msgid "Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme (SEPA Core messages must use this). Shared : transaction charges on the creditor side are to be borne by the creditor, transaction charges on the debtor side are to be borne by the debtor. Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor." |
2862 | 145 | msgid "Shared : transaction charges on the sender side are to be borne by the debtor, transaction charges on the receiver side are to be borne by the creditor (most transfers use this). Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor. Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme." | 160 | msgstr "Suivant le niveau de service : la répartition des frais bancaires suit les règles pré-établies dans le schema ou dans le contrat avec la banque (les messages SEPA Core doivent utiliser ce paramètre). Partagés : les frais bancaires côté débiteur sont à la charge du débiteur, les frais bancaires côté créancier sont à la charge du créancier. Supportés par le créancier : tous les frais bancaires sont à la charge du créancier. Supportés par le débiteur : tous les frais bancaires sont à la charge du débiteur." |
2860 | 146 | msgstr "Partagés : les frais bancaires côté émetteur sont à la charge de l'émetteur et les frais bancaires côté destinataire sont à la charge du destinataire (la plupart des virements utilisent cette répartition). Supportés par le destinataire : tous les frais bancaires sont à la charge du destinataire. Supportés par l'émetteur : tous les frais bancaires sont à la charge de l'émetteur. Suivant le niveau de service : la répartition des frais bancaires suit les règles pré-établies dans le contrat avec la banque." | ||
2863 | 147 | 161 | ||
2864 | 148 | #. module: account_banking_sepa_credit_transfer | 162 | #. module: account_banking_sepa_credit_transfer |
2869 | 149 | #: selection:banking.export.sepa,charge_bearer:0 | 163 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:129 |
2870 | 150 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | 164 | #, python-format |
2871 | 151 | msgid "Borne by creditor" | 165 | msgid "Payment Type Code '%s' is not supported. The only Payment Type Codes supported for SEPA Credit Transfers are 'pain.001.001.02', 'pain.001.001.03', 'pain.001.001.04' and 'pain.001.001.05'." |
2872 | 152 | msgstr "Supportés par le destinataire" | 166 | msgstr "Le code du Type de paiement '%s' n'est pas supporté. Les seuls codes de Type de paiement supportés pour les virements SEPA sont 'pain.001.001.02', 'pain.001.001.03', 'pain.001.001.04' et 'pain.001.001.05'." |
2873 | 153 | 167 | ||
2874 | 154 | #. module: account_banking_sepa_credit_transfer | 168 | #. module: account_banking_sepa_credit_transfer |
2875 | 155 | #: view:banking.export.sepa:0 | 169 | #: view:banking.export.sepa:0 |
2876 | 156 | #: field:banking.export.sepa,payment_order_ids:0 | 170 | #: field:banking.export.sepa,payment_order_ids:0 |
2877 | 157 | #: field:banking.export.sepa.wizard,payment_order_ids:0 | 171 | #: field:banking.export.sepa.wizard,payment_order_ids:0 |
2879 | 158 | msgid "Payment orders" | 172 | msgid "Payment Orders" |
2880 | 159 | msgstr "Ordres de paiement" | 173 | msgstr "Ordres de paiement" |
2881 | 160 | 174 | ||
2882 | 161 | #. module: account_banking_sepa_credit_transfer | 175 | #. module: account_banking_sepa_credit_transfer |
2931 | 162 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:90 | 176 | #: view:banking.export.sepa:0 |
2932 | 163 | #, python-format | 177 | msgid "General Information" |
2933 | 164 | msgid "This IBAN is not valid : %s" | 178 | msgstr "Informations générales" |
2934 | 165 | msgstr "Cet IBAN n'est pas valide : %s" | 179 | |
2935 | 166 | 180 | #. module: account_banking_sepa_credit_transfer | |
2936 | 167 | #. module: account_banking_sepa_credit_transfer | 181 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.act_banking_export_sepa_payment_order |
2937 | 168 | #: view:banking.export.sepa.wizard:0 | 182 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.action_account_banking_sepa |
2938 | 169 | msgid "SEPA XML file generation" | 183 | #: model:ir.ui.menu,name:account_banking_sepa_credit_transfer.menu_account_banking_sepa |
2939 | 170 | msgstr "Génération du fichier SEPA XML" | 184 | msgid "SEPA Credit Transfer Files" |
2940 | 171 | 185 | msgstr "Fichiers de virement SEPA" | |
2893 | 172 | #. module: account_banking_sepa_credit_transfer | ||
2894 | 173 | #: view:banking.export.sepa.wizard:0 | ||
2895 | 174 | msgid "Reference for further communication" | ||
2896 | 175 | msgstr "Référence pour communication ultérieure" | ||
2897 | 176 | |||
2898 | 177 | #. module: account_banking_sepa_credit_transfer | ||
2899 | 178 | #: view:banking.export.sepa.wizard:0 | ||
2900 | 179 | msgid "Processing details" | ||
2901 | 180 | msgstr "Paramètres" | ||
2902 | 181 | |||
2903 | 182 | #. module: account_banking_sepa_credit_transfer | ||
2904 | 183 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa | ||
2905 | 184 | msgid "SEPA export" | ||
2906 | 185 | msgstr "Export SEPA" | ||
2907 | 186 | |||
2908 | 187 | #. module: account_banking_sepa_credit_transfer | ||
2909 | 188 | #: selection:banking.export.sepa,charge_bearer:0 | ||
2910 | 189 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
2911 | 190 | msgid "Borne by debtor" | ||
2912 | 191 | msgstr "Supportés par l'émetteur" | ||
2913 | 192 | |||
2914 | 193 | #. module: account_banking_sepa_credit_transfer | ||
2915 | 194 | #: field:banking.export.sepa,nb_transactions:0 | ||
2916 | 195 | #: field:banking.export.sepa.wizard,nb_transactions:0 | ||
2917 | 196 | msgid "Number of transactions" | ||
2918 | 197 | msgstr "Nombre de transactions" | ||
2919 | 198 | |||
2920 | 199 | #. module: account_banking_sepa_credit_transfer | ||
2921 | 200 | #: selection:banking.export.sepa,charge_bearer:0 | ||
2922 | 201 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
2923 | 202 | msgid "Following service level" | ||
2924 | 203 | msgstr "Suivant le niveau de service" | ||
2925 | 204 | |||
2926 | 205 | #. module: account_banking_sepa_credit_transfer | ||
2927 | 206 | #: field:banking.export.sepa,charge_bearer:0 | ||
2928 | 207 | #: field:banking.export.sepa.wizard,charge_bearer:0 | ||
2929 | 208 | msgid "Charge bearer" | ||
2930 | 209 | msgstr "Répartition des frais" | ||
2941 | 210 | 186 | ||
2942 | 211 | #. module: account_banking_sepa_credit_transfer | 187 | #. module: account_banking_sepa_credit_transfer |
2943 | 212 | #: help:banking.export.sepa,batch_booking:0 | 188 | #: help:banking.export.sepa,batch_booking:0 |
2944 | @@ -215,11 +191,6 @@ | |||
2945 | 215 | msgstr "Si coché, le relevé de compte ne comportera qu'une ligne de débit pour tous les virements du fichier SEPA XML ; si non coché, le relevé de compte comportera une ligne de débit pour chaque virement du fichier SEPA XML." | 191 | msgstr "Si coché, le relevé de compte ne comportera qu'une ligne de débit pour tous les virements du fichier SEPA XML ; si non coché, le relevé de compte comportera une ligne de débit pour chaque virement du fichier SEPA XML." |
2946 | 216 | 192 | ||
2947 | 217 | #. module: account_banking_sepa_credit_transfer | 193 | #. module: account_banking_sepa_credit_transfer |
2948 | 218 | #: help:banking.export.sepa.wizard,prefered_exec_date:0 | ||
2949 | 219 | msgid "This is the date on which the file should be processed by the bank. Please keep in mind that banks only execute on working days and typically use a delay of two days between execution date and effective transfer date." | ||
2950 | 220 | msgstr "C'est la date à laquelle le fichier doit être traité par la banque. Gardez en tête que les banques réalisent des traitements seulement les jours ouvrés et ont habituellement un délai de 2 jours entre la date de traitement et la date du transfert effectif." | ||
2951 | 221 | |||
2952 | 222 | #. module: account_banking_sepa_credit_transfer | ||
2953 | 223 | #: field:banking.export.sepa.wizard,file:0 | 194 | #: field:banking.export.sepa.wizard,file:0 |
2954 | 224 | msgid "File" | 195 | msgid "File" |
2955 | 225 | msgstr "Fichier" | 196 | msgstr "Fichier" |
2956 | @@ -230,22 +201,7 @@ | |||
2957 | 230 | msgstr "Annuler" | 201 | msgstr "Annuler" |
2958 | 231 | 202 | ||
2959 | 232 | #. module: account_banking_sepa_credit_transfer | 203 | #. module: account_banking_sepa_credit_transfer |
2978 | 233 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:135 | 204 | #: field:banking.export.sepa,create_date:0 |
2979 | 234 | #, python-format | 205 | msgid "Generation Date" |
2980 | 235 | msgid "Payment Type Code '%s' is not supported. The only Payment Type Codes supported for SEPA Credit Transfers are 'pain.001.001.02', 'pain.001.001.03' and 'pain.001.001.04'." | 206 | msgstr "Date de génération" |
2963 | 236 | msgstr "Le code '%s' pour le Type de Paiment n'est pas supporté. Les seuls codes de Types de Paiement supportés pour les virements SEPA sont 'pain.001.001.02', 'pain.001.001.03' et 'pain.001.001.04'." | ||
2964 | 237 | |||
2965 | 238 | #. module: account_banking_sepa_credit_transfer | ||
2966 | 239 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:90 | ||
2967 | 240 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:135 | ||
2968 | 241 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:284 | ||
2969 | 242 | #, python-format | ||
2970 | 243 | msgid "Error :" | ||
2971 | 244 | msgstr "Erreur :" | ||
2972 | 245 | |||
2973 | 246 | #. module: account_banking_sepa_credit_transfer | ||
2974 | 247 | #: field:banking.export.sepa,batch_booking:0 | ||
2975 | 248 | #: field:banking.export.sepa.wizard,batch_booking:0 | ||
2976 | 249 | msgid "Batch booking" | ||
2977 | 250 | msgstr "Débit groupé" | ||
2981 | 251 | 207 | ||
2982 | 252 | 208 | ||
2983 | === added file 'account_banking_sepa_credit_transfer/i18n/nl.po' | |||
2984 | --- account_banking_sepa_credit_transfer/i18n/nl.po 1970-01-01 00:00:00 +0000 | |||
2985 | +++ account_banking_sepa_credit_transfer/i18n/nl.po 2014-03-19 00:47:00 +0000 | |||
2986 | @@ -0,0 +1,405 @@ | |||
2987 | 1 | # Translation of OpenERP Server. | ||
2988 | 2 | # This file contains the translation of the following modules: | ||
2989 | 3 | # * account_banking_sepa_credit_transfer | ||
2990 | 4 | # | ||
2991 | 5 | msgid "" | ||
2992 | 6 | msgstr "" | ||
2993 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
2994 | 8 | "Report-Msgid-Bugs-To: \n" | ||
2995 | 9 | "POT-Creation-Date: 2013-11-13 09:13+0000\n" | ||
2996 | 10 | "PO-Revision-Date: 2013-12-03 11:49+0000\n" | ||
2997 | 11 | "Last-Translator: Jan Jurkus (GCE CAD-Service) <ict@gcecad-service.nl>\n" | ||
2998 | 12 | "Language-Team: \n" | ||
2999 | 13 | "MIME-Version: 1.0\n" | ||
3000 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
3001 | 15 | "Content-Transfer-Encoding: 8bit\n" | ||
3002 | 16 | "X-Launchpad-Export-Date: 2013-12-04 05:59+0000\n" | ||
3003 | 17 | "X-Generator: Launchpad (build 16861)\n" | ||
3004 | 18 | |||
3005 | 19 | #. module: account_banking_sepa_credit_transfer | ||
3006 | 20 | #: field:banking.export.sepa,prefered_exec_date:0 | ||
3007 | 21 | #: field:banking.export.sepa.wizard,prefered_exec_date:0 | ||
3008 | 22 | msgid "Prefered Execution Date" | ||
3009 | 23 | msgstr "Voorkeurs uitvoerdatum" | ||
3010 | 24 | |||
3011 | 25 | #. module: account_banking_sepa_credit_transfer | ||
3012 | 26 | #: selection:banking.export.sepa.wizard,state:0 | ||
3013 | 27 | msgid "Create" | ||
3014 | 28 | msgstr "Aanmaken" | ||
3015 | 29 | |||
3016 | 30 | #. module: account_banking_sepa_credit_transfer | ||
3017 | 31 | #: field:banking.export.sepa,nb_transactions:0 | ||
3018 | 32 | #: field:banking.export.sepa.wizard,nb_transactions:0 | ||
3019 | 33 | msgid "Number of Transactions" | ||
3020 | 34 | msgstr "Aantal transacties" | ||
3021 | 35 | |||
3022 | 36 | #. module: account_banking_sepa_credit_transfer | ||
3023 | 37 | #: field:banking.export.sepa,filename:0 | ||
3024 | 38 | #: field:banking.export.sepa.wizard,filename:0 | ||
3025 | 39 | msgid "Filename" | ||
3026 | 40 | msgstr "Bestandsnaam" | ||
3027 | 41 | |||
3028 | 42 | #. module: account_banking_sepa_credit_transfer | ||
3029 | 43 | #: field:banking.export.sepa,state:0 | ||
3030 | 44 | #: field:banking.export.sepa.wizard,state:0 | ||
3031 | 45 | msgid "State" | ||
3032 | 46 | msgstr "Status" | ||
3033 | 47 | |||
3034 | 48 | #. module: account_banking_sepa_credit_transfer | ||
3035 | 49 | #: selection:banking.export.sepa,state:0 | ||
3036 | 50 | msgid "Draft" | ||
3037 | 51 | msgstr "Concept" | ||
3038 | 52 | |||
3039 | 53 | #. module: account_banking_sepa_credit_transfer | ||
3040 | 54 | #: help:banking.export.sepa.wizard,charge_bearer:0 | ||
3041 | 55 | msgid "" | ||
3042 | 56 | "Following service level : transaction charges are to be applied following " | ||
3043 | 57 | "the rules agreed in the service level and/or scheme (SEPA Core messages must " | ||
3044 | 58 | "use this). Shared : transaction charges on the debtor side are to be borne " | ||
3045 | 59 | "by the debtor, transaction charges on the creditor side are to be borne by " | ||
3046 | 60 | "the creditor. Borne by creditor : all transaction charges are to be borne by " | ||
3047 | 61 | "the creditor. Borne by debtor : all transaction charges are to be borne by " | ||
3048 | 62 | "the debtor." | ||
3049 | 63 | msgstr "" | ||
3050 | 64 | "Volg service level: Transactie kosten worden toegepast volgens de " | ||
3051 | 65 | "afgesproken regels in het service level en/of schema (Voor SEPA berichten " | ||
3052 | 66 | "deze gebruiken). Gedeeld : De transactiekosten aan de debiteur zijde zijn " | ||
3053 | 67 | "voor de schuldeiser, transactiekosten aan de crediteur kant zijn voor de " | ||
3054 | 68 | "schuldenaar. Rekening van de schuldenaar: Alle transactie kosten zijn voor " | ||
3055 | 69 | "rekening van de schuldenaar. Rekening van de schuldeiser: Alle transactie " | ||
3056 | 70 | "kosten zijn voor rekening van de schuldeiser." | ||
3057 | 71 | |||
3058 | 72 | #. module: account_banking_sepa_credit_transfer | ||
3059 | 73 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:117 | ||
3060 | 74 | #, python-format | ||
3061 | 75 | msgid "" | ||
3062 | 76 | "Cannot compute the '%s' of the Payment Line with Invoice Reference '%s'." | ||
3063 | 77 | msgstr "" | ||
3064 | 78 | "Niet mogelijk de '%s' van de betaalregel te berekenen met factuurreferentie " | ||
3065 | 79 | "'%s'." | ||
3066 | 80 | |||
3067 | 81 | #. module: account_banking_sepa_credit_transfer | ||
3068 | 82 | #: selection:banking.export.sepa,charge_bearer:0 | ||
3069 | 83 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
3070 | 84 | msgid "Shared" | ||
3071 | 85 | msgstr "Gedeeld" | ||
3072 | 86 | |||
3073 | 87 | #. module: account_banking_sepa_credit_transfer | ||
3074 | 88 | #: field:banking.export.sepa,batch_booking:0 | ||
3075 | 89 | #: field:banking.export.sepa.wizard,batch_booking:0 | ||
3076 | 90 | msgid "Batch Booking" | ||
3077 | 91 | msgstr "Bach verwerking" | ||
3078 | 92 | |||
3079 | 93 | #. module: account_banking_sepa_credit_transfer | ||
3080 | 94 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa_wizard | ||
3081 | 95 | msgid "Export SEPA Credit Transfer XML file" | ||
3082 | 96 | msgstr "Exporteer SEPA XML overschrijvingsbestand" | ||
3083 | 97 | |||
3084 | 98 | #. module: account_banking_sepa_credit_transfer | ||
3085 | 99 | #: view:banking.export.sepa:0 | ||
3086 | 100 | msgid "SEPA Credit Transfer" | ||
3087 | 101 | msgstr "SEPA overschrijving" | ||
3088 | 102 | |||
3089 | 103 | #. module: account_banking_sepa_credit_transfer | ||
3090 | 104 | #: selection:banking.export.sepa.wizard,state:0 | ||
3091 | 105 | msgid "Finish" | ||
3092 | 106 | msgstr "Gereed" | ||
3093 | 107 | |||
3094 | 108 | #. module: account_banking_sepa_credit_transfer | ||
3095 | 109 | #: selection:banking.export.sepa,state:0 | ||
3096 | 110 | msgid "Reconciled" | ||
3097 | 111 | msgstr "Afgeletterd" | ||
3098 | 112 | |||
3099 | 113 | #. module: account_banking_sepa_credit_transfer | ||
3100 | 114 | #: selection:banking.export.sepa,charge_bearer:0 | ||
3101 | 115 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
3102 | 116 | msgid "Following Service Level" | ||
3103 | 117 | msgstr "Volg service level" | ||
3104 | 118 | |||
3105 | 119 | #. module: account_banking_sepa_credit_transfer | ||
3106 | 120 | #: selection:banking.export.sepa,charge_bearer:0 | ||
3107 | 121 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
3108 | 122 | msgid "Borne by Creditor" | ||
3109 | 123 | msgstr "Rekening van schuldeiser" | ||
3110 | 124 | |||
3111 | 125 | #. module: account_banking_sepa_credit_transfer | ||
3112 | 126 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:122 | ||
3113 | 127 | #, python-format | ||
3114 | 128 | msgid "Cannot compute the '%s'." | ||
3115 | 129 | msgstr "Niet mogelijk de '%s' te berekenen." | ||
3116 | 130 | |||
3117 | 131 | #. module: account_banking_sepa_credit_transfer | ||
3118 | 132 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:126 | ||
3119 | 133 | #, python-format | ||
3120 | 134 | msgid "The type of the field '%s' is %s. It should be a string or unicode." | ||
3121 | 135 | msgstr "" | ||
3122 | 136 | "Het veldsoort van het veld '%s' is %s. Het moet een string of unicode soort " | ||
3123 | 137 | "zijn." | ||
3124 | 138 | |||
3125 | 139 | #. module: account_banking_sepa_credit_transfer | ||
3126 | 140 | #: selection:banking.export.sepa,state:0 | ||
3127 | 141 | msgid "Sent" | ||
3128 | 142 | msgstr "Verzonden" | ||
3129 | 143 | |||
3130 | 144 | #. module: account_banking_sepa_credit_transfer | ||
3131 | 145 | #: view:banking.export.sepa.wizard:0 | ||
3132 | 146 | msgid "Validate" | ||
3133 | 147 | msgstr "Bevestig" | ||
3134 | 148 | |||
3135 | 149 | #. module: account_banking_sepa_credit_transfer | ||
3136 | 150 | #: view:banking.export.sepa.wizard:0 | ||
3137 | 151 | msgid "Generate" | ||
3138 | 152 | msgstr "Genereer" | ||
3139 | 153 | |||
3140 | 154 | #. module: account_banking_sepa_credit_transfer | ||
3141 | 155 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:169 | ||
3142 | 156 | #, python-format | ||
3143 | 157 | msgid "" | ||
3144 | 158 | "The generated XML file is not valid against the official XML Schema " | ||
3145 | 159 | "Definition. The generated XML file and the full error have been written in " | ||
3146 | 160 | "the server logs. Here is the error, which may give you an idea on the cause " | ||
3147 | 161 | "of the problem : %s" | ||
3148 | 162 | msgstr "" | ||
3149 | 163 | "Het gegenereerde XML bestand is niet geldig volgens de officiële XML schema " | ||
3150 | 164 | "definities. Het gegenereerde XML bestand en de volledige fout zijn " | ||
3151 | 165 | "weggeschreven in de server log bestanden. Hier is de fout, wat u een idee " | ||
3152 | 166 | "kunt geven over de oorzaak van het probleem: %s\"" | ||
3153 | 167 | |||
3154 | 168 | #. module: account_banking_sepa_credit_transfer | ||
3155 | 169 | #: selection:banking.export.sepa,charge_bearer:0 | ||
3156 | 170 | #: selection:banking.export.sepa.wizard,charge_bearer:0 | ||
3157 | 171 | msgid "Borne by Debtor" | ||
3158 | 172 | msgstr "Rekening van schuldenaar" | ||
3159 | 173 | |||
3160 | 174 | #. module: account_banking_sepa_credit_transfer | ||
3161 | 175 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:90 | ||
3162 | 176 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:116 | ||
3163 | 177 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:121 | ||
3164 | 178 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:130 | ||
3165 | 179 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:168 | ||
3166 | 180 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:206 | ||
3167 | 181 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:350 | ||
3168 | 182 | #, python-format | ||
3169 | 183 | msgid "Error:" | ||
3170 | 184 | msgstr "Fout:" | ||
3171 | 185 | |||
3172 | 186 | #. module: account_banking_sepa_credit_transfer | ||
3173 | 187 | #: field:banking.export.sepa,total_amount:0 | ||
3174 | 188 | #: field:banking.export.sepa.wizard,total_amount:0 | ||
3175 | 189 | msgid "Total Amount" | ||
3176 | 190 | msgstr "Totaalbedrag" | ||
3177 | 191 | |||
3178 | 192 | #. module: account_banking_sepa_credit_transfer | ||
3179 | 193 | #: field:banking.export.sepa,charge_bearer:0 | ||
3180 | 194 | #: field:banking.export.sepa.wizard,charge_bearer:0 | ||
3181 | 195 | msgid "Charge Bearer" | ||
3182 | 196 | msgstr "Kostenverdeling" | ||
3183 | 197 | |||
3184 | 198 | #. module: account_banking_sepa_credit_transfer | ||
3185 | 199 | #: view:banking.export.sepa.wizard:0 | ||
3186 | 200 | msgid "SEPA File Generation" | ||
3187 | 201 | msgstr "SEPA bestand genereren" | ||
3188 | 202 | |||
3189 | 203 | #. module: account_banking_sepa_credit_transfer | ||
3190 | 204 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:125 | ||
3191 | 205 | #, python-format | ||
3192 | 206 | msgid "Field type error:" | ||
3193 | 207 | msgstr "Veldsoort fout:" | ||
3194 | 208 | |||
3195 | 209 | #. module: account_banking_sepa_credit_transfer | ||
3196 | 210 | #: model:ir.model,name:account_banking_sepa_credit_transfer.model_banking_export_sepa | ||
3197 | 211 | msgid "SEPA export" | ||
3198 | 212 | msgstr "SEPA export" | ||
3199 | 213 | |||
3200 | 214 | #. module: account_banking_sepa_credit_transfer | ||
3201 | 215 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:351 | ||
3202 | 216 | #, python-format | ||
3203 | 217 | msgid "" | ||
3204 | 218 | "Missing Bank Account on invoice '%s' (payment order line reference '%s')." | ||
3205 | 219 | msgstr "" | ||
3206 | 220 | "Ontbrekende bankrekening op factuur '%s' (betaalregel referentie '%s')" | ||
3207 | 221 | |||
3208 | 222 | #. module: account_banking_sepa_credit_transfer | ||
3209 | 223 | #: field:banking.export.sepa,file:0 | ||
3210 | 224 | #: field:banking.export.sepa.wizard,file_id:0 | ||
3211 | 225 | msgid "SEPA XML File" | ||
3212 | 226 | msgstr "SEPA XML bestand" | ||
3213 | 227 | |||
3214 | 228 | #. module: account_banking_sepa_credit_transfer | ||
3215 | 229 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:131 | ||
3216 | 230 | #, python-format | ||
3217 | 231 | msgid "The '%s' is empty or 0. It should have a non-null value." | ||
3218 | 232 | msgstr "De '%s' is leeg of 0. Het mag geen lege of nul waarde hebben." | ||
3219 | 233 | |||
3220 | 234 | #. module: account_banking_sepa_credit_transfer | ||
3221 | 235 | #: help:banking.export.sepa,charge_bearer:0 | ||
3222 | 236 | msgid "" | ||
3223 | 237 | "Following service level : transaction charges are to be applied following " | ||
3224 | 238 | "the rules agreed in the service level and/or scheme (SEPA Core messages must " | ||
3225 | 239 | "use this). Shared : transaction charges on the creditor side are to be borne " | ||
3226 | 240 | "by the creditor, transaction charges on the debtor side are to be borne by " | ||
3227 | 241 | "the debtor. Borne by creditor : all transaction charges are to be borne by " | ||
3228 | 242 | "the creditor. Borne by debtor : all transaction charges are to be borne by " | ||
3229 | 243 | "the debtor." | ||
3230 | 244 | msgstr "" | ||
3231 | 245 | "Volg service level: Transactie kosten worden toegepast volgens de " | ||
3232 | 246 | "afgesproken regels in het service level en/of schema (Voor SEPA berichten " | ||
3233 | 247 | "deze gebruiken). Gedeeld : De transactiekosten aan de crediteur zijde zijn " | ||
3234 | 248 | "voor de schuldenaar, transactiekosten aan de debiteur kant zijn voor de " | ||
3235 | 249 | "schuldeiser. Rekening van de schuldenaar: Alle transactie kosten zijn voor " | ||
3236 | 250 | "rekening van de schuldenaar. Rekening van de schuldeiser: Alle transactie " | ||
3237 | 251 | "kosten zijn voor rekening van de schuldeiser." | ||
3238 | 252 | |||
3239 | 253 | #. module: account_banking_sepa_credit_transfer | ||
3240 | 254 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:207 | ||
3241 | 255 | #, python-format | ||
3242 | 256 | msgid "" | ||
3243 | 257 | "Payment Type Code '%s' is not supported. The only Payment Type Codes " | ||
3244 | 258 | "supported for SEPA Credit Transfers are 'pain.001.001.02', " | ||
3245 | 259 | "'pain.001.001.03', 'pain.001.001.04' and 'pain.001.001.05'." | ||
3246 | 260 | msgstr "" | ||
3247 | 261 | "Betaal type code '%s' wordt niet ondersteund. De enige betaal type codes " | ||
3248 | 262 | "voor SEPA credit boekingen zijn 'pain.001.001.02', 'pain.001.001.03' en " | ||
3249 | 263 | "'pain.001.001.04'." | ||
3250 | 264 | |||
3251 | 265 | #. module: account_banking_sepa_credit_transfer | ||
3252 | 266 | #: code:addons/account_banking_sepa_credit_transfer/wizard/export_sepa.py:90 | ||
3253 | 267 | #, python-format | ||
3254 | 268 | msgid "This IBAN is not valid : %s" | ||
3255 | 269 | msgstr "Deze IBAN is niet geldig : %s" | ||
3256 | 270 | |||
3257 | 271 | #. module: account_banking_sepa_credit_transfer | ||
3258 | 272 | #: view:banking.export.sepa:0 | ||
3259 | 273 | #: field:banking.export.sepa,payment_order_ids:0 | ||
3260 | 274 | #: field:banking.export.sepa.wizard,payment_order_ids:0 | ||
3261 | 275 | msgid "Payment Orders" | ||
3262 | 276 | msgstr "Betaalopdrachten" | ||
3263 | 277 | |||
3264 | 278 | #. module: account_banking_sepa_credit_transfer | ||
3265 | 279 | #: view:banking.export.sepa:0 | ||
3266 | 280 | msgid "General Information" | ||
3267 | 281 | msgstr "Algemene informatie" | ||
3268 | 282 | |||
3269 | 283 | #. module: account_banking_sepa_credit_transfer | ||
3270 | 284 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.act_banking_export_sepa_payment_order | ||
3271 | 285 | #: model:ir.actions.act_window,name:account_banking_sepa_credit_transfer.action_account_banking_sepa | ||
3272 | 286 | #: model:ir.ui.menu,name:account_banking_sepa_credit_transfer.menu_account_banking_sepa | ||
3273 | 287 | msgid "SEPA Credit Transfer Files" | ||
3274 | 288 | msgstr "SEPA Credit Transfer bestanden" | ||
3275 | 289 | |||
3276 | 290 | #. module: account_banking_sepa_credit_transfer | ||
3277 | 291 | #: help:banking.export.sepa,batch_booking:0 | ||
3278 | 292 | #: help:banking.export.sepa.wizard,batch_booking:0 | ||
3279 | 293 | msgid "" | ||
3280 | 294 | "If true, the bank statement will display only one debit line for all the " | ||
3281 | 295 | "wire transfers of the SEPA XML file ; if false, the bank statement will " | ||
3282 | 296 | "display one debit line per wire transfer of the SEPA XML file." | ||
3283 | 297 | msgstr "" | ||
3284 | 298 | "Indien aangevinkt zal het bankafschrift maar één debet regel weergeven voor " | ||
3285 | 299 | "alle overschrijvingen van het SEPA XML bestand. Indien uitgevinkt, zal het " | ||
3286 | 300 | "bankafschrift een debet regel weergeven per SEPA XML bestand." | ||
3287 | 301 | |||
3288 | 302 | #. module: account_banking_sepa_credit_transfer | ||
3289 | 303 | #: help:banking.export.sepa.wizard,prefered_exec_date:0 | ||
3290 | 304 | msgid "" | ||
3291 | 305 | "This is the date on which the file should be processed by the bank. Please " | ||
3292 | 306 | "keep in mind that banks only execute on working days and typically use a " | ||
3293 | 307 | "delay of two days between execution date and effective transfer date." | ||
3294 | 308 | msgstr "" | ||
3295 | 309 | "Dit is de datum waarop het bestand zou moeten worden verwerkt door de bank. " | ||
3296 | 310 | "Houdt u er rekening mee dat banken alleen op werkdagen de bestanden " | ||
3297 | 311 | "verwerken en veelal een vertraging hebben van twee dagen tussen de " | ||
3298 | 312 | "verwerkingsdatum en de effectieve overschrijfdatum." | ||
3299 | 313 | |||
3300 | 314 | #. module: account_banking_sepa_credit_transfer | ||
3301 | 315 | #: field:banking.export.sepa.wizard,file:0 | ||
3302 | 316 | msgid "File" | ||
3303 | 317 | msgstr "Bestand" | ||
3304 | 318 | |||
3305 | 319 | #. module: account_banking_sepa_credit_transfer | ||
3306 | 320 | #: view:banking.export.sepa.wizard:0 | ||
3307 | 321 | msgid "Cancel" | ||
3308 | 322 | msgstr "Annuleren" | ||
3309 | 323 | |||
3310 | 324 | #. module: account_banking_sepa_credit_transfer | ||
3311 | 325 | #: field:banking.export.sepa,create_date:0 | ||
3312 | 326 | msgid "Generation Date" | ||
3313 | 327 | msgstr "Aangemaakt op" | ||
3314 | 328 | |||
3315 | 329 | #~ msgid "SEPA XML file" | ||
3316 | 330 | #~ msgstr "SEPA XML bestand" | ||
3317 | 331 | |||
3318 | 332 | #~ msgid "Number of transactions" | ||
3319 | 333 | #~ msgstr "Aantal transacties" | ||
3320 | 334 | |||
3321 | 335 | #~ msgid "" | ||
3322 | 336 | #~ "This is the message identification of the entire SEPA XML file. 35 " | ||
3323 | 337 | #~ "characters max." | ||
3324 | 338 | #~ msgstr "" | ||
3325 | 339 | #~ "Dit is een bericht identificatie van het gehele SEPA XML bestand. Maximaal " | ||
3326 | 340 | #~ "35 karakters." | ||
3327 | 341 | |||
3328 | 342 | #~ msgid "Prefered execution date" | ||
3329 | 343 | #~ msgstr "Voorkeurs uitvoerdatum" | ||
3330 | 344 | |||
3331 | 345 | #~ msgid "Generation date" | ||
3332 | 346 | #~ msgstr "Aanmaakdatum" | ||
3333 | 347 | |||
3334 | 348 | #~ msgid "Message identification" | ||
3335 | 349 | #~ msgstr "Bericht identificatie" | ||
3336 | 350 | |||
3337 | 351 | #~ msgid "Total amount" | ||
3338 | 352 | #~ msgstr "Totaal bedrag" | ||
3339 | 353 | |||
3340 | 354 | #~ msgid "Borne by creditor" | ||
3341 | 355 | #~ msgstr "Rekening van schuldeiser" | ||
3342 | 356 | |||
3343 | 357 | #~ msgid "Payment orders" | ||
3344 | 358 | #~ msgstr "Betaalopdrachten" | ||
3345 | 359 | |||
3346 | 360 | #~ msgid "Generated SEPA Credit Transfer files" | ||
3347 | 361 | #~ msgstr "Gegenereerde SEPA overschrijfbestanden" | ||
3348 | 362 | |||
3349 | 363 | #~ msgid "SEPA XML file generation" | ||
3350 | 364 | #~ msgstr "SEPA XML bestand generatie" | ||
3351 | 365 | |||
3352 | 366 | #~ msgid "Reference for further communication" | ||
3353 | 367 | #~ msgstr "Referentie voor verdere communicatie" | ||
3354 | 368 | |||
3355 | 369 | #~ msgid "Processing details" | ||
3356 | 370 | #~ msgstr "Verwerkings details" | ||
3357 | 371 | |||
3358 | 372 | #~ msgid "Borne by debtor" | ||
3359 | 373 | #~ msgstr "Rekening van schuldenaar" | ||
3360 | 374 | |||
3361 | 375 | #~ msgid "Payment order" | ||
3362 | 376 | #~ msgstr "Betaalopdracht" | ||
3363 | 377 | |||
3364 | 378 | #~ msgid "Following service level" | ||
3365 | 379 | #~ msgstr "Volg service level" | ||
3366 | 380 | |||
3367 | 381 | #~ msgid "Charge bearer" | ||
3368 | 382 | #~ msgstr "Kostenverdeling" | ||
3369 | 383 | |||
3370 | 384 | #~ msgid "" | ||
3371 | 385 | #~ "Shared : transaction charges on the sender side are to be borne by the " | ||
3372 | 386 | #~ "debtor, transaction charges on the receiver side are to be borne by the " | ||
3373 | 387 | #~ "creditor (most transfers use this). Borne by creditor : all transaction " | ||
3374 | 388 | #~ "charges are to be borne by the creditor. Borne by debtor : all transaction " | ||
3375 | 389 | #~ "charges are to be borne by the debtor. Following service level : transaction " | ||
3376 | 390 | #~ "charges are to be applied following the rules agreed in the service level " | ||
3377 | 391 | #~ "and/or scheme." | ||
3378 | 392 | #~ msgstr "" | ||
3379 | 393 | #~ "Gedeeld : De transactiekosten aan de verzender kant zijn voor de " | ||
3380 | 394 | #~ "schuldeiser, transactiekosten aan de ontvanger kant zijn voor de schuldenaar " | ||
3381 | 395 | #~ "(deze keuze wordt het meest gebruikt). Rekening van de schuldenaar: Alle " | ||
3382 | 396 | #~ "transactie kosten zijn voor rekening van de schuldenaar. Rekening van de " | ||
3383 | 397 | #~ "schuldeiser: Alle transactie kosten zijn voor rekening van de schuldeiser. " | ||
3384 | 398 | #~ "Volg service level: Transactie kosten worden toegepast volgens de " | ||
3385 | 399 | #~ "afgesporken regels in het service level en/of schema." | ||
3386 | 400 | |||
3387 | 401 | #~ msgid "Batch booking" | ||
3388 | 402 | #~ msgstr "Batch boeking" | ||
3389 | 403 | |||
3390 | 404 | #~ msgid "Generated SEPA Credit Transfer XML files" | ||
3391 | 405 | #~ msgstr "Gengenereerde SEPA XML overschrijf bestanden" | ||
3392 | 0 | 406 | ||
3393 | === added directory 'account_banking_sepa_credit_transfer/static' | |||
3394 | === added directory 'account_banking_sepa_credit_transfer/static/src' | |||
3395 | === added directory 'account_banking_sepa_credit_transfer/static/src/img' | |||
3396 | === added file 'account_banking_sepa_credit_transfer/static/src/img/icon.png' | |||
3397 | 1 | Binary files account_banking_sepa_credit_transfer/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and account_banking_sepa_credit_transfer/static/src/img/icon.png 2014-03-19 00:47:00 +0000 differ | 407 | Binary files account_banking_sepa_credit_transfer/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and account_banking_sepa_credit_transfer/static/src/img/icon.png 2014-03-19 00:47:00 +0000 differ |
3398 | === modified file 'account_banking_sepa_credit_transfer/wizard/__init__.py' | |||
3399 | --- account_banking_sepa_credit_transfer/wizard/__init__.py 2013-05-15 20:09:21 +0000 | |||
3400 | +++ account_banking_sepa_credit_transfer/wizard/__init__.py 2014-03-19 00:47:00 +0000 | |||
3401 | @@ -20,4 +20,4 @@ | |||
3402 | 20 | # | 20 | # |
3403 | 21 | ############################################################################## | 21 | ############################################################################## |
3404 | 22 | 22 | ||
3406 | 23 | import export_sepa | 23 | from . import export_sepa |
3407 | 24 | 24 | ||
3408 | === modified file 'account_banking_sepa_credit_transfer/wizard/export_sepa.py' | |||
3409 | --- account_banking_sepa_credit_transfer/wizard/export_sepa.py 2013-10-14 14:43:35 +0000 | |||
3410 | +++ account_banking_sepa_credit_transfer/wizard/export_sepa.py 2014-03-19 00:47:00 +0000 | |||
3411 | @@ -21,51 +21,58 @@ | |||
3412 | 21 | ############################################################################## | 21 | ############################################################################## |
3413 | 22 | 22 | ||
3414 | 23 | 23 | ||
3420 | 24 | from osv import osv, fields | 24 | from openerp.osv import orm, fields |
3421 | 25 | import base64 | 25 | from openerp.tools.translate import _ |
3422 | 26 | from datetime import datetime, timedelta | 26 | from openerp import netsvc |
3418 | 27 | from tools.translate import _ | ||
3419 | 28 | import tools | ||
3423 | 29 | from lxml import etree | 27 | from lxml import etree |
3431 | 30 | import logging | 28 | |
3432 | 31 | import netsvc | 29 | |
3433 | 32 | 30 | class banking_export_sepa_wizard(orm.TransientModel): | |
3427 | 33 | _logger = logging.getLogger(__name__) | ||
3428 | 34 | |||
3429 | 35 | |||
3430 | 36 | class banking_export_sepa_wizard(osv.osv_memory): | ||
3434 | 37 | _name = 'banking.export.sepa.wizard' | 31 | _name = 'banking.export.sepa.wizard' |
3436 | 38 | _description = 'Export SEPA Credit Transfer XML file' | 32 | _inherit = ['banking.export.pain'] |
3437 | 33 | _description = 'Export SEPA Credit Transfer File' | ||
3438 | 34 | |||
3439 | 39 | _columns = { | 35 | _columns = { |
3450 | 40 | 'state': fields.selection([('create', 'Create'), ('finish', 'Finish')], | 36 | 'state': fields.selection([ |
3451 | 41 | 'State', readonly=True), | 37 | ('create', 'Create'), |
3452 | 42 | 'msg_identification': fields.char('Message identification', size=35, | 38 | ('finish', 'Finish'), |
3453 | 43 | # Can't set required=True on the field because it blocks | 39 | ], 'State', readonly=True), |
3454 | 44 | # the launch of the wizard -> I set it as required in the view | 40 | 'batch_booking': fields.boolean( |
3455 | 45 | help='This is the message identification of the entire SEPA XML file. 35 characters max.'), | 41 | 'Batch Booking', |
3456 | 46 | 'batch_booking': fields.boolean('Batch booking', | 42 | help="If true, the bank statement will display only one debit " |
3457 | 47 | help="If true, the bank statement will display only one debit line for all the wire transfers of the SEPA XML file ; if false, the bank statement will display one debit line per wire transfer of the SEPA XML file."), | 43 | "line for all the wire transfers of the SEPA XML file ; if " |
3458 | 48 | 'prefered_exec_date': fields.date('Prefered execution date', | 44 | "false, the bank statement will display one debit line per wire " |
3459 | 49 | help='This is the date on which the file should be processed by the bank. Please keep in mind that banks only execute on working days and typically use a delay of two days between execution date and effective transfer date.'), | 45 | "transfer of the SEPA XML file."), |
3460 | 50 | 'charge_bearer': fields.selection([ | 46 | 'charge_bearer': fields.selection([ |
3461 | 47 | ('SLEV', 'Following Service Level'), | ||
3462 | 51 | ('SHAR', 'Shared'), | 48 | ('SHAR', 'Shared'), |
3474 | 52 | ('CRED', 'Borne by creditor'), | 49 | ('CRED', 'Borne by Creditor'), |
3475 | 53 | ('DEBT', 'Borne by debtor'), | 50 | ('DEBT', 'Borne by Debtor'), |
3476 | 54 | ('SLEV', 'Following service level'), | 51 | ], 'Charge Bearer', required=True, |
3477 | 55 | ], 'Charge bearer', required=True, | 52 | help="Following service level : transaction charges are to be " |
3478 | 56 | help='Shared : transaction charges on the sender side are to be borne by the debtor, transaction charges on the receiver side are to be borne by the creditor (most transfers use this). Borne by creditor : all transaction charges are to be borne by the creditor. Borne by debtor : all transaction charges are to be borne by the debtor. Following service level : transaction charges are to be applied following the rules agreed in the service level and/or scheme.'), | 53 | "applied following the rules agreed in the service level and/or " |
3479 | 57 | 'nb_transactions': fields.related('file_id', 'nb_transactions', | 54 | "scheme (SEPA Core messages must use this). Shared : transaction " |
3480 | 58 | type='integer', string='Number of transactions', readonly=True), | 55 | "charges on the debtor side are to be borne by the debtor, " |
3481 | 59 | 'total_amount': fields.related('file_id', 'total_amount', type='float', | 56 | "transaction charges on the creditor side are to be borne by " |
3482 | 60 | string='Total amount', readonly=True), | 57 | "the creditor. Borne by creditor : all transaction charges are " |
3483 | 61 | 'file_id': fields.many2one('banking.export.sepa', 'SEPA XML file', readonly=True), | 58 | "to be borne by the creditor. Borne by debtor : all transaction " |
3484 | 62 | 'file': fields.related('file_id', 'file', string="File", type='binary', | 59 | "charges are to be borne by the debtor."), |
3485 | 60 | 'nb_transactions': fields.related( | ||
3486 | 61 | 'file_id', 'nb_transactions', type='integer', | ||
3487 | 62 | string='Number of Transactions', readonly=True), | ||
3488 | 63 | 'total_amount': fields.related( | ||
3489 | 64 | 'file_id', 'total_amount', type='float', string='Total Amount', | ||
3490 | 63 | readonly=True), | 65 | readonly=True), |
3496 | 64 | 'filename': fields.related('file_id', 'filename', string="Filename", | 66 | 'file_id': fields.many2one( |
3497 | 65 | type='char', size=256, readonly=True), | 67 | 'banking.export.sepa', 'SEPA XML File', readonly=True), |
3498 | 66 | 'payment_order_ids': fields.many2many('payment.order', | 68 | 'file': fields.related( |
3499 | 67 | 'wiz_sepa_payorders_rel', 'wizard_id', 'payment_order_id', | 69 | 'file_id', 'file', string="File", type='binary', readonly=True), |
3500 | 68 | 'Payment orders', readonly=True), | 70 | 'filename': fields.related( |
3501 | 71 | 'file_id', 'filename', string="Filename", type='char', | ||
3502 | 72 | size=256, readonly=True), | ||
3503 | 73 | 'payment_order_ids': fields.many2many( | ||
3504 | 74 | 'payment.order', 'wiz_sepa_payorders_rel', 'wizard_id', | ||
3505 | 75 | 'payment_order_id', 'Payment Orders', readonly=True), | ||
3506 | 69 | } | 76 | } |
3507 | 70 | 77 | ||
3508 | 71 | _defaults = { | 78 | _defaults = { |
3509 | @@ -73,46 +80,24 @@ | |||
3510 | 73 | 'state': 'create', | 80 | 'state': 'create', |
3511 | 74 | } | 81 | } |
3512 | 75 | 82 | ||
3513 | 76 | |||
3514 | 77 | def _limit_size(self, cr, uid, field, max_size, context=None): | ||
3515 | 78 | '''Limit size of strings to respect the PAIN standard''' | ||
3516 | 79 | max_size = int(max_size) | ||
3517 | 80 | return field[0:max_size] | ||
3518 | 81 | |||
3519 | 82 | |||
3520 | 83 | def _validate_iban(self, cr, uid, iban, context=None): | ||
3521 | 84 | '''if IBAN is valid, returns IBAN | ||
3522 | 85 | if IBAN is NOT valid, raises an error message''' | ||
3523 | 86 | partner_bank_obj = self.pool.get('res.partner.bank') | ||
3524 | 87 | if partner_bank_obj.is_iban_valid(cr, uid, iban, context=context): | ||
3525 | 88 | return iban.replace(' ', '') | ||
3526 | 89 | else: | ||
3527 | 90 | raise osv.except_osv(_('Error :'), _("This IBAN is not valid : %s") % iban) | ||
3528 | 91 | |||
3529 | 92 | def create(self, cr, uid, vals, context=None): | 83 | def create(self, cr, uid, vals, context=None): |
3530 | 93 | payment_order_ids = context.get('active_ids', []) | 84 | payment_order_ids = context.get('active_ids', []) |
3531 | 94 | vals.update({ | 85 | vals.update({ |
3532 | 95 | 'payment_order_ids': [[6, 0, payment_order_ids]], | 86 | 'payment_order_ids': [[6, 0, payment_order_ids]], |
3533 | 96 | }) | 87 | }) |
3537 | 97 | return super(banking_export_sepa_wizard, self).create(cr, uid, | 88 | return super(banking_export_sepa_wizard, self).create( |
3538 | 98 | vals, context=context) | 89 | cr, uid, vals, context=context) |
3536 | 99 | |||
3539 | 100 | 90 | ||
3540 | 101 | def create_sepa(self, cr, uid, ids, context=None): | 91 | def create_sepa(self, cr, uid, ids, context=None): |
3541 | 102 | ''' | 92 | ''' |
3542 | 103 | Creates the SEPA Credit Transfer file. That's the important code ! | 93 | Creates the SEPA Credit Transfer file. That's the important code ! |
3543 | 104 | ''' | 94 | ''' |
3546 | 105 | payment_order_obj = self.pool.get('payment.order') | 95 | if context is None: |
3547 | 106 | 96 | context = {} | |
3548 | 107 | sepa_export = self.browse(cr, uid, ids[0], context=context) | 97 | sepa_export = self.browse(cr, uid, ids[0], context=context) |
3549 | 108 | |||
3550 | 109 | my_company_name = sepa_export.payment_order_ids[0].mode.bank_id.partner_id.name | ||
3551 | 110 | my_company_iban = self._validate_iban(cr, uid, sepa_export.payment_order_ids[0].mode.bank_id.acc_number, context=context) | ||
3552 | 111 | my_company_bic = sepa_export.payment_order_ids[0].mode.bank_id.bank.bic | ||
3553 | 112 | #my_company_country_code = sepa_export.payment_order_ids[0].mode.bank_id.partner_id.address[0].country_id.code | ||
3554 | 113 | #my_company_city = sepa_export.payment_order_ids[0].mode.bank_id.partner_id.address[0].city | ||
3555 | 114 | #my_company_street1 = sepa_export.payment_order_ids[0].mode.bank_id.partner_id.address[0].street | ||
3556 | 115 | pain_flavor = sepa_export.payment_order_ids[0].mode.type.code | 98 | pain_flavor = sepa_export.payment_order_ids[0].mode.type.code |
3557 | 99 | convert_to_ascii = \ | ||
3558 | 100 | sepa_export.payment_order_ids[0].mode.convert_to_ascii | ||
3559 | 116 | if pain_flavor == 'pain.001.001.02': | 101 | if pain_flavor == 'pain.001.001.02': |
3560 | 117 | bic_xml_tag = 'BIC' | 102 | bic_xml_tag = 'BIC' |
3561 | 118 | name_maxsize = 70 | 103 | name_maxsize = 70 |
3562 | @@ -121,226 +106,193 @@ | |||
3563 | 121 | bic_xml_tag = 'BIC' | 106 | bic_xml_tag = 'BIC' |
3564 | 122 | # size 70 -> 140 for <Nm> with pain.001.001.03 | 107 | # size 70 -> 140 for <Nm> with pain.001.001.03 |
3565 | 123 | # BUT the European Payment Council, in the document | 108 | # BUT the European Payment Council, in the document |
3568 | 124 | # "SEPA Credit Transfer Scheme Customer-to-bank Implementation guidelines" v6.0 | 109 | # "SEPA Credit Transfer Scheme Customer-to-bank |
3569 | 125 | # available on http://www.europeanpaymentscouncil.eu/knowledge_bank.cfm | 110 | # Implementation guidelines" v6.0 available on |
3570 | 111 | # http://www.europeanpaymentscouncil.eu/knowledge_bank.cfm | ||
3571 | 126 | # says that 'Nm' should be limited to 70 | 112 | # says that 'Nm' should be limited to 70 |
3573 | 127 | # so we follow the "European Payment Council" and we put 70 and not 140 | 113 | # so we follow the "European Payment Council" |
3574 | 114 | # and we put 70 and not 140 | ||
3575 | 128 | name_maxsize = 70 | 115 | name_maxsize = 70 |
3576 | 129 | root_xml_tag = 'CstmrCdtTrfInitn' | 116 | root_xml_tag = 'CstmrCdtTrfInitn' |
3577 | 130 | elif pain_flavor == 'pain.001.001.04': | 117 | elif pain_flavor == 'pain.001.001.04': |
3578 | 131 | bic_xml_tag = 'BICFI' | 118 | bic_xml_tag = 'BICFI' |
3579 | 132 | name_maxsize = 140 | 119 | name_maxsize = 140 |
3580 | 133 | root_xml_tag = 'CstmrCdtTrfInitn' | 120 | root_xml_tag = 'CstmrCdtTrfInitn' |
3592 | 134 | else: | 121 | elif pain_flavor == 'pain.001.001.05': |
3593 | 135 | raise osv.except_osv(_('Error :'), _("Payment Type Code '%s' is not supported. The only Payment Type Codes supported for SEPA Credit Transfers are 'pain.001.001.02', 'pain.001.001.03' and 'pain.001.001.04'.") % pain_flavor) | 122 | bic_xml_tag = 'BICFI' |
3594 | 136 | if sepa_export.batch_booking: | 123 | name_maxsize = 140 |
3595 | 137 | my_batch_booking = 'true' | 124 | root_xml_tag = 'CstmrCdtTrfInitn' |
3596 | 138 | else: | 125 | |
3597 | 139 | my_batch_booking = 'false' | 126 | else: |
3598 | 140 | my_msg_identification = sepa_export.msg_identification | 127 | raise orm.except_orm( |
3599 | 141 | if sepa_export.prefered_exec_date: | 128 | _('Error:'), |
3600 | 142 | my_requested_exec_date = sepa_export.prefered_exec_date | 129 | _("Payment Type Code '%s' is not supported. The only " |
3601 | 143 | else: | 130 | "Payment Type Codes supported for SEPA Credit Transfers " |
3602 | 144 | my_requested_exec_date = datetime.strftime(datetime.today() + timedelta(days=1), '%Y-%m-%d') | 131 | "are 'pain.001.001.02', 'pain.001.001.03', " |
3603 | 132 | "'pain.001.001.04' and 'pain.001.001.05'.") | ||
3604 | 133 | % pain_flavor) | ||
3605 | 134 | |||
3606 | 135 | gen_args = { | ||
3607 | 136 | 'bic_xml_tag': bic_xml_tag, | ||
3608 | 137 | 'name_maxsize': name_maxsize, | ||
3609 | 138 | 'convert_to_ascii': convert_to_ascii, | ||
3610 | 139 | 'pain_flavor': pain_flavor, | ||
3611 | 140 | 'sepa_export': sepa_export, | ||
3612 | 141 | 'file_obj': self.pool['banking.export.sepa'], | ||
3613 | 142 | 'pain_xsd_file': | ||
3614 | 143 | 'account_banking_sepa_credit_transfer/data/%s.xsd' | ||
3615 | 144 | % pain_flavor, | ||
3616 | 145 | } | ||
3617 | 145 | 146 | ||
3618 | 146 | pain_ns = { | 147 | pain_ns = { |
3619 | 147 | 'xsi': 'http://www.w3.org/2001/XMLSchema-instance', | 148 | 'xsi': 'http://www.w3.org/2001/XMLSchema-instance', |
3620 | 148 | None: 'urn:iso:std:iso:20022:tech:xsd:%s' % pain_flavor, | 149 | None: 'urn:iso:std:iso:20022:tech:xsd:%s' % pain_flavor, |
3621 | 149 | } | 150 | } |
3622 | 150 | 151 | ||
3625 | 151 | root = etree.Element('Document', nsmap=pain_ns) | 152 | xml_root = etree.Element('Document', nsmap=pain_ns) |
3626 | 152 | pain_root = etree.SubElement(root, root_xml_tag) | 153 | pain_root = etree.SubElement(xml_root, root_xml_tag) |
3627 | 154 | pain_03_to_05 = \ | ||
3628 | 155 | ['pain.001.001.03', 'pain.001.001.04', 'pain.001.001.05'] | ||
3629 | 156 | |||
3630 | 153 | # A. Group header | 157 | # A. Group header |
3697 | 154 | group_header = etree.SubElement(pain_root, 'GrpHdr') | 158 | group_header_1_0, nb_of_transactions_1_6, control_sum_1_7 = \ |
3698 | 155 | message_identification = etree.SubElement(group_header, 'MsgId') | 159 | self.generate_group_header_block( |
3699 | 156 | message_identification.text = self._limit_size(cr, uid, my_msg_identification, 35, context=context) | 160 | cr, uid, pain_root, gen_args, context=context) |
3634 | 157 | creation_date_time = etree.SubElement(group_header, 'CreDtTm') | ||
3635 | 158 | creation_date_time.text = datetime.strftime(datetime.today(), '%Y-%m-%dT%H:%M:%S') | ||
3636 | 159 | if pain_flavor == 'pain.001.001.02': | ||
3637 | 160 | # batch_booking is in "Group header" with pain.001.001.02 | ||
3638 | 161 | # and in "Payment info" in pain.001.001.03/04 | ||
3639 | 162 | batch_booking = etree.SubElement(group_header, 'BtchBookg') | ||
3640 | 163 | batch_booking.text = my_batch_booking | ||
3641 | 164 | nb_of_transactions_grphdr = etree.SubElement(group_header, 'NbOfTxs') | ||
3642 | 165 | control_sum_grphdr = etree.SubElement(group_header, 'CtrlSum') | ||
3643 | 166 | # Grpg removed in pain.001.001.03 | ||
3644 | 167 | if pain_flavor == 'pain.001.001.02': | ||
3645 | 168 | grouping = etree.SubElement(group_header, 'Grpg') | ||
3646 | 169 | grouping.text = 'GRPD' | ||
3647 | 170 | initiating_party = etree.SubElement(group_header, 'InitgPty') | ||
3648 | 171 | initiating_party_name = etree.SubElement(initiating_party, 'Nm') | ||
3649 | 172 | initiating_party_name.text = self._limit_size(cr, uid, my_company_name, name_maxsize, context=context) | ||
3650 | 173 | # B. Payment info | ||
3651 | 174 | payment_info = etree.SubElement(pain_root, 'PmtInf') | ||
3652 | 175 | payment_info_identification = etree.SubElement(payment_info, 'PmtInfId') | ||
3653 | 176 | payment_info_identification.text = self._limit_size(cr, uid, my_msg_identification, 35, context=context) | ||
3654 | 177 | payment_method = etree.SubElement(payment_info, 'PmtMtd') | ||
3655 | 178 | payment_method.text = 'TRF' | ||
3656 | 179 | if pain_flavor in ['pain.001.001.03', 'pain.001.001.04']: | ||
3657 | 180 | # batch_booking is in "Group header" with pain.001.001.02 | ||
3658 | 181 | # and in "Payment info" in pain.001.001.03/04 | ||
3659 | 182 | batch_booking = etree.SubElement(payment_info, 'BtchBookg') | ||
3660 | 183 | batch_booking.text = my_batch_booking | ||
3661 | 184 | # It may seem surprising, but the | ||
3662 | 185 | # "SEPA Credit Transfer Scheme Customer-to-bank Implementation guidelines" | ||
3663 | 186 | # v6.0 says that control sum and nb_of_transactions should be present | ||
3664 | 187 | # at both "group header" level and "payment info" level | ||
3665 | 188 | # This seems to be confirmed by the tests carried out at | ||
3666 | 189 | # BNP Paribas in PAIN v001.001.03 | ||
3667 | 190 | if pain_flavor in ['pain.001.001.03', 'pain.001.001.04']: | ||
3668 | 191 | nb_of_transactions_pmtinf = etree.SubElement(payment_info, 'NbOfTxs') | ||
3669 | 192 | control_sum_pmtinf = etree.SubElement(payment_info, 'CtrlSum') | ||
3670 | 193 | payment_type_info = etree.SubElement(payment_info, 'PmtTpInf') | ||
3671 | 194 | service_level = etree.SubElement(payment_type_info, 'SvcLvl') | ||
3672 | 195 | service_level_code = etree.SubElement(service_level, 'Cd') | ||
3673 | 196 | service_level_code.text = 'SEPA' | ||
3674 | 197 | requested_exec_date = etree.SubElement(payment_info, 'ReqdExctnDt') | ||
3675 | 198 | requested_exec_date.text = my_requested_exec_date | ||
3676 | 199 | debtor = etree.SubElement(payment_info, 'Dbtr') | ||
3677 | 200 | debtor_name = etree.SubElement(debtor, 'Nm') | ||
3678 | 201 | debtor_name.text = self._limit_size(cr, uid, my_company_name, name_maxsize, context=context) | ||
3679 | 202 | # debtor_address = etree.SubElement(debtor, 'PstlAdr') | ||
3680 | 203 | # debtor_street = etree.SubElement(debtor_address, 'AdrLine') | ||
3681 | 204 | # debtor_street.text = my_company_street1 | ||
3682 | 205 | # debtor_city = etree.SubElement(debtor_address, 'AdrLine') | ||
3683 | 206 | # debtor_city.text = my_company_city | ||
3684 | 207 | # debtor_country = etree.SubElement(debtor_address, 'Ctry') | ||
3685 | 208 | # debtor_country.text = my_company_country_code | ||
3686 | 209 | debtor_account = etree.SubElement(payment_info, 'DbtrAcct') | ||
3687 | 210 | debtor_account_id = etree.SubElement(debtor_account, 'Id') | ||
3688 | 211 | debtor_account_iban = etree.SubElement(debtor_account_id, 'IBAN') | ||
3689 | 212 | debtor_account_iban.text = my_company_iban | ||
3690 | 213 | debtor_agent = etree.SubElement(payment_info, 'DbtrAgt') | ||
3691 | 214 | debtor_agent_institution = etree.SubElement(debtor_agent, 'FinInstnId') | ||
3692 | 215 | if my_company_bic: | ||
3693 | 216 | debtor_agent_bic = etree.SubElement(debtor_agent_institution, bic_xml_tag) | ||
3694 | 217 | debtor_agent_bic.text = my_company_bic | ||
3695 | 218 | charge_bearer = etree.SubElement(payment_info, 'ChrgBr') | ||
3696 | 219 | charge_bearer.text = sepa_export.charge_bearer | ||
3700 | 220 | 161 | ||
3702 | 221 | transactions_count = 0 | 162 | transactions_count_1_6 = 0 |
3703 | 222 | total_amount = 0.0 | 163 | total_amount = 0.0 |
3706 | 223 | amount_control_sum = 0.0 | 164 | amount_control_sum_1_7 = 0.0 |
3707 | 224 | # Iterate on payment orders | 165 | lines_per_group = {} |
3708 | 166 | # key = (requested_date, priority) | ||
3709 | 167 | # values = list of lines as object | ||
3710 | 168 | today = fields.date.context_today(self, cr, uid, context=context) | ||
3711 | 225 | for payment_order in sepa_export.payment_order_ids: | 169 | for payment_order in sepa_export.payment_order_ids: |
3712 | 226 | total_amount = total_amount + payment_order.total | 170 | total_amount = total_amount + payment_order.total |
3713 | 227 | # Iterate each payment lines | ||
3714 | 228 | for line in payment_order.line_ids: | 171 | for line in payment_order.line_ids: |
3716 | 229 | transactions_count += 1 | 172 | priority = line.priority |
3717 | 173 | if payment_order.date_prefered == 'due': | ||
3718 | 174 | requested_date = line.ml_maturity_date or today | ||
3719 | 175 | elif payment_order.date_prefered == 'fixed': | ||
3720 | 176 | requested_date = payment_order.date_scheduled or today | ||
3721 | 177 | else: | ||
3722 | 178 | requested_date = today | ||
3723 | 179 | key = (requested_date, priority) | ||
3724 | 180 | if key in lines_per_group: | ||
3725 | 181 | lines_per_group[key].append(line) | ||
3726 | 182 | else: | ||
3727 | 183 | lines_per_group[key] = [line] | ||
3728 | 184 | # Write requested_date on 'Payment date' of the pay line | ||
3729 | 185 | if requested_date != line.date: | ||
3730 | 186 | self.pool['payment.line'].write( | ||
3731 | 187 | cr, uid, line.id, | ||
3732 | 188 | {'date': requested_date}, context=context) | ||
3733 | 189 | |||
3734 | 190 | for (requested_date, priority), lines in lines_per_group.items(): | ||
3735 | 191 | # B. Payment info | ||
3736 | 192 | payment_info_2_0, nb_of_transactions_2_4, control_sum_2_5 = \ | ||
3737 | 193 | self.generate_start_payment_info_block( | ||
3738 | 194 | cr, uid, pain_root, | ||
3739 | 195 | "sepa_export.payment_order_ids[0].reference + '-' " | ||
3740 | 196 | "+ requested_date.replace('-', '') + '-' + priority", | ||
3741 | 197 | priority, False, False, requested_date, { | ||
3742 | 198 | 'sepa_export': sepa_export, | ||
3743 | 199 | 'priority': priority, | ||
3744 | 200 | 'requested_date': requested_date, | ||
3745 | 201 | }, gen_args, context=context) | ||
3746 | 202 | |||
3747 | 203 | self.generate_party_block( | ||
3748 | 204 | cr, uid, payment_info_2_0, 'Dbtr', 'B', | ||
3749 | 205 | 'sepa_export.payment_order_ids[0].mode.bank_id.partner_id.' | ||
3750 | 206 | 'name', | ||
3751 | 207 | 'sepa_export.payment_order_ids[0].mode.bank_id.acc_number', | ||
3752 | 208 | 'sepa_export.payment_order_ids[0].mode.bank_id.bank.bic', | ||
3753 | 209 | {'sepa_export': sepa_export}, | ||
3754 | 210 | gen_args, context=context) | ||
3755 | 211 | |||
3756 | 212 | charge_bearer_2_24 = etree.SubElement(payment_info_2_0, 'ChrgBr') | ||
3757 | 213 | charge_bearer_2_24.text = sepa_export.charge_bearer | ||
3758 | 214 | |||
3759 | 215 | transactions_count_2_4 = 0 | ||
3760 | 216 | amount_control_sum_2_5 = 0.0 | ||
3761 | 217 | for line in lines: | ||
3762 | 218 | transactions_count_1_6 += 1 | ||
3763 | 219 | transactions_count_2_4 += 1 | ||
3764 | 230 | # C. Credit Transfer Transaction Info | 220 | # C. Credit Transfer Transaction Info |
3777 | 231 | credit_transfer_transaction_info = etree.SubElement(payment_info, 'CdtTrfTxInf') | 221 | credit_transfer_transaction_info_2_27 = etree.SubElement( |
3778 | 232 | payment_identification = etree.SubElement(credit_transfer_transaction_info, 'PmtId') | 222 | payment_info_2_0, 'CdtTrfTxInf') |
3779 | 233 | instruction_identification = etree.SubElement(payment_identification, 'InstrId') | 223 | payment_identification_2_28 = etree.SubElement( |
3780 | 234 | instruction_identification.text = self._limit_size(cr, uid, line.communication, 35, context=context) #otherwise, we can reach the invoice fields via ml_inv_ref | 224 | credit_transfer_transaction_info_2_27, 'PmtId') |
3781 | 235 | end2end_identification = etree.SubElement(payment_identification, 'EndToEndId') | 225 | end2end_identification_2_30 = etree.SubElement( |
3782 | 236 | end2end_identification.text = self._limit_size(cr, uid, line.communication, 35, context=context) | 226 | payment_identification_2_28, 'EndToEndId') |
3783 | 237 | amount = etree.SubElement(credit_transfer_transaction_info, 'Amt') | 227 | end2end_identification_2_30.text = self._prepare_field( |
3784 | 238 | instructed_amount = etree.SubElement(amount, 'InstdAmt', Ccy=line.currency.name) | 228 | cr, uid, 'End to End Identification', 'line.name', |
3785 | 239 | instructed_amount.text = '%.2f' % line.amount_currency | 229 | {'line': line}, 35, gen_args=gen_args, |
3786 | 240 | amount_control_sum += line.amount_currency | 230 | context=context) |
3787 | 241 | creditor_agent = etree.SubElement(credit_transfer_transaction_info, 'CdtrAgt') | 231 | currency_name = self._prepare_field( |
3788 | 242 | creditor_agent_institution = etree.SubElement(creditor_agent, 'FinInstnId') | 232 | cr, uid, 'Currency Code', 'line.currency.name', |
3789 | 233 | {'line': line}, 3, gen_args=gen_args, | ||
3790 | 234 | context=context) | ||
3791 | 235 | amount_2_42 = etree.SubElement( | ||
3792 | 236 | credit_transfer_transaction_info_2_27, 'Amt') | ||
3793 | 237 | instructed_amount_2_43 = etree.SubElement( | ||
3794 | 238 | amount_2_42, 'InstdAmt', Ccy=currency_name) | ||
3795 | 239 | instructed_amount_2_43.text = '%.2f' % line.amount_currency | ||
3796 | 240 | amount_control_sum_1_7 += line.amount_currency | ||
3797 | 241 | amount_control_sum_2_5 += line.amount_currency | ||
3798 | 242 | |||
3799 | 243 | if not line.bank_id: | 243 | if not line.bank_id: |
3828 | 244 | raise osv.except_osv(_('Error :'), _("Missing Bank Account on invoice '%s' (payment order line reference '%s').") %(line.ml_inv_ref.number, line.name)) | 244 | raise orm.except_orm( |
3829 | 245 | if line.bank_id.bank.bic: | 245 | _('Error:'), |
3830 | 246 | creditor_agent_bic = etree.SubElement(creditor_agent_institution, bic_xml_tag) | 246 | _("Missing Bank Account on invoice '%s' (payment " |
3831 | 247 | creditor_agent_bic.text = line.bank_id.bank.bic | 247 | "order line reference '%s').") |
3832 | 248 | creditor = etree.SubElement(credit_transfer_transaction_info, 'Cdtr') | 248 | % (line.ml_inv_ref.number, line.name)) |
3833 | 249 | creditor_name = etree.SubElement(creditor, 'Nm') | 249 | self.generate_party_block( |
3834 | 250 | creditor_name.text = self._limit_size(cr, uid, line.partner_id.name, name_maxsize, context=context) | 250 | cr, uid, credit_transfer_transaction_info_2_27, 'Cdtr', |
3835 | 251 | # I don't think they want it | 251 | 'C', 'line.partner_id.name', 'line.bank_id.acc_number', |
3836 | 252 | # If they want it, we need to implement full spec p26 appendix | 252 | 'line.bank_id.bank.bic', {'line': line}, gen_args, |
3837 | 253 | # creditor_address = etree.SubElement(creditor, 'PstlAdr') | 253 | context=context) |
3838 | 254 | # creditor_street = etree.SubElement(creditor_address, 'AdrLine') | 254 | |
3839 | 255 | # creditor_street.text = line.partner_id.address[0].street | 255 | self.generate_remittance_info_block( |
3840 | 256 | # creditor_city = etree.SubElement(creditor_address, 'AdrLine') | 256 | cr, uid, credit_transfer_transaction_info_2_27, |
3841 | 257 | # creditor_city.text = line.partner_id.address[0].city | 257 | line, gen_args, context=context) |
3842 | 258 | # creditor_country = etree.SubElement(creditor_address, 'Ctry') | 258 | |
3843 | 259 | # creditor_country.text = line.partner_id.address[0].country_id.code | 259 | if pain_flavor in pain_03_to_05: |
3844 | 260 | creditor_account = etree.SubElement(credit_transfer_transaction_info, 'CdtrAcct') | 260 | nb_of_transactions_2_4.text = str(transactions_count_2_4) |
3845 | 261 | creditor_account_id = etree.SubElement(creditor_account, 'Id') | 261 | control_sum_2_5.text = '%.2f' % amount_control_sum_2_5 |
3846 | 262 | creditor_account_iban = etree.SubElement(creditor_account_id, 'IBAN') | 262 | |
3847 | 263 | creditor_account_iban.text = self._validate_iban(cr, uid, line.bank_id.acc_number, context=context) | 263 | if pain_flavor in pain_03_to_05: |
3848 | 264 | remittance_info = etree.SubElement(credit_transfer_transaction_info, 'RmtInf') | 264 | nb_of_transactions_1_6.text = str(transactions_count_1_6) |
3849 | 265 | # switch to Structured (Strdr) ? If we do it, beware that the format is not the same between pain 02 and pain 03 | 265 | control_sum_1_7.text = '%.2f' % amount_control_sum_1_7 |
3822 | 266 | remittance_info_unstructured = etree.SubElement(remittance_info, 'Ustrd') | ||
3823 | 267 | remittance_info_unstructured.text = self._limit_size(cr, uid, line.communication, 140, context=context) | ||
3824 | 268 | |||
3825 | 269 | if pain_flavor in ['pain.001.001.03', 'pain.001.001.04']: | ||
3826 | 270 | nb_of_transactions_grphdr.text = nb_of_transactions_pmtinf.text = str(transactions_count) | ||
3827 | 271 | control_sum_grphdr.text = control_sum_pmtinf.text = '%.2f' % amount_control_sum | ||
3850 | 272 | else: | 266 | else: |
3900 | 273 | nb_of_transactions_grphdr.text = str(transactions_count) | 267 | nb_of_transactions_1_6.text = str(transactions_count_1_6) |
3901 | 274 | control_sum_grphdr.text = '%.2f' % amount_control_sum | 268 | control_sum_1_7.text = '%.2f' % amount_control_sum_1_7 |
3902 | 275 | 269 | ||
3903 | 276 | 270 | return self.finalize_sepa_file_creation( | |
3904 | 277 | xml_string = etree.tostring(root, pretty_print=True, encoding='UTF-8', xml_declaration=True) | 271 | cr, uid, ids, xml_root, total_amount, transactions_count_1_6, |
3905 | 278 | _logger.debug("Generated SEPA XML file below") | 272 | gen_args, context=context) |
3857 | 279 | _logger.debug(xml_string) | ||
3858 | 280 | official_pain_schema = etree.XMLSchema(etree.parse(tools.file_open('account_banking_sepa_credit_transfer/data/%s.xsd' % pain_flavor))) | ||
3859 | 281 | |||
3860 | 282 | try: | ||
3861 | 283 | root_to_validate = etree.fromstring(xml_string) | ||
3862 | 284 | official_pain_schema.assertValid(root_to_validate) | ||
3863 | 285 | except Exception, e: | ||
3864 | 286 | _logger.warning("The XML file is invalid against the XML Schema Definition") | ||
3865 | 287 | _logger.warning(xml_string) | ||
3866 | 288 | _logger.warning(e) | ||
3867 | 289 | raise osv.except_osv(_('Error :'), _('The generated XML file is not valid against the official XML Schema Definition. The generated XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s') % str(e)) | ||
3868 | 290 | |||
3869 | 291 | # CREATE the banking.export.sepa record | ||
3870 | 292 | file_id = self.pool.get('banking.export.sepa').create(cr, uid, | ||
3871 | 293 | { | ||
3872 | 294 | 'msg_identification': my_msg_identification, | ||
3873 | 295 | 'batch_booking': sepa_export.batch_booking, | ||
3874 | 296 | 'charge_bearer': sepa_export.charge_bearer, | ||
3875 | 297 | 'prefered_exec_date': sepa_export.prefered_exec_date, | ||
3876 | 298 | 'total_amount': total_amount, | ||
3877 | 299 | 'nb_transactions': transactions_count, | ||
3878 | 300 | 'file': base64.encodestring(xml_string), | ||
3879 | 301 | 'payment_order_ids': [ | ||
3880 | 302 | (6, 0, [x.id for x in sepa_export.payment_order_ids]) | ||
3881 | 303 | ], | ||
3882 | 304 | }, context=context) | ||
3883 | 305 | |||
3884 | 306 | self.write(cr, uid, ids, { | ||
3885 | 307 | 'file_id': file_id, | ||
3886 | 308 | 'state': 'finish', | ||
3887 | 309 | }, context=context) | ||
3888 | 310 | |||
3889 | 311 | action = { | ||
3890 | 312 | 'name': 'SEPA XML', | ||
3891 | 313 | 'type': 'ir.actions.act_window', | ||
3892 | 314 | 'view_type': 'form', | ||
3893 | 315 | 'view_mode': 'form,tree', | ||
3894 | 316 | 'res_model': self._name, | ||
3895 | 317 | 'res_id': ids[0], | ||
3896 | 318 | 'target': 'new', | ||
3897 | 319 | } | ||
3898 | 320 | return action | ||
3899 | 321 | |||
3906 | 322 | 273 | ||
3907 | 323 | def cancel_sepa(self, cr, uid, ids, context=None): | 274 | def cancel_sepa(self, cr, uid, ids, context=None): |
3908 | 324 | ''' | 275 | ''' |
3910 | 325 | Cancel the SEPA PAIN: just drop the file | 276 | Cancel the SEPA file: just drop the file |
3911 | 326 | ''' | 277 | ''' |
3912 | 327 | sepa_export = self.browse(cr, uid, ids[0], context=context) | 278 | sepa_export = self.browse(cr, uid, ids[0], context=context) |
3914 | 328 | self.pool.get('banking.export.sepa').unlink(cr, uid, sepa_export.file_id.id, context=context) | 279 | self.pool.get('banking.export.sepa').unlink( |
3915 | 280 | cr, uid, sepa_export.file_id.id, context=context) | ||
3916 | 329 | return {'type': 'ir.actions.act_window_close'} | 281 | return {'type': 'ir.actions.act_window_close'} |
3917 | 330 | 282 | ||
3918 | 331 | |||
3919 | 332 | def save_sepa(self, cr, uid, ids, context=None): | 283 | def save_sepa(self, cr, uid, ids, context=None): |
3920 | 333 | ''' | 284 | ''' |
3922 | 334 | Save the SEPA PAIN: mark all payments in the file as 'sent'. | 285 | Save the SEPA file: send the done signal to all payment |
3923 | 286 | orders in the file. With the default workflow, they will | ||
3924 | 287 | transition to 'done', while with the advanced workflow in | ||
3925 | 288 | account_banking_payment they will transition to 'sent' waiting | ||
3926 | 289 | reconciliation. | ||
3927 | 335 | ''' | 290 | ''' |
3928 | 336 | sepa_export = self.browse(cr, uid, ids[0], context=context) | 291 | sepa_export = self.browse(cr, uid, ids[0], context=context) |
3931 | 337 | sepa_file = self.pool.get('banking.export.sepa').write(cr, uid, | 292 | self.pool.get('banking.export.sepa').write( |
3932 | 338 | sepa_export.file_id.id, {'state': 'sent'}, context=context) | 293 | cr, uid, sepa_export.file_id.id, {'state': 'sent'}, |
3933 | 294 | context=context) | ||
3934 | 339 | wf_service = netsvc.LocalService('workflow') | 295 | wf_service = netsvc.LocalService('workflow') |
3935 | 340 | for order in sepa_export.payment_order_ids: | 296 | for order in sepa_export.payment_order_ids: |
3936 | 341 | wf_service.trg_validate(uid, 'payment.order', order.id, 'sent', cr) | 297 | wf_service.trg_validate(uid, 'payment.order', order.id, 'sent', cr) |
3937 | 342 | return {'type': 'ir.actions.act_window_close'} | 298 | return {'type': 'ir.actions.act_window_close'} |
3938 | 343 | |||
3939 | 344 | |||
3940 | 345 | banking_export_sepa_wizard() | ||
3941 | 346 | |||
3942 | 347 | 299 | ||
3943 | === modified file 'account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml' | |||
3944 | --- account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml 2013-05-23 13:11:42 +0000 | |||
3945 | +++ account_banking_sepa_credit_transfer/wizard/export_sepa_view.xml 2014-03-19 00:47:00 +0000 | |||
3946 | @@ -1,6 +1,6 @@ | |||
3947 | 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
3948 | 2 | <!-- | 2 | <!-- |
3950 | 3 | Copyright (C) 2010-2012 Akretion (http://www.akretion.com) | 3 | Copyright (C) 2010-2013 Akretion (http://www.akretion.com) |
3951 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> |
3952 | 5 | The licence is in the file __openerp__.py | 5 | The licence is in the file __openerp__.py |
3953 | 6 | --> | 6 | --> |
3954 | @@ -12,33 +12,21 @@ | |||
3955 | 12 | <field name="model">banking.export.sepa.wizard</field> | 12 | <field name="model">banking.export.sepa.wizard</field> |
3956 | 13 | <field name="type">form</field> | 13 | <field name="type">form</field> |
3957 | 14 | <field name="arch" type="xml"> | 14 | <field name="arch" type="xml"> |
3959 | 15 | <form string="SEPA XML file generation"> | 15 | <form string="SEPA File Generation"> |
3960 | 16 | <field name="state" invisible="True"/> | 16 | <field name="state" invisible="True"/> |
3963 | 17 | <group states="create"> | 17 | <group states="create" col="2" colspan="2"> |
3962 | 18 | <separator colspan="4" string="Processing details" /> | ||
3964 | 19 | <field name="batch_booking" /> | 18 | <field name="batch_booking" /> |
3965 | 20 | <field name="prefered_exec_date" /> | ||
3966 | 21 | <field name="charge_bearer" /> | 19 | <field name="charge_bearer" /> |
3972 | 22 | <separator colspan="4" string="Reference for further communication" /> | 20 | <button icon="gtk-close" string="Cancel" special="cancel"/> |
3973 | 23 | <field name="msg_identification" required="True" /> | 21 | <button icon="gtk-ok" string="Generate" name="create_sepa" type="object"/> |
3969 | 24 | <newline /> | ||
3970 | 25 | <button icon="gtk-close" special="cancel" string="Cancel" colspan="2"/> | ||
3971 | 26 | <button icon="gtk-ok" string="Generate" name="create_sepa" type="object" colspan="2"/> | ||
3974 | 27 | </group> | 22 | </group> |
3976 | 28 | <group states="finish"> | 23 | <group states="finish" col="2" colspan="2"> |
3977 | 29 | <field name="total_amount" /> | 24 | <field name="total_amount" /> |
3985 | 30 | <!-- Don't display this field, to avoid this bug : | 25 | <field name="nb_transactions" /> |
3979 | 31 | https://bugs.launchpad.net/openobject-client-web/+bug/718989 | ||
3980 | 32 | Bug desc : in the Gtk client, you have to clic twice on the | ||
3981 | 33 | "Create" button. | ||
3982 | 34 | <field name="nb_transactions" /> --> | ||
3983 | 35 | <newline /> | ||
3984 | 36 | <field name="file_id" /> | ||
3986 | 37 | <field name="file" filename="filename" /> | 26 | <field name="file" filename="filename" /> |
3987 | 38 | <field name="filename" invisible="True"/> | 27 | <field name="filename" invisible="True"/> |
3991 | 39 | <newline /> | 28 | <button icon="gtk-cancel" string="Cancel" name="cancel_sepa" type="object"/> |
3992 | 40 | <button icon="gtk-cancel" string="Cancel" name="cancel_sepa" type="object" colspan="2"/> | 29 | <button icon="gtk-ok" string="Validate" name="save_sepa" type="object"/> |
3990 | 41 | <button icon="gtk-ok" string="Validate" name="save_sepa" type="object" colspan="2"/> | ||
3993 | 42 | </group> | 30 | </group> |
3994 | 43 | </form> | 31 | </form> |
3995 | 44 | </field> | 32 | </field> |
3996 | 45 | 33 | ||
3997 | === added directory 'account_banking_sepa_direct_debit' | |||
3998 | === added file 'account_banking_sepa_direct_debit/__init__.py' | |||
3999 | --- account_banking_sepa_direct_debit/__init__.py 1970-01-01 00:00:00 +0000 | |||
4000 | +++ account_banking_sepa_direct_debit/__init__.py 2014-03-19 00:47:00 +0000 | |||
4001 | @@ -0,0 +1,25 @@ | |||
4002 | 1 | # -*- encoding: utf-8 -*- | ||
4003 | 2 | ############################################################################## | ||
4004 | 3 | # | ||
4005 | 4 | # SEPA Direct Debit module for OpenERP | ||
4006 | 5 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4007 | 6 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4008 | 7 | # | ||
4009 | 8 | # This program is free software: you can redistribute it and/or modify | ||
4010 | 9 | # it under the terms of the GNU Affero General Public License as | ||
4011 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
4012 | 11 | # License, or (at your option) any later version. | ||
4013 | 12 | # | ||
4014 | 13 | # This program is distributed in the hope that it will be useful, | ||
4015 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4016 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
4017 | 16 | # GNU Affero General Public License for more details. | ||
4018 | 17 | # | ||
4019 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
4020 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
4021 | 20 | # | ||
4022 | 21 | ############################################################################## | ||
4023 | 22 | |||
4024 | 23 | from . import company | ||
4025 | 24 | from . import wizard | ||
4026 | 25 | from . import account_banking_sdd | ||
4027 | 0 | 26 | ||
4028 | === added file 'account_banking_sepa_direct_debit/__openerp__.py' | |||
4029 | --- account_banking_sepa_direct_debit/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
4030 | +++ account_banking_sepa_direct_debit/__openerp__.py 2014-03-19 00:47:00 +0000 | |||
4031 | @@ -0,0 +1,61 @@ | |||
4032 | 1 | ############################################################################## | ||
4033 | 2 | # | ||
4034 | 3 | # SEPA Direct Debit module for OpenERP | ||
4035 | 4 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4036 | 5 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4037 | 6 | # | ||
4038 | 7 | # This program is free software: you can redistribute it and/or modify | ||
4039 | 8 | # it under the terms of the GNU Affero General Public License as | ||
4040 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
4041 | 10 | # License, or (at your option) any later version. | ||
4042 | 11 | # | ||
4043 | 12 | # This program is distributed in the hope that it will be useful, | ||
4044 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4045 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
4046 | 15 | # GNU Affero General Public License for more details. | ||
4047 | 16 | # | ||
4048 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
4049 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
4050 | 19 | # | ||
4051 | 20 | ############################################################################## | ||
4052 | 21 | { | ||
4053 | 22 | 'name': 'Account Banking SEPA Direct Debit', | ||
4054 | 23 | 'summary': 'Create SEPA files for Direct Debit', | ||
4055 | 24 | 'version': '0.1', | ||
4056 | 25 | 'license': 'AGPL-3', | ||
4057 | 26 | 'author': 'Akretion', | ||
4058 | 27 | 'website': 'http://www.akretion.com', | ||
4059 | 28 | 'category': 'Banking addons', | ||
4060 | 29 | 'depends': ['account_direct_debit', 'account_banking_pain_base'], | ||
4061 | 30 | 'external_dependencies': { | ||
4062 | 31 | 'python': ['unidecode', 'lxml'], | ||
4063 | 32 | }, | ||
4064 | 33 | 'data': [ | ||
4065 | 34 | 'security/original_mandate_required_security.xml', | ||
4066 | 35 | 'account_banking_sdd_view.xml', | ||
4067 | 36 | 'sdd_mandate_view.xml', | ||
4068 | 37 | 'res_partner_bank_view.xml', | ||
4069 | 38 | 'account_payment_view.xml', | ||
4070 | 39 | 'company_view.xml', | ||
4071 | 40 | 'mandate_expire_cron.xml', | ||
4072 | 41 | 'account_invoice_view.xml', | ||
4073 | 42 | 'wizard/export_sdd_view.xml', | ||
4074 | 43 | 'data/payment_type_sdd.xml', | ||
4075 | 44 | 'data/mandate_reference_sequence.xml', | ||
4076 | 45 | 'security/ir.model.access.csv', | ||
4077 | 46 | ], | ||
4078 | 47 | 'description': ''' | ||
4079 | 48 | Module to export direct debit payment orders in SEPA XML file format. | ||
4080 | 49 | |||
4081 | 50 | SEPA PAIN (PAyment INitiation) is the new european standard for Customer-to-Bank payment instructions. This module implements SEPA Direct Debit (SDD), more specifically PAIN versions 008.001.02, 008.001.03 and 008.001.04. It is part of the ISO 20022 standard, available on http://www.iso20022.org. | ||
4082 | 51 | |||
4083 | 52 | The Implementation Guidelines for SEPA Direct Debit published by the European Payments Council (http://http://www.europeanpaymentscouncil.eu) use PAIN version 008.001.02. So if you don't know which version your bank supports, you should try version 008.001.02 first. | ||
4084 | 53 | |||
4085 | 54 | This module uses the framework provided by the banking addons, cf https://launchpad.net/banking-addons | ||
4086 | 55 | |||
4087 | 56 | Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module. | ||
4088 | 57 | ''', | ||
4089 | 58 | 'active': False, | ||
4090 | 59 | 'installable': True, | ||
4091 | 60 | 'application': True, | ||
4092 | 61 | } | ||
4093 | 0 | 62 | ||
4094 | === added file 'account_banking_sepa_direct_debit/account_banking_sdd.py' | |||
4095 | --- account_banking_sepa_direct_debit/account_banking_sdd.py 1970-01-01 00:00:00 +0000 | |||
4096 | +++ account_banking_sepa_direct_debit/account_banking_sdd.py 2014-03-19 00:47:00 +0000 | |||
4097 | @@ -0,0 +1,396 @@ | |||
4098 | 1 | ############################################################################## | ||
4099 | 2 | # | ||
4100 | 3 | # SEPA Direct Debit module for OpenERP | ||
4101 | 4 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4102 | 5 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4103 | 6 | # | ||
4104 | 7 | # This program is free software: you can redistribute it and/or modify | ||
4105 | 8 | # it under the terms of the GNU Affero General Public License as | ||
4106 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
4107 | 10 | # License, or (at your option) any later version. | ||
4108 | 11 | # | ||
4109 | 12 | # This program is distributed in the hope that it will be useful, | ||
4110 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4111 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
4112 | 15 | # GNU Affero General Public License for more details. | ||
4113 | 16 | # | ||
4114 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
4115 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
4116 | 19 | # | ||
4117 | 20 | ############################################################################## | ||
4118 | 21 | |||
4119 | 22 | from openerp.osv import orm, fields | ||
4120 | 23 | from openerp.tools.translate import _ | ||
4121 | 24 | import decimal_precision as dp | ||
4122 | 25 | from unidecode import unidecode | ||
4123 | 26 | from datetime import datetime | ||
4124 | 27 | from dateutil.relativedelta import relativedelta | ||
4125 | 28 | import logging | ||
4126 | 29 | |||
4127 | 30 | NUMBER_OF_UNUSED_MONTHS_BEFORE_EXPIRY = 36 | ||
4128 | 31 | |||
4129 | 32 | logger = logging.getLogger(__name__) | ||
4130 | 33 | |||
4131 | 34 | |||
4132 | 35 | class banking_export_sdd(orm.Model): | ||
4133 | 36 | '''SEPA Direct Debit export''' | ||
4134 | 37 | _name = 'banking.export.sdd' | ||
4135 | 38 | _description = __doc__ | ||
4136 | 39 | _rec_name = 'filename' | ||
4137 | 40 | |||
4138 | 41 | def _generate_filename(self, cr, uid, ids, name, arg, context=None): | ||
4139 | 42 | res = {} | ||
4140 | 43 | for sepa_file in self.browse(cr, uid, ids, context=context): | ||
4141 | 44 | ref = sepa_file.payment_order_ids[0].reference | ||
4142 | 45 | if ref: | ||
4143 | 46 | label = unidecode(ref.replace('/', '-')) | ||
4144 | 47 | else: | ||
4145 | 48 | label = 'error' | ||
4146 | 49 | res[sepa_file.id] = 'sdd_%s.xml' % label | ||
4147 | 50 | return res | ||
4148 | 51 | |||
4149 | 52 | _columns = { | ||
4150 | 53 | 'payment_order_ids': fields.many2many( | ||
4151 | 54 | 'payment.order', | ||
4152 | 55 | 'account_payment_order_sdd_rel', | ||
4153 | 56 | 'banking_export_sepa_id', 'account_order_id', | ||
4154 | 57 | 'Payment Orders', | ||
4155 | 58 | readonly=True), | ||
4156 | 59 | 'nb_transactions': fields.integer( | ||
4157 | 60 | 'Number of Transactions', readonly=True), | ||
4158 | 61 | 'total_amount': fields.float( | ||
4159 | 62 | 'Total Amount', digits_compute=dp.get_precision('Account'), | ||
4160 | 63 | readonly=True), | ||
4161 | 64 | 'batch_booking': fields.boolean( | ||
4162 | 65 | 'Batch Booking', readonly=True, | ||
4163 | 66 | help="If true, the bank statement will display only one credit " | ||
4164 | 67 | "line for all the direct debits of the SEPA file ; if false, " | ||
4165 | 68 | "the bank statement will display one credit line per direct " | ||
4166 | 69 | "debit of the SEPA file."), | ||
4167 | 70 | 'charge_bearer': fields.selection([ | ||
4168 | 71 | ('SLEV', 'Following Service Level'), | ||
4169 | 72 | ('SHAR', 'Shared'), | ||
4170 | 73 | ('CRED', 'Borne by Creditor'), | ||
4171 | 74 | ('DEBT', 'Borne by Debtor'), | ||
4172 | 75 | ], 'Charge Bearer', readonly=True, | ||
4173 | 76 | help="Following service level : transaction charges are to be " | ||
4174 | 77 | "applied following the rules agreed in the service level and/or " | ||
4175 | 78 | "scheme (SEPA Core messages must use this). Shared : " | ||
4176 | 79 | "transaction charges on the creditor side are to be borne by " | ||
4177 | 80 | "the creditor, transaction charges on the debtor side are to be " | ||
4178 | 81 | "borne by the debtor. Borne by creditor : all transaction " | ||
4179 | 82 | "charges are to be borne by the creditor. Borne by debtor : " | ||
4180 | 83 | "all transaction charges are to be borne by the debtor."), | ||
4181 | 84 | 'create_date': fields.datetime('Generation Date', readonly=True), | ||
4182 | 85 | 'file': fields.binary('SEPA File', readonly=True), | ||
4183 | 86 | 'filename': fields.function( | ||
4184 | 87 | _generate_filename, type='char', size=256, | ||
4185 | 88 | string='Filename', readonly=True, store=True), | ||
4186 | 89 | 'state': fields.selection([ | ||
4187 | 90 | ('draft', 'Draft'), | ||
4188 | 91 | ('sent', 'Sent'), | ||
4189 | 92 | ('done', 'Reconciled'), | ||
4190 | 93 | ], 'State', readonly=True), | ||
4191 | 94 | } | ||
4192 | 95 | |||
4193 | 96 | _defaults = { | ||
4194 | 97 | 'state': 'draft', | ||
4195 | 98 | } | ||
4196 | 99 | |||
4197 | 100 | |||
4198 | 101 | class sdd_mandate(orm.Model): | ||
4199 | 102 | '''SEPA Direct Debit Mandate''' | ||
4200 | 103 | _name = 'sdd.mandate' | ||
4201 | 104 | _description = __doc__ | ||
4202 | 105 | _rec_name = 'unique_mandate_reference' | ||
4203 | 106 | _order = 'signature_date desc' | ||
4204 | 107 | |||
4205 | 108 | _columns = { | ||
4206 | 109 | 'partner_bank_id': fields.many2one( | ||
4207 | 110 | 'res.partner.bank', 'Bank Account'), | ||
4208 | 111 | 'partner_id': fields.related( | ||
4209 | 112 | 'partner_bank_id', 'partner_id', type='many2one', | ||
4210 | 113 | relation='res.partner', string='Partner', readonly=True), | ||
4211 | 114 | 'company_id': fields.many2one('res.company', 'Company', required=True), | ||
4212 | 115 | 'unique_mandate_reference': fields.char( | ||
4213 | 116 | 'Unique Mandate Reference', size=35, readonly=True), | ||
4214 | 117 | 'type': fields.selection([ | ||
4215 | 118 | ('recurrent', 'Recurrent'), | ||
4216 | 119 | ('oneoff', 'One-Off'), | ||
4217 | 120 | ], 'Type of Mandate', required=True), | ||
4218 | 121 | 'recurrent_sequence_type': fields.selection([ | ||
4219 | 122 | ('first', 'First'), | ||
4220 | 123 | ('recurring', 'Recurring'), | ||
4221 | 124 | ('final', 'Final'), | ||
4222 | 125 | ], 'Sequence Type for Next Debit', | ||
4223 | 126 | help="This field is only used for Recurrent mandates, not for " | ||
4224 | 127 | "One-Off mandates."), | ||
4225 | 128 | 'signature_date': fields.date( | ||
4226 | 129 | 'Date of Signature of the Mandate'), | ||
4227 | 130 | 'scan': fields.binary('Scan of the Mandate'), | ||
4228 | 131 | 'last_debit_date': fields.date( | ||
4229 | 132 | 'Date of the Last Debit', readonly=True), | ||
4230 | 133 | 'state': fields.selection([ | ||
4231 | 134 | ('draft', 'Draft'), | ||
4232 | 135 | ('valid', 'Valid'), | ||
4233 | 136 | ('expired', 'Expired'), | ||
4234 | 137 | ('cancel', 'Cancelled'), | ||
4235 | 138 | ], 'Status', | ||
4236 | 139 | help="Only valid mandates can be used in a payment line. A " | ||
4237 | 140 | "cancelled mandate is a mandate that has been cancelled by " | ||
4238 | 141 | "the customer. A one-off mandate expires after its first use. " | ||
4239 | 142 | "A recurrent mandate expires after it's final use or if it " | ||
4240 | 143 | "hasn't been used for 36 months."), | ||
4241 | 144 | 'payment_line_ids': fields.one2many( | ||
4242 | 145 | 'payment.line', 'sdd_mandate_id', "Related Payment Lines"), | ||
4243 | 146 | 'sepa_migrated': fields.boolean( | ||
4244 | 147 | 'Migrated to SEPA', | ||
4245 | 148 | help="If this field is not active, the mandate section of the " | ||
4246 | 149 | "next direct debit file that include this mandate will contain " | ||
4247 | 150 | "the 'Original Mandate Identification' and the 'Original " | ||
4248 | 151 | "Creditor Scheme Identification'. This is required in a few " | ||
4249 | 152 | "countries (Belgium for instance), but not in all countries. " | ||
4250 | 153 | "If this is not required in your country, you should keep this " | ||
4251 | 154 | "field always active."), | ||
4252 | 155 | 'original_mandate_identification': fields.char( | ||
4253 | 156 | 'Original Mandate Identification', size=35, | ||
4254 | 157 | help="When the field 'Migrated to SEPA' is not active, this " | ||
4255 | 158 | "field will be used as the Original Mandate Identification in " | ||
4256 | 159 | "the Direct Debit file."), | ||
4257 | 160 | } | ||
4258 | 161 | |||
4259 | 162 | _defaults = { | ||
4260 | 163 | 'company_id': lambda self, cr, uid, context: | ||
4261 | 164 | self.pool['res.company']._company_default_get( | ||
4262 | 165 | cr, uid, 'sdd.mandate', context=context), | ||
4263 | 166 | 'unique_mandate_reference': lambda self, cr, uid, ctx: | ||
4264 | 167 | self.pool['ir.sequence'].get(cr, uid, 'sdd.mandate.reference'), | ||
4265 | 168 | 'state': 'draft', | ||
4266 | 169 | 'sepa_migrated': True, | ||
4267 | 170 | } | ||
4268 | 171 | |||
4269 | 172 | _sql_constraints = [( | ||
4270 | 173 | 'mandate_ref_company_uniq', | ||
4271 | 174 | 'unique(unique_mandate_reference, company_id)', | ||
4272 | 175 | 'A Mandate with the same reference already exists for this company !' | ||
4273 | 176 | )] | ||
4274 | 177 | |||
4275 | 178 | def _check_sdd_mandate(self, cr, uid, ids): | ||
4276 | 179 | for mandate in self.browse(cr, uid, ids): | ||
4277 | 180 | if (mandate.signature_date and | ||
4278 | 181 | mandate.signature_date > | ||
4279 | 182 | datetime.today().strftime('%Y-%m-%d')): | ||
4280 | 183 | raise orm.except_orm( | ||
4281 | 184 | _('Error:'), | ||
4282 | 185 | _("The date of signature of mandate '%s' is in the " | ||
4283 | 186 | "future !") | ||
4284 | 187 | % mandate.unique_mandate_reference) | ||
4285 | 188 | if mandate.state == 'valid' and not mandate.signature_date: | ||
4286 | 189 | raise orm.except_orm( | ||
4287 | 190 | _('Error:'), | ||
4288 | 191 | _("Cannot validate the mandate '%s' without a date of " | ||
4289 | 192 | "signature.") | ||
4290 | 193 | % mandate.unique_mandate_reference) | ||
4291 | 194 | if mandate.state == 'valid' and not mandate.partner_bank_id: | ||
4292 | 195 | raise orm.except_orm( | ||
4293 | 196 | _('Error:'), | ||
4294 | 197 | _("Cannot validate the mandate '%s' because it is not " | ||
4295 | 198 | "attached to a bank account.") | ||
4296 | 199 | % mandate.unique_mandate_reference) | ||
4297 | 200 | |||
4298 | 201 | if (mandate.signature_date and mandate.last_debit_date and | ||
4299 | 202 | mandate.signature_date > mandate.last_debit_date): | ||
4300 | 203 | raise orm.except_orm( | ||
4301 | 204 | _('Error:'), | ||
4302 | 205 | _("The mandate '%s' can't have a date of last debit " | ||
4303 | 206 | "before the date of signature.") | ||
4304 | 207 | % mandate.unique_mandate_reference) | ||
4305 | 208 | if (mandate.type == 'recurrent' | ||
4306 | 209 | and not mandate.recurrent_sequence_type): | ||
4307 | 210 | raise orm.except_orm( | ||
4308 | 211 | _('Error:'), | ||
4309 | 212 | _("The recurrent mandate '%s' must have a sequence type.") | ||
4310 | 213 | % mandate.unique_mandate_reference) | ||
4311 | 214 | if (mandate.type == 'recurrent' and not mandate.sepa_migrated | ||
4312 | 215 | and mandate.recurrent_sequence_type != 'first'): | ||
4313 | 216 | raise orm.except_orm( | ||
4314 | 217 | _('Error:'), | ||
4315 | 218 | _("The recurrent mandate '%s' which is not marked as " | ||
4316 | 219 | "'Migrated to SEPA' must have its recurrent sequence " | ||
4317 | 220 | "type set to 'First'.") | ||
4318 | 221 | % mandate.unique_mandate_reference) | ||
4319 | 222 | if (mandate.type == 'recurrent' and not mandate.sepa_migrated | ||
4320 | 223 | and not mandate.original_mandate_identification): | ||
4321 | 224 | raise orm.except_orm( | ||
4322 | 225 | _('Error:'), | ||
4323 | 226 | _("You must set the 'Original Mandate Identification' " | ||
4324 | 227 | "on the recurrent mandate '%s' which is not marked " | ||
4325 | 228 | "as 'Migrated to SEPA'.") | ||
4326 | 229 | % mandate.unique_mandate_reference) | ||
4327 | 230 | return True | ||
4328 | 231 | |||
4329 | 232 | _constraints = [ | ||
4330 | 233 | (_check_sdd_mandate, "Error msg in raise", [ | ||
4331 | 234 | 'last_debit_date', 'signature_date', 'state', 'partner_bank_id', | ||
4332 | 235 | 'type', 'recurrent_sequence_type', 'sepa_migrated', | ||
4333 | 236 | 'original_mandate_identification', | ||
4334 | 237 | ]), | ||
4335 | 238 | ] | ||
4336 | 239 | |||
4337 | 240 | def mandate_type_change(self, cr, uid, ids, type): | ||
4338 | 241 | if type == 'recurrent': | ||
4339 | 242 | recurrent_sequence_type = 'first' | ||
4340 | 243 | else: | ||
4341 | 244 | recurrent_sequence_type = False | ||
4342 | 245 | res = {'value': {'recurrent_sequence_type': recurrent_sequence_type}} | ||
4343 | 246 | return res | ||
4344 | 247 | |||
4345 | 248 | def mandate_partner_bank_change( | ||
4346 | 249 | self, cr, uid, ids, partner_bank_id, type, recurrent_sequence_type, | ||
4347 | 250 | last_debit_date, state): | ||
4348 | 251 | res = {'value': {}} | ||
4349 | 252 | if partner_bank_id: | ||
4350 | 253 | partner_bank_read = self.pool['res.partner.bank'].read( | ||
4351 | 254 | cr, uid, partner_bank_id, ['partner_id'])['partner_id'] | ||
4352 | 255 | if partner_bank_read: | ||
4353 | 256 | res['value']['partner_id'] = partner_bank_read[0] | ||
4354 | 257 | if (state == 'valid' and partner_bank_id | ||
4355 | 258 | and type == 'recurrent' | ||
4356 | 259 | and recurrent_sequence_type != 'first'): | ||
4357 | 260 | res['value']['recurrent_sequence_type'] = 'first' | ||
4358 | 261 | res['warning'] = { | ||
4359 | 262 | 'title': _('Mandate update'), | ||
4360 | 263 | 'message': _( | ||
4361 | 264 | "As you changed the bank account attached to this " | ||
4362 | 265 | "mandate, the 'Sequence Type' has been set back to " | ||
4363 | 266 | "'First'."), | ||
4364 | 267 | } | ||
4365 | 268 | return res | ||
4366 | 269 | |||
4367 | 270 | def validate(self, cr, uid, ids, context=None): | ||
4368 | 271 | to_validate_ids = [] | ||
4369 | 272 | for mandate in self.browse(cr, uid, ids, context=context): | ||
4370 | 273 | assert mandate.state == 'draft', 'Mandate should be in draft state' | ||
4371 | 274 | to_validate_ids.append(mandate.id) | ||
4372 | 275 | self.write( | ||
4373 | 276 | cr, uid, to_validate_ids, {'state': 'valid'}, context=context) | ||
4374 | 277 | return True | ||
4375 | 278 | |||
4376 | 279 | def cancel(self, cr, uid, ids, context=None): | ||
4377 | 280 | to_cancel_ids = [] | ||
4378 | 281 | for mandate in self.browse(cr, uid, ids, context=context): | ||
4379 | 282 | assert mandate.state in ('draft', 'valid'),\ | ||
4380 | 283 | 'Mandate should be in draft or valid state' | ||
4381 | 284 | to_cancel_ids.append(mandate.id) | ||
4382 | 285 | self.write( | ||
4383 | 286 | cr, uid, to_cancel_ids, {'state': 'cancel'}, context=context) | ||
4384 | 287 | return True | ||
4385 | 288 | |||
4386 | 289 | def _sdd_mandate_set_state_to_expired(self, cr, uid, context=None): | ||
4387 | 290 | logger.info('Searching for SDD Mandates that must be set to Expired') | ||
4388 | 291 | expire_limit_date = datetime.today() + \ | ||
4389 | 292 | relativedelta(months=-NUMBER_OF_UNUSED_MONTHS_BEFORE_EXPIRY) | ||
4390 | 293 | expire_limit_date_str = expire_limit_date.strftime('%Y-%m-%d') | ||
4391 | 294 | expired_mandate_ids = self.search(cr, uid, [ | ||
4392 | 295 | '|', | ||
4393 | 296 | ('last_debit_date', '=', False), | ||
4394 | 297 | ('last_debit_date', '<=', expire_limit_date_str), | ||
4395 | 298 | ('state', '=', 'valid'), | ||
4396 | 299 | ('signature_date', '<=', expire_limit_date_str), | ||
4397 | 300 | ], context=context) | ||
4398 | 301 | if expired_mandate_ids: | ||
4399 | 302 | self.write( | ||
4400 | 303 | cr, uid, expired_mandate_ids, {'state': 'expired'}, | ||
4401 | 304 | context=context) | ||
4402 | 305 | logger.info( | ||
4403 | 306 | 'The following SDD Mandate IDs has been set to expired: %s' | ||
4404 | 307 | % expired_mandate_ids) | ||
4405 | 308 | else: | ||
4406 | 309 | logger.info('0 SDD Mandates must be set to Expired') | ||
4407 | 310 | return True | ||
4408 | 311 | |||
4409 | 312 | |||
4410 | 313 | class res_partner_bank(orm.Model): | ||
4411 | 314 | _inherit = 'res.partner.bank' | ||
4412 | 315 | |||
4413 | 316 | _columns = { | ||
4414 | 317 | 'sdd_mandate_ids': fields.one2many( | ||
4415 | 318 | 'sdd.mandate', 'partner_bank_id', 'SEPA Direct Debit Mandates'), | ||
4416 | 319 | } | ||
4417 | 320 | |||
4418 | 321 | |||
4419 | 322 | class payment_line(orm.Model): | ||
4420 | 323 | _inherit = 'payment.line' | ||
4421 | 324 | |||
4422 | 325 | _columns = { | ||
4423 | 326 | 'sdd_mandate_id': fields.many2one( | ||
4424 | 327 | 'sdd.mandate', 'SEPA Direct Debit Mandate', | ||
4425 | 328 | domain=[('state', '=', 'valid')]), | ||
4426 | 329 | } | ||
4427 | 330 | |||
4428 | 331 | def create(self, cr, uid, vals, context=None): | ||
4429 | 332 | '''If the customer invoice has a mandate, take it | ||
4430 | 333 | otherwise, take the first valid mandate of the bank account''' | ||
4431 | 334 | if context is None: | ||
4432 | 335 | context = {} | ||
4433 | 336 | if not vals: | ||
4434 | 337 | vals = {} | ||
4435 | 338 | partner_bank_id = vals.get('bank_id') | ||
4436 | 339 | move_line_id = vals.get('move_line_id') | ||
4437 | 340 | if (context.get('default_payment_order_type') == 'debit' | ||
4438 | 341 | and 'sdd_mandate_id' not in vals): | ||
4439 | 342 | if move_line_id: | ||
4440 | 343 | line = self.pool['account.move.line'].browse( | ||
4441 | 344 | cr, uid, move_line_id, context=context) | ||
4442 | 345 | if (line.invoice and line.invoice.type == 'out_invoice' | ||
4443 | 346 | and line.invoice.sdd_mandate_id): | ||
4444 | 347 | vals.update({ | ||
4445 | 348 | 'sdd_mandate_id': line.invoice.sdd_mandate_id.id, | ||
4446 | 349 | 'bank_id': | ||
4447 | 350 | line.invoice.sdd_mandate_id.partner_bank_id.id, | ||
4448 | 351 | }) | ||
4449 | 352 | if partner_bank_id and 'sdd_mandate_id' not in vals: | ||
4450 | 353 | mandate_ids = self.pool['sdd.mandate'].search(cr, uid, [ | ||
4451 | 354 | ('partner_bank_id', '=', partner_bank_id), | ||
4452 | 355 | ('state', '=', 'valid'), | ||
4453 | 356 | ], context=context) | ||
4454 | 357 | if mandate_ids: | ||
4455 | 358 | vals['sdd_mandate_id'] = mandate_ids[0] | ||
4456 | 359 | return super(payment_line, self).create(cr, uid, vals, context=context) | ||
4457 | 360 | |||
4458 | 361 | def _check_mandate_bank_link(self, cr, uid, ids): | ||
4459 | 362 | for payline in self.browse(cr, uid, ids): | ||
4460 | 363 | if (payline.sdd_mandate_id and payline.bank_id | ||
4461 | 364 | and payline.sdd_mandate_id.partner_bank_id.id != | ||
4462 | 365 | payline.bank_id.id): | ||
4463 | 366 | raise orm.except_orm( | ||
4464 | 367 | _('Error:'), | ||
4465 | 368 | _("The payment line with reference '%s' has the bank " | ||
4466 | 369 | "account '%s' which is not attached to the mandate " | ||
4467 | 370 | "'%s' (this mandate is attached to the bank account " | ||
4468 | 371 | "'%s').") % ( | ||
4469 | 372 | payline.name, | ||
4470 | 373 | self.pool['res.partner.bank'].name_get( | ||
4471 | 374 | cr, uid, [payline.bank_id.id])[0][1], | ||
4472 | 375 | payline.sdd_mandate_id.unique_mandate_reference, | ||
4473 | 376 | self.pool['res.partner.bank'].name_get( | ||
4474 | 377 | cr, uid, | ||
4475 | 378 | [payline.sdd_mandate_id.partner_bank_id.id])[0][1], | ||
4476 | 379 | )) | ||
4477 | 380 | return True | ||
4478 | 381 | |||
4479 | 382 | _constraints = [ | ||
4480 | 383 | (_check_mandate_bank_link, 'Error msg in raise', | ||
4481 | 384 | ['sdd_mandate_id', 'bank_id']), | ||
4482 | 385 | ] | ||
4483 | 386 | |||
4484 | 387 | |||
4485 | 388 | class account_invoice(orm.Model): | ||
4486 | 389 | _inherit = 'account.invoice' | ||
4487 | 390 | |||
4488 | 391 | _columns = { | ||
4489 | 392 | 'sdd_mandate_id': fields.many2one( | ||
4490 | 393 | 'sdd.mandate', 'SEPA Direct Debit Mandate', | ||
4491 | 394 | domain=[('state', '=', 'valid')], readonly=True, | ||
4492 | 395 | states={'draft': [('readonly', False)]}) | ||
4493 | 396 | } | ||
4494 | 0 | 397 | ||
4495 | === added file 'account_banking_sepa_direct_debit/account_banking_sdd_view.xml' | |||
4496 | --- account_banking_sepa_direct_debit/account_banking_sdd_view.xml 1970-01-01 00:00:00 +0000 | |||
4497 | +++ account_banking_sepa_direct_debit/account_banking_sdd_view.xml 2014-03-19 00:47:00 +0000 | |||
4498 | @@ -0,0 +1,82 @@ | |||
4499 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
4500 | 2 | <!-- | ||
4501 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4502 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4503 | 5 | The licence is in the file __openerp__.py | ||
4504 | 6 | --> | ||
4505 | 7 | <openerp> | ||
4506 | 8 | <data> | ||
4507 | 9 | |||
4508 | 10 | <record id="view_banking_export_sdd_form" model="ir.ui.view"> | ||
4509 | 11 | <field name="name">account.banking.export.sdd.form</field> | ||
4510 | 12 | <field name="model">banking.export.sdd</field> | ||
4511 | 13 | <field name="type">form</field> | ||
4512 | 14 | <field name="arch" type="xml"> | ||
4513 | 15 | <form string="SEPA Direct Debit"> | ||
4514 | 16 | <notebook> | ||
4515 | 17 | <page string="General Information"> | ||
4516 | 18 | <field name="total_amount" /> | ||
4517 | 19 | <field name="nb_transactions" /> | ||
4518 | 20 | <field name="batch_booking" /> | ||
4519 | 21 | <field name="charge_bearer"/> | ||
4520 | 22 | <field name="create_date" /> | ||
4521 | 23 | <newline /> | ||
4522 | 24 | <field name="file" filename="filename"/> | ||
4523 | 25 | <field name="filename" invisible="True"/> | ||
4524 | 26 | </page> | ||
4525 | 27 | <page string="Payment Orders"> | ||
4526 | 28 | <field name="payment_order_ids" colspan="4" nolabel="1"> | ||
4527 | 29 | <tree colors="blue:state in ('draft');gray:state in ('cancel','done');black:state in ('open')" string="Payment Orders"> | ||
4528 | 30 | <field name="reference"/> | ||
4529 | 31 | <field name="date_created"/> | ||
4530 | 32 | <field name="date_done"/> | ||
4531 | 33 | <field name="total"/> | ||
4532 | 34 | <field name="state"/> | ||
4533 | 35 | </tree> | ||
4534 | 36 | </field> | ||
4535 | 37 | </page> | ||
4536 | 38 | </notebook> | ||
4537 | 39 | </form> | ||
4538 | 40 | </field> | ||
4539 | 41 | </record> | ||
4540 | 42 | |||
4541 | 43 | |||
4542 | 44 | <record id="view_banking_export_sdd_tree" model="ir.ui.view"> | ||
4543 | 45 | <field name="name">account.banking.export.sdd.tree</field> | ||
4544 | 46 | <field name="model">banking.export.sdd</field> | ||
4545 | 47 | <field name="type">tree</field> | ||
4546 | 48 | <field name="arch" type="xml"> | ||
4547 | 49 | <tree string="SEPA Direct Debit"> | ||
4548 | 50 | <field name="filename"/> | ||
4549 | 51 | <field name="create_date"/> | ||
4550 | 52 | <field name="nb_transactions"/> | ||
4551 | 53 | </tree> | ||
4552 | 54 | </field> | ||
4553 | 55 | </record> | ||
4554 | 56 | |||
4555 | 57 | |||
4556 | 58 | <record id="action_account_banking_sdd" model="ir.actions.act_window"> | ||
4557 | 59 | <field name="name">SEPA Direct Debit Files</field> | ||
4558 | 60 | <field name="res_model">banking.export.sdd</field> | ||
4559 | 61 | <field name="view_type">form</field> | ||
4560 | 62 | <field name="view_mode">tree,form</field> | ||
4561 | 63 | </record> | ||
4562 | 64 | |||
4563 | 65 | |||
4564 | 66 | <menuitem id="menu_account_banking_sdd" | ||
4565 | 67 | parent="account_payment.menu_main_payment" | ||
4566 | 68 | action="action_account_banking_sdd" | ||
4567 | 69 | sequence="20" | ||
4568 | 70 | /> | ||
4569 | 71 | |||
4570 | 72 | <act_window id="act_banking_export_sdd_payment_order" | ||
4571 | 73 | name="Generated SEPA Direct Debit Files" | ||
4572 | 74 | domain="[('payment_order_ids', '=', active_id)]" | ||
4573 | 75 | res_model="banking.export.sdd" | ||
4574 | 76 | src_model="payment.order" | ||
4575 | 77 | view_type="form" | ||
4576 | 78 | view_mode="tree,form" | ||
4577 | 79 | /> | ||
4578 | 80 | |||
4579 | 81 | </data> | ||
4580 | 82 | </openerp> | ||
4581 | 0 | 83 | ||
4582 | === added file 'account_banking_sepa_direct_debit/account_invoice_view.xml' | |||
4583 | --- account_banking_sepa_direct_debit/account_invoice_view.xml 1970-01-01 00:00:00 +0000 | |||
4584 | +++ account_banking_sepa_direct_debit/account_invoice_view.xml 2014-03-19 00:47:00 +0000 | |||
4585 | @@ -0,0 +1,22 @@ | |||
4586 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
4587 | 2 | <!-- | ||
4588 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4589 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4590 | 5 | The licence is in the file __openerp__.py | ||
4591 | 6 | --> | ||
4592 | 7 | <openerp> | ||
4593 | 8 | <data> | ||
4594 | 9 | |||
4595 | 10 | <record id="invoice_form" model="ir.ui.view"> | ||
4596 | 11 | <field name="name">add.sdd.mandate.on.customer.invoice.form</field> | ||
4597 | 12 | <field name="model">account.invoice</field> | ||
4598 | 13 | <field name="inherit_id" ref="account.invoice_form"/> | ||
4599 | 14 | <field name="arch" type="xml"> | ||
4600 | 15 | <field name="partner_bank_id" position="after"> | ||
4601 | 16 | <field name="sdd_mandate_id" domain="[('partner_id', '=', partner_id), ('state', '=', 'valid')]" attrs="{'invisible': [('type', '=', 'out_refund')]}"/> | ||
4602 | 17 | </field> | ||
4603 | 18 | </field> | ||
4604 | 19 | </record> | ||
4605 | 20 | |||
4606 | 21 | </data> | ||
4607 | 22 | </openerp> | ||
4608 | 0 | 23 | ||
4609 | === added file 'account_banking_sepa_direct_debit/account_payment_view.xml' | |||
4610 | --- account_banking_sepa_direct_debit/account_payment_view.xml 1970-01-01 00:00:00 +0000 | |||
4611 | +++ account_banking_sepa_direct_debit/account_payment_view.xml 2014-03-19 00:47:00 +0000 | |||
4612 | @@ -0,0 +1,26 @@ | |||
4613 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
4614 | 2 | <!-- | ||
4615 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4616 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4617 | 5 | The licence is in the file __openerp__.py | ||
4618 | 6 | --> | ||
4619 | 7 | <openerp> | ||
4620 | 8 | <data> | ||
4621 | 9 | |||
4622 | 10 | <record id="sdd_view_payment_order_form" model="ir.ui.view"> | ||
4623 | 11 | <field name="name">sdd.payment.order.form</field> | ||
4624 | 12 | <field name="model">payment.order</field> | ||
4625 | 13 | <field name="inherit_id" ref="account_payment.view_payment_order_form"/> | ||
4626 | 14 | <field name="arch" type="xml"> | ||
4627 | 15 | <xpath expr="//field[@name='line_ids']/form/notebook/page/field[@name='bank_id']" position="after"> | ||
4628 | 16 | <field name="sdd_mandate_id" domain="[('partner_bank_id', '=', bank_id), ('state', '=', 'valid')]" invisible="context.get('default_payment_order_type')!='debit'" context="{'default_partner_bank_id': bank_id}"/> | ||
4629 | 17 | <newline /> | ||
4630 | 18 | </xpath> | ||
4631 | 19 | <xpath expr="//field[@name='line_ids']/tree/field[@name='bank_id']" position="after"> | ||
4632 | 20 | <field name="sdd_mandate_id" string="SDD Mandate" invisible="context.get('default_payment_order_type')!='debit'"/> | ||
4633 | 21 | </xpath> | ||
4634 | 22 | </field> | ||
4635 | 23 | </record> | ||
4636 | 24 | |||
4637 | 25 | </data> | ||
4638 | 26 | </openerp> | ||
4639 | 0 | 27 | ||
4640 | === added file 'account_banking_sepa_direct_debit/company.py' | |||
4641 | --- account_banking_sepa_direct_debit/company.py 1970-01-01 00:00:00 +0000 | |||
4642 | +++ account_banking_sepa_direct_debit/company.py 2014-03-19 00:47:00 +0000 | |||
4643 | @@ -0,0 +1,89 @@ | |||
4644 | 1 | ############################################################################## | ||
4645 | 2 | # | ||
4646 | 3 | # SEPA Direct Debit module for OpenERP | ||
4647 | 4 | # Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4648 | 5 | # @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4649 | 6 | # | ||
4650 | 7 | # This program is free software: you can redistribute it and/or modify | ||
4651 | 8 | # it under the terms of the GNU Affero General Public License as | ||
4652 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
4653 | 10 | # License, or (at your option) any later version. | ||
4654 | 11 | # | ||
4655 | 12 | # This program is distributed in the hope that it will be useful, | ||
4656 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
4657 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
4658 | 15 | # GNU Affero General Public License for more details. | ||
4659 | 16 | # | ||
4660 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
4661 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
4662 | 19 | # | ||
4663 | 20 | ############################################################################## | ||
4664 | 21 | |||
4665 | 22 | from openerp.osv import orm, fields | ||
4666 | 23 | import logging | ||
4667 | 24 | |||
4668 | 25 | logger = logging.getLogger(__name__) | ||
4669 | 26 | |||
4670 | 27 | |||
4671 | 28 | class res_company(orm.Model): | ||
4672 | 29 | _inherit = 'res.company' | ||
4673 | 30 | |||
4674 | 31 | _columns = { | ||
4675 | 32 | 'sepa_creditor_identifier': fields.char( | ||
4676 | 33 | 'SEPA Creditor Identifier', size=35, | ||
4677 | 34 | help="Enter the Creditor Identifier that has been attributed " | ||
4678 | 35 | "to your company to make SEPA Direct Debits. This identifier " | ||
4679 | 36 | "is composed of :\n- your country ISO code (2 letters)\n- a " | ||
4680 | 37 | "2-digits checkum\n- a 3-letters business code\n- a " | ||
4681 | 38 | "country-specific identifier"), | ||
4682 | 39 | 'original_creditor_identifier': fields.char( | ||
4683 | 40 | 'Original Creditor Identifier', size=70), | ||
4684 | 41 | } | ||
4685 | 42 | |||
4686 | 43 | def is_sepa_creditor_identifier_valid( | ||
4687 | 44 | self, cr, uid, sepa_creditor_identifier, context=None): | ||
4688 | 45 | """Check if SEPA Creditor Identifier is valid | ||
4689 | 46 | @param sepa_creditor_identifier: SEPA Creditor Identifier as str | ||
4690 | 47 | or unicode | ||
4691 | 48 | @return: True if valid, False otherwise | ||
4692 | 49 | """ | ||
4693 | 50 | if not isinstance(sepa_creditor_identifier, (str, unicode)): | ||
4694 | 51 | return False | ||
4695 | 52 | try: | ||
4696 | 53 | sci_str = str(sepa_creditor_identifier) | ||
4697 | 54 | except: | ||
4698 | 55 | logger.warning( | ||
4699 | 56 | "SEPA Creditor ID should contain only ASCII caracters.") | ||
4700 | 57 | return False | ||
4701 | 58 | sci = sci_str.lower() | ||
4702 | 59 | if len(sci) < 9: | ||
4703 | 60 | return False | ||
4704 | 61 | before_replacement = sci[7:] + sci[0:2] + '00' | ||
4705 | 62 | logger.debug( | ||
4706 | 63 | "SEPA ID check before_replacement = %s" % before_replacement) | ||
4707 | 64 | after_replacement = '' | ||
4708 | 65 | for char in before_replacement: | ||
4709 | 66 | if char.isalpha(): | ||
4710 | 67 | after_replacement += str(ord(char)-87) | ||
4711 | 68 | else: | ||
4712 | 69 | after_replacement += char | ||
4713 | 70 | logger.debug( | ||
4714 | 71 | "SEPA ID check after_replacement = %s" % after_replacement) | ||
4715 | 72 | if int(sci[2:4]) == (98 - (int(after_replacement) % 97)): | ||
4716 | 73 | return True | ||
4717 | 74 | else: | ||
4718 | 75 | return False | ||
4719 | 76 | |||
4720 | 77 | def _check_sepa_creditor_identifier(self, cr, uid, ids): | ||
4721 | 78 | for company in self.browse(cr, uid, ids): | ||
4722 | 79 | if company.sepa_creditor_identifier: | ||
4723 | 80 | if not self.is_sepa_creditor_identifier_valid( | ||
4724 | 81 | cr, uid, company.sepa_creditor_identifier): | ||
4725 | 82 | return False | ||
4726 | 83 | return True | ||
4727 | 84 | |||
4728 | 85 | _constraints = [ | ||
4729 | 86 | (_check_sepa_creditor_identifier, | ||
4730 | 87 | "Invalid SEPA Creditor Identifier.", | ||
4731 | 88 | ['sepa_creditor_identifier']), | ||
4732 | 89 | ] | ||
4733 | 0 | 90 | ||
4734 | === added file 'account_banking_sepa_direct_debit/company_view.xml' | |||
4735 | --- account_banking_sepa_direct_debit/company_view.xml 1970-01-01 00:00:00 +0000 | |||
4736 | +++ account_banking_sepa_direct_debit/company_view.xml 2014-03-19 00:47:00 +0000 | |||
4737 | @@ -0,0 +1,23 @@ | |||
4738 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
4739 | 2 | <!-- | ||
4740 | 3 | Copyright (C) 2013 Akretion (http://www.akretion.com) | ||
4741 | 4 | @author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
4742 | 5 | The licence is in the file __openerp__.py | ||
4743 | 6 | --> | ||
4744 | 7 | <openerp> | ||
4745 | 8 | <data> | ||
4746 | 9 | |||
4747 | 10 | <record id="sdd_res_company_form" model="ir.ui.view"> | ||
4748 | 11 | <field name="name">sepa_direct_debit.res.company.form</field> | ||
4749 | 12 | <field name="model">res.company</field> | ||
4750 | 13 | <field name="inherit_id" ref="account_banking_pain_base.view_company_form"/> | ||
4751 | 14 | <field name="arch" type="xml"> | ||
4752 | 15 | <group name="pain" position="inside"> | ||
4753 | 16 | <field name="sepa_creditor_identifier"/> | ||
4754 | 17 | <field name="original_creditor_identifier" groups="account_banking_sepa_direct_debit.group_original_mandate_required"/> | ||
4755 | 18 | </group> | ||
4756 | 19 | </field> | ||
4757 | 20 | </record> | ||
4758 | 21 | |||
4759 | 22 | </data> | ||
4760 | 23 | </openerp> | ||
4761 | 0 | 24 | ||
4762 | === added directory 'account_banking_sepa_direct_debit/data' | |||
4763 | === added file 'account_banking_sepa_direct_debit/data/mandate_reference_sequence.xml' | |||
4764 | --- account_banking_sepa_direct_debit/data/mandate_reference_sequence.xml 1970-01-01 00:00:00 +0000 | |||
4765 | +++ account_banking_sepa_direct_debit/data/mandate_reference_sequence.xml 2014-03-19 00:47:00 +0000 | |||
4766 | @@ -0,0 +1,21 @@ | |||
4767 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
4768 | 2 | <openerp> | ||
4769 | 3 | <data noupdate="1"> | ||
4770 | 4 | |||
4771 | 5 | |||
4772 | 6 | <record id="sdd_mandate_seq_type" model="ir.sequence.type"> | ||
4773 | 7 | <field name="name">SDD Mandate Reference</field> | ||
4774 | 8 | <field name="code">sdd.mandate.reference</field> | ||
4775 | 9 | </record> | ||
4776 | 10 | |||
4777 | 11 | <record id="sdd_mandate_seq" model="ir.sequence"> | ||
4778 | 12 | <field name="name">SDD Mandate Reference</field> | ||
4779 | 13 | <field name="code">sdd.mandate.reference</field> | ||
4780 | 14 | <field name="prefix">RUM</field> | ||
4781 | 15 | <field name="padding" eval="7"/> | ||
4782 | 16 | <!-- remember that max size for the mandate ref is 35 --> | ||
4783 | 17 | </record> | ||
4784 | 18 | |||
4785 | 19 | |||
4786 | 20 | </data> | ||
4787 | 21 | </openerp> | ||
4788 | 0 | 22 | ||
4789 | === added file 'account_banking_sepa_direct_debit/data/pain.008.001.02.xsd' | |||
4790 | --- account_banking_sepa_direct_debit/data/pain.008.001.02.xsd 1970-01-01 00:00:00 +0000 | |||
4791 | +++ account_banking_sepa_direct_debit/data/pain.008.001.02.xsd 2014-03-19 00:47:00 +0000 | |||
4792 | @@ -0,0 +1,879 @@ | |||
4793 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
4794 | 2 | <!--Generated by SWIFTStandards Workstation (build:R6.1.0.2) on 2009 Jan 08 17:30:53--> | ||
4795 | 3 | <xs:schema xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"> | ||
4796 | 4 | <xs:element name="Document" type="Document"/> | ||
4797 | 5 | <xs:complexType name="AccountIdentification4Choice"> | ||
4798 | 6 | <xs:sequence> | ||
4799 | 7 | <xs:choice> | ||
4800 | 8 | <xs:element name="IBAN" type="IBAN2007Identifier"/> | ||
4801 | 9 | <xs:element name="Othr" type="GenericAccountIdentification1"/> | ||
4802 | 10 | </xs:choice> | ||
4803 | 11 | </xs:sequence> | ||
4804 | 12 | </xs:complexType> | ||
4805 | 13 | <xs:complexType name="AccountSchemeName1Choice"> | ||
4806 | 14 | <xs:sequence> | ||
4807 | 15 | <xs:choice> | ||
4808 | 16 | <xs:element name="Cd" type="ExternalAccountIdentification1Code"/> | ||
4809 | 17 | <xs:element name="Prtry" type="Max35Text"/> | ||
4810 | 18 | </xs:choice> | ||
4811 | 19 | </xs:sequence> | ||
4812 | 20 | </xs:complexType> | ||
4813 | 21 | <xs:simpleType name="ActiveOrHistoricCurrencyAndAmount_SimpleType"> | ||
4814 | 22 | <xs:restriction base="xs:decimal"> | ||
4815 | 23 | <xs:minInclusive value="0"/> | ||
4816 | 24 | <xs:fractionDigits value="5"/> | ||
4817 | 25 | <xs:totalDigits value="18"/> | ||
4818 | 26 | </xs:restriction> | ||
4819 | 27 | </xs:simpleType> | ||
4820 | 28 | <xs:complexType name="ActiveOrHistoricCurrencyAndAmount"> | ||
4821 | 29 | <xs:simpleContent> | ||
4822 | 30 | <xs:extension base="ActiveOrHistoricCurrencyAndAmount_SimpleType"> | ||
4823 | 31 | <xs:attribute name="Ccy" type="ActiveOrHistoricCurrencyCode" use="required"/> | ||
4824 | 32 | </xs:extension> | ||
4825 | 33 | </xs:simpleContent> | ||
4826 | 34 | </xs:complexType> | ||
4827 | 35 | <xs:simpleType name="ActiveOrHistoricCurrencyCode"> | ||
4828 | 36 | <xs:restriction base="xs:string"> | ||
4829 | 37 | <xs:pattern value="[A-Z]{3,3}"/> | ||
4830 | 38 | </xs:restriction> | ||
4831 | 39 | </xs:simpleType> | ||
4832 | 40 | <xs:simpleType name="AddressType2Code"> | ||
4833 | 41 | <xs:restriction base="xs:string"> | ||
4834 | 42 | <xs:enumeration value="ADDR"/> | ||
4835 | 43 | <xs:enumeration value="PBOX"/> | ||
4836 | 44 | <xs:enumeration value="HOME"/> | ||
4837 | 45 | <xs:enumeration value="BIZZ"/> | ||
4838 | 46 | <xs:enumeration value="MLTO"/> | ||
4839 | 47 | <xs:enumeration value="DLVY"/> | ||
4840 | 48 | </xs:restriction> | ||
4841 | 49 | </xs:simpleType> | ||
4842 | 50 | <xs:complexType name="AmendmentInformationDetails6"> | ||
4843 | 51 | <xs:sequence> | ||
4844 | 52 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlMndtId" type="Max35Text"/> | ||
4845 | 53 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlCdtrSchmeId" type="PartyIdentification32"/> | ||
4846 | 54 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlCdtrAgt" type="BranchAndFinancialInstitutionIdentification4"/> | ||
4847 | 55 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlCdtrAgtAcct" type="CashAccount16"/> | ||
4848 | 56 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlDbtr" type="PartyIdentification32"/> | ||
4849 | 57 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlDbtrAcct" type="CashAccount16"/> | ||
4850 | 58 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlDbtrAgt" type="BranchAndFinancialInstitutionIdentification4"/> | ||
4851 | 59 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlDbtrAgtAcct" type="CashAccount16"/> | ||
4852 | 60 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlFnlColltnDt" type="ISODate"/> | ||
4853 | 61 | <xs:element maxOccurs="1" minOccurs="0" name="OrgnlFrqcy" type="Frequency1Code"/> | ||
4854 | 62 | </xs:sequence> | ||
4855 | 63 | </xs:complexType> | ||
4856 | 64 | <xs:simpleType name="AnyBICIdentifier"> | ||
4857 | 65 | <xs:restriction base="xs:string"> | ||
4858 | 66 | <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/> | ||
4859 | 67 | </xs:restriction> | ||
4860 | 68 | </xs:simpleType> | ||
4861 | 69 | <xs:complexType name="Authorisation1Choice"> | ||
4862 | 70 | <xs:sequence> | ||
4863 | 71 | <xs:choice> | ||
4864 | 72 | <xs:element name="Cd" type="Authorisation1Code"/> | ||
4865 | 73 | <xs:element name="Prtry" type="Max128Text"/> | ||
4866 | 74 | </xs:choice> | ||
4867 | 75 | </xs:sequence> | ||
4868 | 76 | </xs:complexType> | ||
4869 | 77 | <xs:simpleType name="Authorisation1Code"> | ||
4870 | 78 | <xs:restriction base="xs:string"> | ||
4871 | 79 | <xs:enumeration value="AUTH"/> | ||
4872 | 80 | <xs:enumeration value="FDET"/> | ||
4873 | 81 | <xs:enumeration value="FSUM"/> | ||
4874 | 82 | <xs:enumeration value="ILEV"/> | ||
4875 | 83 | </xs:restriction> | ||
4876 | 84 | </xs:simpleType> | ||
4877 | 85 | <xs:simpleType name="BICIdentifier"> | ||
4878 | 86 | <xs:restriction base="xs:string"> | ||
4879 | 87 | <xs:pattern value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"/> | ||
4880 | 88 | </xs:restriction> | ||
4881 | 89 | </xs:simpleType> | ||
4882 | 90 | <xs:simpleType name="BatchBookingIndicator"> | ||
4883 | 91 | <xs:restriction base="xs:boolean"/> | ||
4884 | 92 | </xs:simpleType> | ||
4885 | 93 | <xs:complexType name="BranchAndFinancialInstitutionIdentification4"> | ||
4886 | 94 | <xs:sequence> | ||
4887 | 95 | <xs:element name="FinInstnId" type="FinancialInstitutionIdentification7"/> | ||
4888 | 96 | <xs:element maxOccurs="1" minOccurs="0" name="BrnchId" type="BranchData2"/> | ||
4889 | 97 | </xs:sequence> | ||
4890 | 98 | </xs:complexType> | ||
4891 | 99 | <xs:complexType name="BranchData2"> | ||
4892 | 100 | <xs:sequence> | ||
4893 | 101 | <xs:element maxOccurs="1" minOccurs="0" name="Id" type="Max35Text"/> | ||
4894 | 102 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
4895 | 103 | <xs:element maxOccurs="1" minOccurs="0" name="PstlAdr" type="PostalAddress6"/> | ||
4896 | 104 | </xs:sequence> | ||
4897 | 105 | </xs:complexType> | ||
4898 | 106 | <xs:complexType name="CashAccount16"> | ||
4899 | 107 | <xs:sequence> | ||
4900 | 108 | <xs:element name="Id" type="AccountIdentification4Choice"/> | ||
4901 | 109 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="CashAccountType2"/> | ||
4902 | 110 | <xs:element maxOccurs="1" minOccurs="0" name="Ccy" type="ActiveOrHistoricCurrencyCode"/> | ||
4903 | 111 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max70Text"/> | ||
4904 | 112 | </xs:sequence> | ||
4905 | 113 | </xs:complexType> | ||
4906 | 114 | <xs:complexType name="CashAccountType2"> | ||
4907 | 115 | <xs:sequence> | ||
4908 | 116 | <xs:choice> | ||
4909 | 117 | <xs:element name="Cd" type="CashAccountType4Code"/> | ||
4910 | 118 | <xs:element name="Prtry" type="Max35Text"/> | ||
4911 | 119 | </xs:choice> | ||
4912 | 120 | </xs:sequence> | ||
4913 | 121 | </xs:complexType> | ||
4914 | 122 | <xs:simpleType name="CashAccountType4Code"> | ||
4915 | 123 | <xs:restriction base="xs:string"> | ||
4916 | 124 | <xs:enumeration value="CASH"/> | ||
4917 | 125 | <xs:enumeration value="CHAR"/> | ||
4918 | 126 | <xs:enumeration value="COMM"/> | ||
4919 | 127 | <xs:enumeration value="TAXE"/> | ||
4920 | 128 | <xs:enumeration value="CISH"/> | ||
4921 | 129 | <xs:enumeration value="TRAS"/> | ||
4922 | 130 | <xs:enumeration value="SACC"/> | ||
4923 | 131 | <xs:enumeration value="CACC"/> | ||
4924 | 132 | <xs:enumeration value="SVGS"/> | ||
4925 | 133 | <xs:enumeration value="ONDP"/> | ||
4926 | 134 | <xs:enumeration value="MGLD"/> | ||
4927 | 135 | <xs:enumeration value="NREX"/> | ||
4928 | 136 | <xs:enumeration value="MOMA"/> | ||
4929 | 137 | <xs:enumeration value="LOAN"/> | ||
4930 | 138 | <xs:enumeration value="SLRY"/> | ||
4931 | 139 | <xs:enumeration value="ODFT"/> | ||
4932 | 140 | </xs:restriction> | ||
4933 | 141 | </xs:simpleType> | ||
4934 | 142 | <xs:complexType name="CategoryPurpose1Choice"> | ||
4935 | 143 | <xs:sequence> | ||
4936 | 144 | <xs:choice> | ||
4937 | 145 | <xs:element name="Cd" type="ExternalCategoryPurpose1Code"/> | ||
4938 | 146 | <xs:element name="Prtry" type="Max35Text"/> | ||
4939 | 147 | </xs:choice> | ||
4940 | 148 | </xs:sequence> | ||
4941 | 149 | </xs:complexType> | ||
4942 | 150 | <xs:simpleType name="ChargeBearerType1Code"> | ||
4943 | 151 | <xs:restriction base="xs:string"> | ||
4944 | 152 | <xs:enumeration value="DEBT"/> | ||
4945 | 153 | <xs:enumeration value="CRED"/> | ||
4946 | 154 | <xs:enumeration value="SHAR"/> | ||
4947 | 155 | <xs:enumeration value="SLEV"/> | ||
4948 | 156 | </xs:restriction> | ||
4949 | 157 | </xs:simpleType> | ||
4950 | 158 | <xs:complexType name="ClearingSystemIdentification2Choice"> | ||
4951 | 159 | <xs:sequence> | ||
4952 | 160 | <xs:choice> | ||
4953 | 161 | <xs:element name="Cd" type="ExternalClearingSystemIdentification1Code"/> | ||
4954 | 162 | <xs:element name="Prtry" type="Max35Text"/> | ||
4955 | 163 | </xs:choice> | ||
4956 | 164 | </xs:sequence> | ||
4957 | 165 | </xs:complexType> | ||
4958 | 166 | <xs:complexType name="ClearingSystemMemberIdentification2"> | ||
4959 | 167 | <xs:sequence> | ||
4960 | 168 | <xs:element maxOccurs="1" minOccurs="0" name="ClrSysId" type="ClearingSystemIdentification2Choice"/> | ||
4961 | 169 | <xs:element name="MmbId" type="Max35Text"/> | ||
4962 | 170 | </xs:sequence> | ||
4963 | 171 | </xs:complexType> | ||
4964 | 172 | <xs:complexType name="ContactDetails2"> | ||
4965 | 173 | <xs:sequence> | ||
4966 | 174 | <xs:element maxOccurs="1" minOccurs="0" name="NmPrfx" type="NamePrefix1Code"/> | ||
4967 | 175 | <xs:element maxOccurs="1" minOccurs="0" name="Nm" type="Max140Text"/> | ||
4968 | 176 | <xs:element maxOccurs="1" minOccurs="0" name="PhneNb" type="PhoneNumber"/> | ||
4969 | 177 | <xs:element maxOccurs="1" minOccurs="0" name="MobNb" type="PhoneNumber"/> | ||
4970 | 178 | <xs:element maxOccurs="1" minOccurs="0" name="FaxNb" type="PhoneNumber"/> | ||
4971 | 179 | <xs:element maxOccurs="1" minOccurs="0" name="EmailAdr" type="Max2048Text"/> | ||
4972 | 180 | <xs:element maxOccurs="1" minOccurs="0" name="Othr" type="Max35Text"/> | ||
4973 | 181 | </xs:sequence> | ||
4974 | 182 | </xs:complexType> | ||
4975 | 183 | <xs:simpleType name="CountryCode"> | ||
4976 | 184 | <xs:restriction base="xs:string"> | ||
4977 | 185 | <xs:pattern value="[A-Z]{2,2}"/> | ||
4978 | 186 | </xs:restriction> | ||
4979 | 187 | </xs:simpleType> | ||
4980 | 188 | <xs:simpleType name="CreditDebitCode"> | ||
4981 | 189 | <xs:restriction base="xs:string"> | ||
4982 | 190 | <xs:enumeration value="CRDT"/> | ||
4983 | 191 | <xs:enumeration value="DBIT"/> | ||
4984 | 192 | </xs:restriction> | ||
4985 | 193 | </xs:simpleType> | ||
4986 | 194 | <xs:complexType name="CreditorReferenceInformation2"> | ||
4987 | 195 | <xs:sequence> | ||
4988 | 196 | <xs:element maxOccurs="1" minOccurs="0" name="Tp" type="CreditorReferenceType2"/> | ||
4989 | 197 | <xs:element maxOccurs="1" minOccurs="0" name="Ref" type="Max35Text"/> | ||
4990 | 198 | </xs:sequence> | ||
4991 | 199 | </xs:complexType> | ||
4992 | 200 | <xs:complexType name="CreditorReferenceType1Choice"> | ||
4993 | 201 | <xs:sequence> | ||
4994 | 202 | <xs:choice> | ||
4995 | 203 | <xs:element name="Cd" type="DocumentType3Code"/> | ||
4996 | 204 | <xs:element name="Prtry" type="Max35Text"/> | ||
4997 | 205 | </xs:choice> | ||
4998 | 206 | </xs:sequence> | ||
4999 | 207 | </xs:complexType> | ||
5000 | 208 | <xs:complexType name="CreditorReferenceType2"> |
Hi Alexis,
Is the 7.0 branch this one? https:/ /code.launchpad .net/~akretion- team/banking- addons/ 70-sepa- direct- debit/+ merge/195139
Is the 6.1 branch "work in progress" like the 7.0 one?
Neat piece of work! LGTM so far