mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Replace unallowed ascii caracters by '-' Update some error messages Update translation files and FR translation Include sepa_export in gen_args Factorize more code between SDD and SCT Fix view of payment lines The modules account_banking_pain_base and account_banking_sepa_* are now fully PEP8 compliant
This commit is contained in:
committed by
Enric Tobella
parent
ba18bf3e91
commit
aac9974103
@@ -63,14 +63,24 @@ class banking_export_sdd(orm.Model):
|
||||
readonly=True),
|
||||
'batch_booking': fields.boolean(
|
||||
'Batch Booking', readonly=True,
|
||||
help="If true, the bank statement will display only one credit line for all the direct debits of the SEPA file ; if false, the bank statement will display one credit line per direct debit of the SEPA file."),
|
||||
help="If true, the bank statement will display only one credit "
|
||||
"line for all the direct debits of the SEPA file ; if false, "
|
||||
"the bank statement will display one credit line per direct "
|
||||
"debit of the SEPA file."),
|
||||
'charge_bearer': fields.selection([
|
||||
('SLEV', 'Following Service Level'),
|
||||
('SHAR', 'Shared'),
|
||||
('CRED', 'Borne by Creditor'),
|
||||
('DEBT', 'Borne by Debtor'),
|
||||
], 'Charge Bearer', readonly=True,
|
||||
help='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.'),
|
||||
help="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."),
|
||||
'create_date': fields.datetime('Generation Date', readonly=True),
|
||||
'file': fields.binary('SEPA File', readonly=True),
|
||||
'filename': fields.function(
|
||||
@@ -98,22 +108,26 @@ class sdd_mandate(orm.Model):
|
||||
_track = {
|
||||
'state': {
|
||||
'account_banking_sepa_direct_debit.mandate_valid':
|
||||
lambda self, cr, uid, obj, ctx=None: obj['state'] == 'valid',
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['state'] == 'valid',
|
||||
'account_banking_sepa_direct_debit.mandate_expired':
|
||||
lambda self, cr, uid, obj, ctx=None: obj['state'] == 'expired',
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['state'] == 'expired',
|
||||
'account_banking_sepa_direct_debit.mandate_cancel':
|
||||
lambda self, cr, uid, obj, ctx=None: obj['state'] == 'cancel',
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['state'] == 'cancel',
|
||||
},
|
||||
'recurrent_sequence_type': {
|
||||
'account_banking_sepa_direct_debit.recurrent_sequence_type_first':
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['recurrent_sequence_type'] == 'first',
|
||||
'account_banking_sepa_direct_debit.recurrent_sequence_type_recurring':
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['recurrent_sequence_type'] == 'recurring',
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['recurrent_sequence_type'] == 'first',
|
||||
'account_banking_sepa_direct_debit.'
|
||||
'recurrent_sequence_type_recurring':
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['recurrent_sequence_type'] == 'recurring',
|
||||
'account_banking_sepa_direct_debit.recurrent_sequence_type_final':
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['recurrent_sequence_type'] == 'final',
|
||||
lambda self, cr, uid, obj, ctx=None:
|
||||
obj['recurrent_sequence_type'] == 'final',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +150,8 @@ class sdd_mandate(orm.Model):
|
||||
('recurring', 'Recurring'),
|
||||
('final', 'Final'),
|
||||
], 'Sequence Type for Next Debit', track_visibility='onchange',
|
||||
help="This field is only used for Recurrent mandates, not for One-Off mandates."),
|
||||
help="This field is only used for Recurrent mandates, not for "
|
||||
"One-Off mandates."),
|
||||
'signature_date': fields.date(
|
||||
'Date of Signature of the Mandate', track_visibility='onchange'),
|
||||
'scan': fields.binary('Scan of the Mandate'),
|
||||
@@ -148,24 +163,36 @@ class sdd_mandate(orm.Model):
|
||||
('expired', 'Expired'),
|
||||
('cancel', 'Cancelled'),
|
||||
], 'Status',
|
||||
help="Only valid mandates can be used in a payment line. A cancelled mandate is a mandate that has been cancelled by the customer. A one-off mandate expires after its first use. A recurrent mandate expires after it's final use or if it hasn't been used for 36 months."),
|
||||
help="Only valid mandates can be used in a payment line. A "
|
||||
"cancelled mandate is a mandate that has been cancelled by "
|
||||
"the customer. A one-off mandate expires after its first use. "
|
||||
"A recurrent mandate expires after it's final use or if it "
|
||||
"hasn't been used for 36 months."),
|
||||
'payment_line_ids': fields.one2many(
|
||||
'payment.line', 'sdd_mandate_id', "Related Payment Lines"),
|
||||
'sepa_migrated': fields.boolean(
|
||||
'Migrated to SEPA', track_visibility='onchange',
|
||||
help="If this field is not active, the mandate section of the next direct debit file that include this mandate will contain the 'Original Mandate Identification' and the 'Original Creditor Scheme Identification'. This is required in a few countries (Belgium for instance), but not in all countries. If this is not required in your country, you should keep this field always active."),
|
||||
help="If this field is not active, the mandate section of the "
|
||||
"next direct debit file that include this mandate will contain "
|
||||
"the 'Original Mandate Identification' and the 'Original "
|
||||
"Creditor Scheme Identification'. This is required in a few "
|
||||
"countries (Belgium for instance), but not in all countries. "
|
||||
"If this is not required in your country, you should keep this "
|
||||
"field always active."),
|
||||
'original_mandate_identification': fields.char(
|
||||
'Original Mandate Identification', size=35,
|
||||
track_visibility='onchange',
|
||||
help="When the field 'Migrated to SEPA' is not active, this field will be used as the Original Mandate Identification in the the Direct Debit file."),
|
||||
help="When the field 'Migrated to SEPA' is not active, this "
|
||||
"field will be used as the Original Mandate Identification in "
|
||||
"the Direct Debit file."),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
'company_id': lambda self, cr, uid, context:
|
||||
self.pool['res.company'].\
|
||||
_company_default_get(cr, uid, 'sdd.mandate', context=context),
|
||||
self.pool['res.company']._company_default_get(
|
||||
cr, uid, 'sdd.mandate', context=context),
|
||||
'unique_mandate_reference': lambda self, cr, uid, ctx:
|
||||
self.pool['ir.sequence'].get(cr, uid, 'sdd.mandate.reference'),
|
||||
self.pool['ir.sequence'].get(cr, uid, 'sdd.mandate.reference'),
|
||||
'state': 'draft',
|
||||
'sepa_migrated': True,
|
||||
}
|
||||
@@ -183,24 +210,28 @@ class sdd_mandate(orm.Model):
|
||||
datetime.today().strftime('%Y-%m-%d')):
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("The date of signature of mandate '%s' is in the future!")
|
||||
_("The date of signature of mandate '%s' is in the "
|
||||
"future !")
|
||||
% mandate.unique_mandate_reference)
|
||||
if mandate.state == 'valid' and not mandate.signature_date:
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("Cannot validate the mandate '%s' without a date of signature.")
|
||||
_("Cannot validate the mandate '%s' without a date of "
|
||||
"signature.")
|
||||
% mandate.unique_mandate_reference)
|
||||
if mandate.state == 'valid' and not mandate.partner_bank_id:
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("Cannot validate the mandate '%s' because it is not attached to a bank account.")
|
||||
_("Cannot validate the mandate '%s' because it is not "
|
||||
"attached to a bank account.")
|
||||
% mandate.unique_mandate_reference)
|
||||
|
||||
if (mandate.signature_date and mandate.last_debit_date and
|
||||
mandate.signature_date > mandate.last_debit_date):
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("The mandate '%s' can't have a date of last debit before the date of signature.")
|
||||
_("The mandate '%s' can't have a date of last debit "
|
||||
"before the date of signature.")
|
||||
% mandate.unique_mandate_reference)
|
||||
if (mandate.type == 'recurrent'
|
||||
and not mandate.recurrent_sequence_type):
|
||||
@@ -212,13 +243,17 @@ class sdd_mandate(orm.Model):
|
||||
and mandate.recurrent_sequence_type != 'first'):
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("The recurrent mandate '%s' which is not marked as 'Migrated to SEPA' must have its recurrent sequence type set to 'First'.")
|
||||
_("The recurrent mandate '%s' which is not marked as "
|
||||
"'Migrated to SEPA' must have its recurrent sequence "
|
||||
"type set to 'First'.")
|
||||
% mandate.unique_mandate_reference)
|
||||
if (mandate.type == 'recurrent' and not mandate.sepa_migrated
|
||||
and not mandate.original_mandate_identification):
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("You must set the 'Original Mandate Identification' on the recurrent mandate '%s' which is not marked as 'Migrated to SEPA'.")
|
||||
_("You must set the 'Original Mandate Identification' "
|
||||
"on the recurrent mandate '%s' which is not marked "
|
||||
"as 'Migrated to SEPA'.")
|
||||
% mandate.unique_mandate_reference)
|
||||
return True
|
||||
|
||||
@@ -252,8 +287,11 @@ class sdd_mandate(orm.Model):
|
||||
and recurrent_sequence_type != 'first'):
|
||||
res['value']['recurrent_sequence_type'] = 'first'
|
||||
res['warning'] = {
|
||||
'title': _('Mandate update'),
|
||||
'message': _("As you changed the bank account attached to this mandate, the 'Sequence Type' has been set back to 'First'."),
|
||||
'title': _('Mandate update'),
|
||||
'message': _(
|
||||
"As you changed the bank account attached to this "
|
||||
"mandate, the 'Sequence Type' has been set back to "
|
||||
"'First'."),
|
||||
}
|
||||
return res
|
||||
|
||||
@@ -337,7 +375,7 @@ class payment_line(orm.Model):
|
||||
vals.update({
|
||||
'sdd_mandate_id': line.invoice.sdd_mandate_id.id,
|
||||
'bank_id':
|
||||
line.invoice.sdd_mandate_id.partner_bank_id.id,
|
||||
line.invoice.sdd_mandate_id.partner_bank_id.id,
|
||||
})
|
||||
if partner_bank_id and 'sdd_mandate_id' not in vals:
|
||||
mandate_ids = self.pool['sdd.mandate'].search(cr, uid, [
|
||||
@@ -355,14 +393,17 @@ class payment_line(orm.Model):
|
||||
payline.bank_id.id):
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("The payment line with reference '%s' has the bank account '%s' which is not attached to the mandate '%s' (this mandate is attached to the bank account '%s').")
|
||||
% (payline.name,
|
||||
self.pool['res.partner.bank'].name_get(
|
||||
cr, uid, [payline.bank_id.id])[0][1],
|
||||
payline.sdd_mandate_id.unique_mandate_reference,
|
||||
self.pool['res.partner.bank'].name_get(
|
||||
cr, uid,
|
||||
[payline.sdd_mandate_id.partner_bank_id.id])[0][1],
|
||||
_("The payment line with reference '%s' has the bank "
|
||||
"account '%s' which is not attached to the mandate "
|
||||
"'%s' (this mandate is attached to the bank account "
|
||||
"'%s').") % (
|
||||
payline.name,
|
||||
self.pool['res.partner.bank'].name_get(
|
||||
cr, uid, [payline.bank_id.id])[0][1],
|
||||
payline.sdd_mandate_id.unique_mandate_reference,
|
||||
self.pool['res.partner.bank'].name_get(
|
||||
cr, uid,
|
||||
[payline.sdd_mandate_id.partner_bank_id.id])[0][1],
|
||||
))
|
||||
return True
|
||||
|
||||
|
||||
@@ -31,7 +31,11 @@ class res_company(orm.Model):
|
||||
_columns = {
|
||||
'sepa_creditor_identifier': fields.char(
|
||||
'SEPA Creditor Identifier', size=35,
|
||||
help="Enter the Creditor Identifier that has been attributed to your company to make SEPA Direct Debits. This identifier is composed of :\n- your country ISO code (2 letters)\n- a 2-digits checkum\n- a 3-letters business code\n- a country-specific identifier"),
|
||||
help="Enter the Creditor Identifier that has been attributed "
|
||||
"to your company to make SEPA Direct Debits. This identifier "
|
||||
"is composed of :\n- your country ISO code (2 letters)\n- a "
|
||||
"2-digits checkum\n- a 3-letters business code\n- a "
|
||||
"country-specific identifier"),
|
||||
'original_creditor_identifier': fields.char(
|
||||
'Original Creditor Identifier', size=70),
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-11-11 14:28+0000\n"
|
||||
"PO-Revision-Date: 2013-11-11 14:28+0000\n"
|
||||
"POT-Creation-Date: 2013-12-23 22:24+0000\n"
|
||||
"PO-Revision-Date: 2013-12-23 22:24+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -27,19 +27,13 @@ msgid "Filename"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:banking.export.sdd,requested_collec_date:0
|
||||
#: field:banking.export.sdd.wizard,requested_collec_date:0
|
||||
msgid "Requested Collection Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:276
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:200
|
||||
#, python-format
|
||||
msgid "The SEPA Direct Debit mandate with reference '%s' for partner '%s' has expired."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:186
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:219
|
||||
#, python-format
|
||||
msgid "Cannot validate the mandate '%s' without a date of signature."
|
||||
msgstr ""
|
||||
@@ -67,8 +61,8 @@ msgid "Error msg in raise"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,company_id:0
|
||||
msgid "Company"
|
||||
#: selection:banking.export.sdd,state:0
|
||||
msgid "Reconciled"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
@@ -119,21 +113,18 @@ msgid "Borne by Debtor"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:180
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:185
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:190
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:197
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:203
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:336
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:89
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:115
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:121
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:130
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:168
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:219
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:269
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:275
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:287
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:212
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:218
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:224
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:232
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:239
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:245
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:253
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:395
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:140
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:192
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:199
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:209
|
||||
#, python-format
|
||||
msgid "Error:"
|
||||
msgstr ""
|
||||
@@ -144,20 +135,8 @@ msgid "Messages"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:131
|
||||
#, python-format
|
||||
msgid "The '%s' is empty or 0. It should have a non-null value."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:89
|
||||
#, python-format
|
||||
msgid "This IBAN is not valid : %s"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_banking_export_sdd_wizard
|
||||
msgid "Export SEPA Direct Debit XML file"
|
||||
#: field:sdd.mandate,unique_mandate_reference:0
|
||||
msgid "Unique Mandate Reference"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
@@ -167,7 +146,7 @@ msgid "Cancelled"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:219
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:141
|
||||
#, python-format
|
||||
msgid "Payment Type Code '%s' is not supported. The only Payment Type Code supported for SEPA Direct Debit are 'pain.008.001.02', 'pain.008.001.03' and 'pain.008.001.04'."
|
||||
msgstr ""
|
||||
@@ -187,6 +166,12 @@ msgstr ""
|
||||
msgid "SEPA Direct Debit Mandate has Expired"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:246
|
||||
#, python-format
|
||||
msgid "The recurrent mandate '%s' which is not marked as 'Migrated to SEPA' must have its recurrent sequence type set to 'First'."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd,charge_bearer:0
|
||||
#: help:banking.export.sdd.wizard,charge_bearer:0
|
||||
@@ -213,11 +198,6 @@ msgstr ""
|
||||
msgid "Holds the Chatter summary (number of messages, ...). This summary is directly in html format in order to be inserted in kanban views."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd.wizard,requested_collec_date:0
|
||||
msgid "This is the date on which you would like the collection to be made by the bank. Please keep in mind that there are minimum delays for SEPA direct debits that depend on the type of mandate and the type of sequence."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_payment_line
|
||||
msgid "Payment Line"
|
||||
@@ -229,7 +209,7 @@ msgid "Generation Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:337
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:396
|
||||
#, python-format
|
||||
msgid "The payment line with reference '%s' has the bank account '%s' which is not attached to the mandate '%s' (this mandate is attached to the bank account '%s')."
|
||||
msgstr ""
|
||||
@@ -258,7 +238,7 @@ msgid "State"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:204
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:240
|
||||
#, python-format
|
||||
msgid "The recurrent mandate '%s' must have a sequence type."
|
||||
msgstr ""
|
||||
@@ -291,14 +271,13 @@ msgid "Sent"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:sdd.mandate,recurrent_sequence_type:0
|
||||
msgid "Recurring"
|
||||
#: field:res.company,original_creditor_identifier:0
|
||||
msgid "Original Creditor Identifier"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:181
|
||||
#, python-format
|
||||
msgid "The date of signature of mandate '%s' is in the future!"
|
||||
#: selection:sdd.mandate,recurrent_sequence_type:0
|
||||
msgid "Recurring"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
@@ -325,6 +304,12 @@ msgstr ""
|
||||
msgid "This field is only used for Recurrent mandates, not for One-Off mandates."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:213
|
||||
#, python-format
|
||||
msgid "The date of signature of mandate '%s' is in the future !"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:sdd.mandate:0
|
||||
msgid "Signature Date"
|
||||
@@ -341,12 +326,6 @@ msgstr ""
|
||||
msgid "Partner"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:125
|
||||
#, python-format
|
||||
msgid "Field type error:"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:sdd.mandate,recurrent_sequence_type:0
|
||||
msgid "First"
|
||||
@@ -364,18 +343,32 @@ msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.actions.act_window,name:account_banking_sepa_direct_debit.act_banking_export_sdd_payment_order
|
||||
#: model:ir.actions.act_window,name:account_banking_sepa_direct_debit.action_account_banking_sdd
|
||||
#: model:ir.ui.menu,name:account_banking_sepa_direct_debit.menu_account_banking_sdd
|
||||
msgid "Generated SEPA Direct Debit Files"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:banking.export.sdd,state:0
|
||||
msgid "Reconciled"
|
||||
#: help:sdd.mandate,sepa_migrated:0
|
||||
msgid "If this field is not active, the mandate section of the next direct debit file that include this mandate will contain the 'Original Mandate Identification' and the 'Original Creditor Scheme Identification'. This is required in a few countries (Belgium for instance), but not in all countries. If this is not required in your country, you should keep this field always active."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:191
|
||||
#: field:sdd.mandate,company_id:0
|
||||
msgid "Company"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_banking_export_sdd_wizard
|
||||
msgid "Export SEPA Direct Debit File"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd,batch_booking:0
|
||||
#: help:banking.export.sdd.wizard,batch_booking:0
|
||||
msgid "If true, the bank statement will display only one credit line for all the direct debits of the SEPA file ; if false, the bank statement will display one credit line per direct debit of the SEPA file."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:225
|
||||
#, python-format
|
||||
msgid "Cannot validate the mandate '%s' because it is not attached to a bank account."
|
||||
msgstr ""
|
||||
@@ -388,17 +381,11 @@ msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:232
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:290
|
||||
#, python-format
|
||||
msgid "Mandate update"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:116
|
||||
#, python-format
|
||||
msgid "Cannot compute the '%s' of the Payment Line with Invoice Reference '%s'."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:banking.export.sdd,charge_bearer:0
|
||||
#: selection:banking.export.sdd.wizard,charge_bearer:0
|
||||
@@ -411,6 +398,11 @@ msgstr ""
|
||||
msgid "Batch Booking"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,sepa_migrated:0
|
||||
msgid "Migrated to SEPA"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,state:0
|
||||
msgid "Status"
|
||||
@@ -423,9 +415,9 @@ msgid "Total Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd,batch_booking:0
|
||||
#: help:banking.export.sdd.wizard,batch_booking:0
|
||||
msgid "If true, the bank statement will display only one credit line for all the direct debits of the SEPA file ; if false, the bank statement will display one credit line per direct debit of the SEPA file."
|
||||
#: model:ir.actions.act_window,name:account_banking_sepa_direct_debit.action_account_banking_sdd
|
||||
#: model:ir.ui.menu,name:account_banking_sepa_direct_debit.menu_account_banking_sdd
|
||||
msgid "SEPA Direct Debit Files"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
@@ -435,7 +427,7 @@ msgid "Following Service Level"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:198
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:233
|
||||
#, python-format
|
||||
msgid "The mandate '%s' can't have a date of last debit before the date of signature."
|
||||
msgstr ""
|
||||
@@ -451,11 +443,21 @@ msgstr ""
|
||||
msgid "Is a Follower"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:sdd.mandate,original_mandate_identification:0
|
||||
msgid "When the field 'Migrated to SEPA' is not active, this field will be used as the Original Mandate Identification in the Direct Debit file."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:payment.order:0
|
||||
msgid "SDD Mandate"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,original_mandate_identification:0
|
||||
msgid "Original Mandate Identification"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_res_company
|
||||
msgid "Companies"
|
||||
@@ -466,6 +468,11 @@ msgstr ""
|
||||
msgid "Summary"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:res.groups,name:account_banking_sepa_direct_debit.group_original_mandate_required
|
||||
msgid "Original Mandate Required (SEPA)"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:account.invoice,sdd_mandate_id:0
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_sdd_mandate
|
||||
@@ -475,13 +482,13 @@ msgid "SEPA Direct Debit Mandate"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:270
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:193
|
||||
#, python-format
|
||||
msgid "Missing SEPA Direct Debit mandate on the payment line with partner '%s' and Invoice ref '%s'."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:288
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:210
|
||||
#, python-format
|
||||
msgid "The mandate with reference '%s' for partner '%s' has type set to 'One-Off' and it has a last debit date set to '%s', so we can't use it."
|
||||
msgstr ""
|
||||
@@ -549,12 +556,6 @@ msgstr ""
|
||||
msgid "Related Payment Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:169
|
||||
#, python-format
|
||||
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"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:sdd.mandate:0
|
||||
#: selection:sdd.mandate,type:0
|
||||
@@ -581,18 +582,6 @@ msgstr ""
|
||||
msgid "SEPA Creditor Identifier"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:122
|
||||
#, python-format
|
||||
msgid "Cannot compute the '%s'."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:126
|
||||
#, python-format
|
||||
msgid "The type of the field '%s' is %s. It should be a string or unicode."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_banking_export_sdd
|
||||
msgid "SEPA Direct Debit export"
|
||||
@@ -609,6 +598,12 @@ msgstr ""
|
||||
msgid "Bank Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:254
|
||||
#, python-format
|
||||
msgid "You must set the 'Original Mandate Identification' on the recurrent mandate '%s' which is not marked as 'Migrated to SEPA'."
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:mail.message.subtype,description:account_banking_sepa_direct_debit.recurrent_sequence_type_first
|
||||
#: model:mail.message.subtype,name:account_banking_sepa_direct_debit.recurrent_sequence_type_first
|
||||
@@ -616,7 +611,7 @@ msgid "Sequence Type set to First"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:233
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:291
|
||||
#, python-format
|
||||
msgid "As you changed the bank account attached to this mandate, the 'Sequence Type' has been set back to 'First'."
|
||||
msgstr ""
|
||||
@@ -631,11 +626,6 @@ msgstr ""
|
||||
msgid "Search SEPA Direct Debit Mandates"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,unique_mandate_reference:0
|
||||
msgid "Unique Mandate Reference"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:banking.export.sdd.wizard,file:0
|
||||
msgid "File"
|
||||
|
||||
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-11-11 14:04+0000\n"
|
||||
"PO-Revision-Date: 2013-11-11 14:04+0000\n"
|
||||
"POT-Creation-Date: 2013-12-23 22:25+0000\n"
|
||||
"PO-Revision-Date: 2013-12-23 22:25+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -27,19 +27,13 @@ msgid "Filename"
|
||||
msgstr "Nom du fichier"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:banking.export.sdd,requested_collec_date:0
|
||||
#: field:banking.export.sdd.wizard,requested_collec_date:0
|
||||
msgid "Requested Collection Date"
|
||||
msgstr "Date de collecte demandée"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:276
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:200
|
||||
#, python-format
|
||||
msgid "The SEPA Direct Debit mandate with reference '%s' for partner '%s' has expired."
|
||||
msgstr "Le mandat de prélèvement SEPA portant la référence '%s' pour le partenaire '%s' a expiré."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:186
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:219
|
||||
#, python-format
|
||||
msgid "Cannot validate the mandate '%s' without a date of signature."
|
||||
msgstr "Impossible de valider le mandat '%s' sans date de signature."
|
||||
@@ -119,21 +113,18 @@ msgid "Borne by Debtor"
|
||||
msgstr "Supportés par le débiteur"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:180
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:185
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:190
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:197
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:203
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:336
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:89
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:115
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:121
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:130
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:168
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:219
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:269
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:275
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:287
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:212
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:218
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:224
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:232
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:239
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:245
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:253
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:395
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:140
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:192
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:199
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:209
|
||||
#, python-format
|
||||
msgid "Error:"
|
||||
msgstr "Erreur :"
|
||||
@@ -144,21 +135,9 @@ msgid "Messages"
|
||||
msgstr "Messages"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:131
|
||||
#, python-format
|
||||
msgid "The '%s' is empty or 0. It should have a non-null value."
|
||||
msgstr "Le champ '%s' est vide ou nul. Il doit avoir une valeur non nulle."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:89
|
||||
#, python-format
|
||||
msgid "This IBAN is not valid : %s"
|
||||
msgstr "Cet IBAN n'est pas valide : %s"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_banking_export_sdd_wizard
|
||||
msgid "Export SEPA Direct Debit XML file"
|
||||
msgstr "Export des fichiers de prélèvement SEPA"
|
||||
#: field:sdd.mandate,unique_mandate_reference:0
|
||||
msgid "Unique Mandate Reference"
|
||||
msgstr "Référence unique de mandat"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:sdd.mandate:0
|
||||
@@ -167,7 +146,7 @@ msgid "Cancelled"
|
||||
msgstr "Annulé"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:219
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:141
|
||||
#, python-format
|
||||
msgid "Payment Type Code '%s' is not supported. The only Payment Type Code supported for SEPA Direct Debit are 'pain.008.001.02', 'pain.008.001.03' and 'pain.008.001.04'."
|
||||
msgstr "Le code du Type de paiement '%s' n'est pas supporté. Les seuls codes de Type de paiement supportés pour les prélèvements SEPA sont 'pain.008.001.02', 'pain.008.001.03' et 'pain.008.001.04'."
|
||||
@@ -187,6 +166,12 @@ msgstr "Fichier de prélèvement SEPA"
|
||||
msgid "SEPA Direct Debit Mandate has Expired"
|
||||
msgstr "Le mandat de prélèvement SEPA a expiré"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:246
|
||||
#, python-format
|
||||
msgid "The recurrent mandate '%s' which is not marked as 'Migrated to SEPA' must have its recurrent sequence type set to 'First'."
|
||||
msgstr "Le mandat récurrent '%s' dont l'option 'Migré à SEPA' n'est pas activée doit avec sa séquence mise à 'First'."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd,charge_bearer:0
|
||||
#: help:banking.export.sdd.wizard,charge_bearer:0
|
||||
@@ -224,7 +209,7 @@ msgid "Generation Date"
|
||||
msgstr "Date de génération"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:337
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:396
|
||||
#, python-format
|
||||
msgid "The payment line with reference '%s' has the bank account '%s' which is not attached to the mandate '%s' (this mandate is attached to the bank account '%s')."
|
||||
msgstr "La ligne de paiement portant la référence '%s' est configurée avec le compte bancaire '%s' qui n'est pas rattaché au mandat '%s' (ce mandat est rattaché au compte bancaire '%s')."
|
||||
@@ -253,7 +238,7 @@ msgid "State"
|
||||
msgstr "État"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:204
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:240
|
||||
#, python-format
|
||||
msgid "The recurrent mandate '%s' must have a sequence type."
|
||||
msgstr "Le mandat récurrent '%s' doit avoir un type de séquence."
|
||||
@@ -285,17 +270,16 @@ msgstr "Type"
|
||||
msgid "Sent"
|
||||
msgstr "Envoyé"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:res.company,original_creditor_identifier:0
|
||||
msgid "Original Creditor Identifier"
|
||||
msgstr "Ancien Identifiant Créancier"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:sdd.mandate,recurrent_sequence_type:0
|
||||
msgid "Recurring"
|
||||
msgstr "Recurring"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:181
|
||||
#, python-format
|
||||
msgid "The date of signature of mandate '%s' is in the future!"
|
||||
msgstr "La date de signature du mandat '%s' est dans le futur !"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:res.company,sepa_creditor_identifier:0
|
||||
msgid "Enter the Creditor Identifier that has been attributed to your company to make SEPA Direct Debits. This identifier is composed of :\n"
|
||||
@@ -324,6 +308,12 @@ msgstr "Seuls des mandats valides peuvent être utilisés dans une ligne de paie
|
||||
msgid "This field is only used for Recurrent mandates, not for One-Off mandates."
|
||||
msgstr "Ce champ n'est utilisé que pour les mandats récurrents, pas pour les mandats One-Off."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:213
|
||||
#, python-format
|
||||
msgid "The date of signature of mandate '%s' is in the future !"
|
||||
msgstr "La date de signature du mandat '%s' est dans le futur !"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:sdd.mandate:0
|
||||
msgid "Signature Date"
|
||||
@@ -340,12 +330,6 @@ msgstr "Répartition des frais"
|
||||
msgid "Partner"
|
||||
msgstr "Partenaire"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:125
|
||||
#, python-format
|
||||
msgid "Field type error:"
|
||||
msgstr "Erreur de type de champ :"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:sdd.mandate,recurrent_sequence_type:0
|
||||
msgid "First"
|
||||
@@ -363,18 +347,32 @@ msgstr "Mandat annulé"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.actions.act_window,name:account_banking_sepa_direct_debit.act_banking_export_sdd_payment_order
|
||||
#: model:ir.actions.act_window,name:account_banking_sepa_direct_debit.action_account_banking_sdd
|
||||
#: model:ir.ui.menu,name:account_banking_sepa_direct_debit.menu_account_banking_sdd
|
||||
msgid "Generated SEPA Direct Debit Files"
|
||||
msgstr "Fichiers de prélèvement SEPA générés"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:sdd.mandate,sepa_migrated:0
|
||||
msgid "If this field is not active, the mandate section of the next direct debit file that include this mandate will contain the 'Original Mandate Identification' and the 'Original Creditor Scheme Identification'. This is required in a few countries (Belgium for instance), but not in all countries. If this is not required in your country, you should keep this field always active."
|
||||
msgstr "Si cette option n'est pas activée, la section qui concerne le mandat dans le prochain fichier de prélèvement qui incluera ce mandat contiendra les champs 'Original Mandate Identification' et 'Original Creditor Scheme Identification'. Ces champs sont requis dans certains pays (en Belgique notamment), mais pas dans tous les pays. Si ces champs ne sont pas requis dans votre pays, vous devriez garder ce champ toujours actif."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,company_id:0
|
||||
msgid "Company"
|
||||
msgstr "Société"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:191
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_banking_export_sdd_wizard
|
||||
msgid "Export SEPA Direct Debit File"
|
||||
msgstr "Export du fichier de prélèvement SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd,batch_booking:0
|
||||
#: help:banking.export.sdd.wizard,batch_booking:0
|
||||
msgid "If true, the bank statement will display only one credit line for all the direct debits of the SEPA file ; if false, the bank statement will display one credit line per direct debit of the SEPA file."
|
||||
msgstr "Si activé, le relevé de compte ne fera apparaître qu'une ligne de crédit pour tous les prélèvements du fichier SEPA ; si désactivé, le relevé de banque fera apparaître une ligne de crédit pour chaque prélèvement du fichier SEPA."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:225
|
||||
#, python-format
|
||||
msgid "Cannot validate the mandate '%s' because it is not attached to a bank account."
|
||||
msgstr "Impossible de valider le mandat '%s' car il n'est pas rattaché à un compte bancaire."
|
||||
@@ -387,17 +385,11 @@ msgid "Draft"
|
||||
msgstr "Brouillon"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:232
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:290
|
||||
#, python-format
|
||||
msgid "Mandate update"
|
||||
msgstr "Mise-à-jour du mandat"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:116
|
||||
#, python-format
|
||||
msgid "Cannot compute the '%s' of the Payment Line with Invoice Reference '%s'."
|
||||
msgstr "Impossible de générer le '%s' de la ligne de paiement ayant la référence de facture '%s'."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:banking.export.sdd,charge_bearer:0
|
||||
#: selection:banking.export.sdd.wizard,charge_bearer:0
|
||||
@@ -410,6 +402,11 @@ msgstr "Partagée"
|
||||
msgid "Batch Booking"
|
||||
msgstr "Crédit groupé"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,sepa_migrated:0
|
||||
msgid "Migrated to SEPA"
|
||||
msgstr "Migré à SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,state:0
|
||||
msgid "Status"
|
||||
@@ -422,10 +419,10 @@ msgid "Total Amount"
|
||||
msgstr "Montant total"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd,batch_booking:0
|
||||
#: help:banking.export.sdd.wizard,batch_booking:0
|
||||
msgid "If true, the bank statement will display only one credit line for all the direct debits of the SEPA file ; if false, the bank statement will display one credit line per direct debit of the SEPA file."
|
||||
msgstr "Si activé, le relevé de compte ne fera apparaître qu'une ligne de crédit pour tous les prélèvements du fichier SEPA ; si désactivé, le relevé de banque fera apparaître une ligne de crédit pour chaque prélèvement du fichier SEPA."
|
||||
#: model:ir.actions.act_window,name:account_banking_sepa_direct_debit.action_account_banking_sdd
|
||||
#: model:ir.ui.menu,name:account_banking_sepa_direct_debit.menu_account_banking_sdd
|
||||
msgid "SEPA Direct Debit Files"
|
||||
msgstr "Fichiers de prélèvement SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: selection:banking.export.sdd,charge_bearer:0
|
||||
@@ -434,7 +431,7 @@ msgid "Following Service Level"
|
||||
msgstr "Suivant le niveau de service"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:198
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:233
|
||||
#, python-format
|
||||
msgid "The mandate '%s' can't have a date of last debit before the date of signature."
|
||||
msgstr "Le mandat '%s' ne peut pas avoir une date de dernier débit antérieure à la date de signature."
|
||||
@@ -450,11 +447,21 @@ msgstr "Type de Séquence mis à Final"
|
||||
msgid "Is a Follower"
|
||||
msgstr "Is a Follower"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:sdd.mandate,original_mandate_identification:0
|
||||
msgid "When the field 'Migrated to SEPA' is not active, this field will be used as the Original Mandate Identification in the Direct Debit file."
|
||||
msgstr "Quand le champ 'Migré à SEPA' n'est pas activé, ce champ sera le 'Original Mandate Identification' dans le fichier de prélèvement."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:payment.order:0
|
||||
msgid "SDD Mandate"
|
||||
msgstr "Mandat de prélèvement"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,original_mandate_identification:0
|
||||
msgid "Original Mandate Identification"
|
||||
msgstr "Ancien Identifiant du Mandat"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_res_company
|
||||
msgid "Companies"
|
||||
@@ -465,6 +472,11 @@ msgstr "Sociétés"
|
||||
msgid "Summary"
|
||||
msgstr "Résumé"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:res.groups,name:account_banking_sepa_direct_debit.group_original_mandate_required
|
||||
msgid "Original Mandate Required (SEPA)"
|
||||
msgstr "Ancien mandat requis (SEPA)"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:account.invoice,sdd_mandate_id:0
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_sdd_mandate
|
||||
@@ -474,13 +486,13 @@ msgid "SEPA Direct Debit Mandate"
|
||||
msgstr "Mandat de prélèvement SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:270
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:193
|
||||
#, python-format
|
||||
msgid "Missing SEPA Direct Debit mandate on the payment line with partner '%s' and Invoice ref '%s'."
|
||||
msgstr "Mandat de prélèvement SEPA manquant sur la ligne de paiement ayant pour partenaire '%s' et pour référence de facture '%s'."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:288
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:210
|
||||
#, python-format
|
||||
msgid "The mandate with reference '%s' for partner '%s' has type set to 'One-Off' and it has a last debit date set to '%s', so we can't use it."
|
||||
msgstr "Le mandat portant la référence '%s' pour le partenaire '%s' est de type 'One-Off' et il a une date de dernier débit au '%s', donc il n'est pas utilisable."
|
||||
@@ -510,6 +522,21 @@ msgstr "Identifiant créancier SEPA invalide."
|
||||
msgid "Bank Accounts"
|
||||
msgstr "Comptes bancaires"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.actions.act_window,help:account_banking_sepa_direct_debit.sdd_mandate_action
|
||||
msgid "<p class=\"oe_view_nocontent_create\">\n"
|
||||
" Click to create a new SEPA Direct Debit Mandate.\n"
|
||||
" </p><p>\n"
|
||||
" A SEPA Direct Debit Mandate is a document signed by your customer that gives you the autorization to do one or several direct debits on his bank account.\n"
|
||||
" </p>\n"
|
||||
" "
|
||||
msgstr "<p class=\"oe_view_nocontent_create\">\n"
|
||||
" Cliquez pour créer un mandat de prélèvement SEPA.\n"
|
||||
" </p><p>\n"
|
||||
" Un mandat de prélèvement SEPA est un document signé par votre client qui vous donne l'autorisation de réaliser un ou plusieurs prélèvements sur son compte bancaire.\n"
|
||||
" </p>\n"
|
||||
" "
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:banking.export.sdd:0
|
||||
msgid "General Information"
|
||||
@@ -538,12 +565,6 @@ msgstr "Annuler"
|
||||
msgid "Related Payment Lines"
|
||||
msgstr "Lignes de paiement associées"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:169
|
||||
#, python-format
|
||||
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"
|
||||
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"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: view:sdd.mandate:0
|
||||
#: selection:sdd.mandate,type:0
|
||||
@@ -563,25 +584,13 @@ msgstr "Mandat validé"
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:banking.export.sdd,file:0
|
||||
msgid "SEPA File"
|
||||
msgstr "SEPA File"
|
||||
msgstr "Fichier SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:res.company,sepa_creditor_identifier:0
|
||||
msgid "SEPA Creditor Identifier"
|
||||
msgstr "Identifiant créancier SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:122
|
||||
#, python-format
|
||||
msgid "Cannot compute the '%s'."
|
||||
msgstr "Impossible de calculer le '%s'."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/wizard/export_sdd.py:126
|
||||
#, python-format
|
||||
msgid "The type of the field '%s' is %s. It should be a string or unicode."
|
||||
msgstr "Le champ '%s' est de type %s. Il devrait être de type string ou unicode."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.model,name:account_banking_sepa_direct_debit.model_banking_export_sdd
|
||||
msgid "SEPA Direct Debit export"
|
||||
@@ -598,6 +607,12 @@ msgstr "Expiré"
|
||||
msgid "Bank Account"
|
||||
msgstr "Compte bancaire"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:254
|
||||
#, python-format
|
||||
msgid "You must set the 'Original Mandate Identification' on the recurrent mandate '%s' which is not marked as 'Migrated to SEPA'."
|
||||
msgstr "Vous devez renseigner le champ 'Ancien identifiant du mandat' sur le mandat récurrent '%s' qui n'est pas marqué comme étant 'Migré à SEPA'."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:mail.message.subtype,description:account_banking_sepa_direct_debit.recurrent_sequence_type_first
|
||||
#: model:mail.message.subtype,name:account_banking_sepa_direct_debit.recurrent_sequence_type_first
|
||||
@@ -605,22 +620,7 @@ msgid "Sequence Type set to First"
|
||||
msgstr "Type de Séquence mis à First"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: model:ir.actions.act_window,help:account_banking_sepa_direct_debit.sdd_mandate_action
|
||||
msgid "<p class=\"oe_view_nocontent_create\">\n"
|
||||
" Click to create a new SEPA Direct Debit Mandate.\n"
|
||||
" </p><p>\n"
|
||||
" A SEPA Direct Debit Mandate is a document signed by your customer that gives you the autorization to do one or several direct debits on his bank account.\n"
|
||||
" </p>\n"
|
||||
" "
|
||||
msgstr "<p class=\"oe_view_nocontent_create\">\n"
|
||||
" Cliquez pour créer un mandat de prélèvement SEPA.\n"
|
||||
" </p><p>\n"
|
||||
" Un mandat de prélèvement SEPA est un document signé par votre client qui vous donne l'autorisation de réaliser un ou plusieurs prélèvements sur son compte bancaire.\n"
|
||||
" </p>\n"
|
||||
" "
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:233
|
||||
#: code:addons/account_banking_sepa_direct_debit/account_banking_sdd.py:291
|
||||
#, python-format
|
||||
msgid "As you changed the bank account attached to this mandate, the 'Sequence Type' has been set back to 'First'."
|
||||
msgstr "Etant donné que vous avez changé le compte bancaire associé à ce mandat, le 'Type de séquence' a été remis à 'First'."
|
||||
@@ -635,16 +635,6 @@ msgstr "Messages and communication history"
|
||||
msgid "Search SEPA Direct Debit Mandates"
|
||||
msgstr "Recherche dans les mandats de prélèvement SEPA"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: help:banking.export.sdd.wizard,requested_collec_date:0
|
||||
msgid "This is the date on which you would like the collection to be made by the bank. Please keep in mind that there are minimum delays for SEPA direct debits that depend on the type of mandate and the type of sequence."
|
||||
msgstr "Entrez la date à laquelle vous voudriez que le prélèvement soit effectué par la banque. Gardez en mémoire qu'il y a un délai minimum pour les prélèvements SEPA qui dépend du type de mandat et du type de séquence."
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:sdd.mandate,unique_mandate_reference:0
|
||||
msgid "Unique Mandate Reference"
|
||||
msgstr "Référence unique de mandat"
|
||||
|
||||
#. module: account_banking_sepa_direct_debit
|
||||
#: field:banking.export.sdd.wizard,file:0
|
||||
msgid "File"
|
||||
|
||||
@@ -23,12 +23,9 @@
|
||||
|
||||
from openerp.osv import orm, fields
|
||||
from openerp.tools.translate import _
|
||||
from openerp import tools, netsvc
|
||||
from openerp import netsvc
|
||||
from datetime import datetime
|
||||
from lxml import etree
|
||||
import logging
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class banking_export_sdd_wizard(orm.TransientModel):
|
||||
@@ -42,14 +39,24 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
], 'State', readonly=True),
|
||||
'batch_booking': fields.boolean(
|
||||
'Batch Booking',
|
||||
help="If true, the bank statement will display only one credit line for all the direct debits of the SEPA file ; if false, the bank statement will display one credit line per direct debit of the SEPA file."),
|
||||
help="If true, the bank statement will display only one credit "
|
||||
"line for all the direct debits of the SEPA file ; if false, "
|
||||
"the bank statement will display one credit line per direct "
|
||||
"debit of the SEPA file."),
|
||||
'charge_bearer': fields.selection([
|
||||
('SLEV', 'Following Service Level'),
|
||||
('SHAR', 'Shared'),
|
||||
('CRED', 'Borne by Creditor'),
|
||||
('DEBT', 'Borne by Debtor'),
|
||||
], 'Charge Bearer', required=True,
|
||||
help='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.'),
|
||||
help="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."),
|
||||
'nb_transactions': fields.related(
|
||||
'file_id', 'nb_transactions', type='integer',
|
||||
string='Number of Transactions', readonly=True),
|
||||
@@ -129,13 +136,22 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
name_maxsize = 140
|
||||
root_xml_tag = 'CstmrDrctDbtInitn'
|
||||
else:
|
||||
raise orm.except_orm(_('Error:'), _("Payment Type Code '%s' is not supported. The only Payment Type Code supported for SEPA Direct Debit are 'pain.008.001.02', 'pain.008.001.03' and 'pain.008.001.04'.") % pain_flavor)
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("Payment Type Code '%s' is not supported. The only "
|
||||
"Payment Type Code supported for SEPA Direct Debit "
|
||||
"are 'pain.008.001.02', 'pain.008.001.03' and "
|
||||
"'pain.008.001.04'.") % pain_flavor)
|
||||
|
||||
gen_args = {
|
||||
'bic_xml_tag': bic_xml_tag,
|
||||
'name_maxsize': name_maxsize,
|
||||
'convert_to_ascii': convert_to_ascii,
|
||||
'pain_flavor': pain_flavor,
|
||||
'sepa_export': sepa_export,
|
||||
'file_obj': self.pool['banking.export.sdd'],
|
||||
'pain_xsd_file':
|
||||
'account_banking_sepa_direct_debit/data/%s.xsd' % pain_flavor,
|
||||
}
|
||||
|
||||
pain_ns = {
|
||||
@@ -143,13 +159,13 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
None: 'urn:iso:std:iso:20022:tech:xsd:%s' % pain_flavor,
|
||||
}
|
||||
|
||||
root = etree.Element('Document', nsmap=pain_ns)
|
||||
pain_root = etree.SubElement(root, root_xml_tag)
|
||||
xml_root = etree.Element('Document', nsmap=pain_ns)
|
||||
pain_root = etree.SubElement(xml_root, root_xml_tag)
|
||||
|
||||
# A. Group header
|
||||
group_header_1_0, nb_of_transactions_1_6, control_sum_1_7 = \
|
||||
self.generate_group_header_block(
|
||||
cr, uid, pain_root, sepa_export, gen_args, context=context)
|
||||
self.generate_group_header_block(
|
||||
cr, uid, pain_root, gen_args, context=context)
|
||||
|
||||
transactions_count_1_6 = 0
|
||||
total_amount = 0.0
|
||||
@@ -174,13 +190,15 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
if not line.sdd_mandate_id:
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("Missing SEPA Direct Debit mandate on the payment line with partner '%s' and Invoice ref '%s'.")
|
||||
_("Missing SEPA Direct Debit mandate on the payment "
|
||||
"line with partner '%s' and Invoice ref '%s'.")
|
||||
% (line.partner_id.name,
|
||||
line.ml_inv_ref.number))
|
||||
if line.sdd_mandate_id.state != 'valid':
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("The SEPA Direct Debit mandate with reference '%s' for partner '%s' has expired.")
|
||||
_("The SEPA Direct Debit mandate with reference '%s' "
|
||||
"for partner '%s' has expired.")
|
||||
% (line.sdd_mandate_id.unique_mandate_reference,
|
||||
line.sdd_mandate_id.partner_id.name))
|
||||
if line.sdd_mandate_id.type == 'oneoff':
|
||||
@@ -189,7 +207,10 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
else:
|
||||
raise orm.except_orm(
|
||||
_('Error:'),
|
||||
_("The mandate with reference '%s' for partner '%s' has type set to 'One-Off' and it has a last debit date set to '%s', so we can't use it.")
|
||||
_("The mandate with reference '%s' for partner "
|
||||
"'%s' has type set to 'One-Off' and it has a "
|
||||
"last debit date set to '%s', so we can't use "
|
||||
"it.")
|
||||
% (line.sdd_mandate_id.unique_mandate_reference,
|
||||
line.sdd_mandate_id.partner_id.name,
|
||||
line.sdd_mandate_id.last_debit_date))
|
||||
@@ -199,7 +220,8 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
'first': 'FRST',
|
||||
'final': 'FNAL',
|
||||
}
|
||||
seq_type_label = line.sdd_mandate_id.recurrent_sequence_type
|
||||
seq_type_label = \
|
||||
line.sdd_mandate_id.recurrent_sequence_type
|
||||
assert seq_type_label is not False
|
||||
seq_type = seq_type_map[seq_type_label]
|
||||
|
||||
@@ -214,22 +236,26 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
cr, uid, line.id,
|
||||
{'date': requested_date}, context=context)
|
||||
|
||||
for (requested_date, priority, sequence_type), lines in lines_per_group.items():
|
||||
for (requested_date, priority, sequence_type), lines in \
|
||||
lines_per_group.items():
|
||||
# B. Payment info
|
||||
payment_info_2_0, nb_of_transactions_2_4, control_sum_2_5 = \
|
||||
self.generate_start_payment_info_block(
|
||||
cr, uid, pain_root, sepa_export,
|
||||
"sepa_export.payment_order_ids[0].reference + '-' + sequence_type + '-' + requested_date.replace('-', '') + '-' + priority",
|
||||
priority, 'CORE', sequence_type, requested_date, {
|
||||
'sepa_export': sepa_export,
|
||||
'sequence_type': sequence_type,
|
||||
'priority': priority,
|
||||
'requested_date': requested_date,
|
||||
}, gen_args, context=context)
|
||||
self.generate_start_payment_info_block(
|
||||
cr, uid, pain_root,
|
||||
"sepa_export.payment_order_ids[0].reference + '-' + "
|
||||
"sequence_type + '-' + requested_date.replace('-', '') "
|
||||
"+ '-' + priority",
|
||||
priority, 'CORE', sequence_type, requested_date, {
|
||||
'sepa_export': sepa_export,
|
||||
'sequence_type': sequence_type,
|
||||
'priority': priority,
|
||||
'requested_date': requested_date,
|
||||
}, gen_args, context=context)
|
||||
|
||||
self.generate_party_block(
|
||||
cr, uid, payment_info_2_0, 'Cdtr', 'B',
|
||||
'sepa_export.payment_order_ids[0].mode.bank_id.partner_id.name',
|
||||
'sepa_export.payment_order_ids[0].mode.bank_id.partner_id.'
|
||||
'name',
|
||||
'sepa_export.payment_order_ids[0].mode.bank_id.acc_number',
|
||||
'sepa_export.payment_order_ids[0].mode.bank_id.bank.bic',
|
||||
{'sepa_export': sepa_export},
|
||||
@@ -242,7 +268,8 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
payment_info_2_0, 'CdtrSchmeId')
|
||||
self.generate_creditor_scheme_identification(
|
||||
cr, uid, creditor_scheme_identification_2_27,
|
||||
'sepa_export.payment_order_ids[0].company_id.sepa_creditor_identifier',
|
||||
'sepa_export.payment_order_ids[0].company_id.'
|
||||
'sepa_creditor_identifier',
|
||||
'SEPA Creditor Identifier', {'sepa_export': sepa_export},
|
||||
'SEPA', gen_args, context=context)
|
||||
|
||||
@@ -340,7 +367,8 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
ori_mandate_identification_2_52.text = \
|
||||
self._prepare_field(
|
||||
cr, uid, 'Original Mandate Identification',
|
||||
'line.sdd_mandate_id.original_mandate_identification',
|
||||
'line.sdd_mandate_id.'
|
||||
'original_mandate_identification',
|
||||
{'line': line},
|
||||
gen_args=gen_args,
|
||||
context=context)
|
||||
@@ -348,7 +376,8 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
amendment_info_details_2_51, 'OrgnlCdtrSchmeId')
|
||||
self.generate_creditor_scheme_identification(
|
||||
cr, uid, ori_creditor_scheme_id_2_53,
|
||||
'sepa_export.payment_order_ids[0].company_id.original_creditor_identifier',
|
||||
'sepa_export.payment_order_ids[0].company_id.'
|
||||
'original_creditor_identifier',
|
||||
'Original Creditor Identifier',
|
||||
{'sepa_export': sepa_export},
|
||||
'SEPA', gen_args, context=context)
|
||||
@@ -369,38 +398,9 @@ class banking_export_sdd_wizard(orm.TransientModel):
|
||||
nb_of_transactions_1_6.text = str(transactions_count_1_6)
|
||||
control_sum_1_7.text = '%.2f' % amount_control_sum_1_7
|
||||
|
||||
xml_string = etree.tostring(
|
||||
root, pretty_print=True, encoding='UTF-8', xml_declaration=True)
|
||||
_logger.debug(
|
||||
"Generated SDD XML file in format %s below" % pain_flavor)
|
||||
_logger.debug(xml_string)
|
||||
pain_xsd_file = \
|
||||
'account_banking_sepa_direct_debit/data/%s.xsd' % pain_flavor
|
||||
self._validate_xml(cr, uid, xml_string, pain_xsd_file)
|
||||
|
||||
# CREATE the banking.export.sepa record
|
||||
file_id = self.pool.get('banking.export.sdd').create(
|
||||
cr, uid, self._prepare_export_sepa(
|
||||
cr, uid, sepa_export, total_amount, transactions_count_1_6,
|
||||
xml_string, gen_args, context=context),
|
||||
context=context)
|
||||
|
||||
self.write(
|
||||
cr, uid, ids, {
|
||||
'file_id': file_id,
|
||||
'state': 'finish',
|
||||
}, context=context)
|
||||
|
||||
action = {
|
||||
'name': 'SEPA Direct Debit File',
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form,tree',
|
||||
'res_model': self._name,
|
||||
'res_id': ids[0],
|
||||
'target': 'new',
|
||||
}
|
||||
return action
|
||||
return self.finalize_sepa_file_creation(
|
||||
cr, uid, ids, xml_root, total_amount, transactions_count_1_6,
|
||||
gen_args, context=context)
|
||||
|
||||
def cancel_sepa(self, cr, uid, ids, context=None):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user