[IMP] module name, base_iban_dependency and migration of manual_bank_transfer

This commit is contained in:
Stéphane Bidoul
2013-09-11 23:04:40 +02:00
parent 1d9d910bc1
commit f3c40ef0c6
2 changed files with 10 additions and 1 deletions

View File

@@ -24,7 +24,7 @@
##############################################################################
{
'name': 'Account Banking - Payments',
'name': 'Account Banking - Payments Export Infrastructure',
'version': '0.1.164',
'license': 'AGPL-3',
'author': 'Banking addons community',
@@ -32,6 +32,7 @@
'category': 'Banking addons',
'depends': [
'account_payment',
'base_iban', # for manual_bank_tranfer
],
'conflicts': [
# lp:account-payment/account_payment_extension also adds

View File

@@ -52,3 +52,11 @@ class payment_mode_type(orm.Model):
domain=[('osv_memory', '=', True)],
),
}
def _auto_init(self, cr, context=None):
super(payment_mode_type, self)._auto_init(cr, context=context)
# migrate xmlid from manual_bank_transfer to avoid dependency on account_banking
cr.execute("""UPDATE ir_model_data SET module='account_banking_payment_export'
WHERE module='account_banking' AND
name='manual_bank_tranfer' AND
model='payment.mode.type'""")