From 6273cf300b7552e97d0f77f349f516ac10d7cd68 Mon Sep 17 00:00:00 2001 From: Cyril Sester Date: Thu, 18 Sep 2014 09:49:16 +0200 Subject: [PATCH] Add falsy version check in migration file and removed useless security lines --- .../__openerp__.py | 18 ------------------ .../migrations/0.2/post-consolidation.py | 3 +++ .../security/ir.model.access.csv | 2 -- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/account_banking_sepa_direct_debit/__openerp__.py b/account_banking_sepa_direct_debit/__openerp__.py index 30148fb1d..2f12e4d1d 100644 --- a/account_banking_sepa_direct_debit/__openerp__.py +++ b/account_banking_sepa_direct_debit/__openerp__.py @@ -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 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 - for any help or question about this module. ->>>>>>> Refactoring to get a generic mandate ''', 'active': False, 'installable': True, diff --git a/account_banking_sepa_direct_debit/migrations/0.2/post-consolidation.py b/account_banking_sepa_direct_debit/migrations/0.2/post-consolidation.py index 2e93953dd..b761728d3 100644 --- a/account_banking_sepa_direct_debit/migrations/0.2/post-consolidation.py +++ b/account_banking_sepa_direct_debit/migrations/0.2/post-consolidation.py @@ -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, " \ diff --git a/account_banking_sepa_direct_debit/security/ir.model.access.csv b/account_banking_sepa_direct_debit/security/ir.model.access.csv index 307bdfb65..0cd579511 100644 --- a/account_banking_sepa_direct_debit/security/ir.model.access.csv +++ b/account_banking_sepa_direct_debit/security/ir.model.access.csv @@ -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