[FIX] proper _auto_init return value

This commit is contained in:
Stéphane Bidoul
2013-09-25 10:51:06 +02:00
parent 6ad1370940
commit e8752d4677

View File

@@ -52,9 +52,10 @@ class payment_mode_type(orm.Model):
}
def _auto_init(self, cr, context=None):
super(payment_mode_type, self)._auto_init(cr, context=context)
r = 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'""")
return r