Add falsy version check in migration file and removed useless security lines

This commit is contained in:
Cyril Sester
2014-09-18 09:49:16 +02:00
parent c6c15915f7
commit 6273cf300b
3 changed files with 3 additions and 20 deletions

View File

@@ -51,7 +51,6 @@
Module to export direct debit payment orders in SEPA XML file format.
SEPA PAIN (PAyment INitiation) is the new european standard for
<<<<<<< HEAD
Customer-to-Bank payment instructions.
This module implements SEPA Direct Debit (SDD), more specifically PAIN
@@ -68,23 +67,6 @@ cf https://www.github.com/OCA/banking-addons
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com>
for any help or question about this module.
=======
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.
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.
This module uses the framework provided by the banking addons,
cf https://launchpad.net/banking-addons
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com>
for any help or question about this module.
>>>>>>> Refactoring to get a generic mandate
''',
'active': False,
'installable': True,

View File

@@ -32,6 +32,9 @@ __name__ = "account.banking.sepa.direct_debit:: Move sdd_mandate data to " \
def migrate(cr, installed_version):
if not installed_version:
return
query = "INSERT INTO account_banking_mandate " \
"SELECT id, create_uid, create_date, write_date, write_uid, " \
"partner_bank_id, last_debit_date, scan, company_id, state, " \

View File

@@ -1,4 +1,2 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_banking_export_sdd","Full access on banking.export.sdd","model_banking_export_sdd","account_payment.group_account_payment",1,1,1,1
"access_sdd_mandate","Full access on sdd.mandate","model_account_banking_mandate","account_payment.group_account_payment",1,1,1,1
"access_sdd_mandate_read","Read access on sdd.mandate","model_account_banking_mandate","base.group_user",1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_banking_export_sdd Full access on banking.export.sdd model_banking_export_sdd account_payment.group_account_payment 1 1 1 1
access_sdd_mandate Full access on sdd.mandate model_account_banking_mandate account_payment.group_account_payment 1 1 1 1
access_sdd_mandate_read Read access on sdd.mandate model_account_banking_mandate base.group_user 1 0 0 0