[FIX] Change computation of bank-name for IBAN.

This commit is contained in:
Ronald Portier (Therp BV)
2015-05-17 20:07:03 +02:00
parent 767457939f
commit 21afcffa59
2 changed files with 16 additions and 1 deletions

View File

@@ -23,7 +23,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Account Banking',
'version': '0.5',
@@ -37,6 +36,7 @@
'data': [
'security/ir.model.access.csv',
'data/account_banking_data.xml',
'data/iban_simple_name.xml',
'wizard/bank_import_view.xml',
'account_banking_view.xml',
'wizard/banking_transaction_wizard.xml',

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Simplify template for IBAN bank name. Bank itself is part of IBAN
and BIC is no longer required.
Function write trick to handle noupdate. -->
<function model="res.partner.bank.type" name="write">
<value eval="[ref('base_iban.bank_iban')]" />
<value eval="{'format_layout': 'IBAN %(acc_number)s'}" />
</function>
</data>
</openerp>