← Back to team overview

openerp-india team mailing list archive

[Bug 1016690] Re: [6.1 stable] l10n_fr_rib : Cannot create a bank account!

 

As explained previously by Serpent CS, l10n_fr_rib removes the required attribute on the acc_number field, which kind of breaks the encapsulation principle. This should be changed eventually, but probably requires deeper changes that would not be acceptable in stable versions.
In the meantime, a quick fix is to be more lenient with missing acc_number values in the core addons.

The quick fix was applied in addons 7.0 at revision 8635 revision-id:
odo@xxxxxxxxxxx-20130131133011-bfzfzmjh049tg3kd.

Thanks for reporting!

Note: closing the bug, the OPW team can still backport the fix in 6.1
for any customer requesting it.

** Changed in: openobject-addons
    Milestone: None => 7.0

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1016690

Title:
  [6.1 stable] l10n_fr_rib : Cannot create a bank account!

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  [Stable version on 22, June 2012 from openerp.com]

  I cannot create a bank account from the configuration menu.

  I went to 'Configuration' menu, on the dashboard, I click on 'Configure Bank account'. Fill the bank account form and click to save. I had this traceback :
  Traceback (most recent call last):
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/addons/base_iban/base_iban.py", line 88, in create
      return super(res_partner_bank, self).create(cr, uid, vals, context)
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/addons/account/account_bank.py", line 34, in create
      self.post_write(cr, uid, [result], context=context)
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/addons/account/account_bank.py", line 70, in post_write
      name = self._prepare_name(bank)
    File "/home/quentin/Development/OpenERP/Stable/6.1/openerp-server/openerp/addons/account/account_bank.py", line 44, in _prepare_name
      return (bank.bank_name or '') + ' ' + bank.acc_number
  TypeError: coercing to Unicode: need string or buffer, bool found
  2012-06-22 18:53:27,928 6120 ERROR ? openerp.netsvc: coercing to Unicode: need string or buffer, bool found

  Please see the attached screencast for more explanations.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1016690/+subscriptions


References