mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] module name, base_iban_dependency and migration of manual_bank_transfer
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'""")
|
||||
|
||||
Reference in New Issue
Block a user