Merge pull request #166 from NL66278/7.0_simple_iban_name_therp

[FIX] Change computation of bank-name for IBAN.
This commit is contained in:
Pedro M. Baeza
2016-03-02 10:46:53 +01:00
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>