openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #13821
[Bug 1016690] Re: [6.1 stable] Cannot create a bank account
Quentin,
I confirm the bug but this does not happen on base+account modules.
Looking at your video, its more clear that you are using l10n_fr_rib
module.
This module is altering the manatoriness of the acc_number to be False.
Look at the revision: http://bazaar.launchpad.net/~openerp/openobject-
addons/6.1/revision/6427.1.1
Hence, the possible solutions could be:
1. Setting the field back to required True.
2. Point 1 could be said as wrong because the rib module does not need acc_number anymore.
3. However, altering the not null constraint on 'base' field is not to advisable although the RIB module does not need it.
4. Set a default value on acc_number and hide it from the view if this helps. But again, point 3 would block us.
5. Override _prepare_name() and replace acc_number by rib.
6. But again, for 'Normal Account Type', the acc_number should be available for entry.
Hence,I recommend :
Point 5 and point 6(use attrs).
Lets hear for the voice of community and decision can be made later on.
Thanks,
Serpent Consulting Services.
** Summary changed:
- [6.1 stable] Cannot create a bank account
+ [6.1 stable] l10n_fr_rib : Cannot create a bank account!
--
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):
Confirmed
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