[Trunk/7.0]error message when displaying Bank Accounts (triggered e.g. by l10n_fr_rib)

Bug #1068822 reported by Quentin THEURET @Amaris
134
This bug affects 19 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

To reproduce :

1/ Install the l10n_fr_rib module
2/ Create a new partner (which is not a company)
3/ Enter a new bank account (RIB/IBAN)
4/ Save the partner
5/ Re-open the partner from the menu
6/ The message (sorry but it's in French in my situation) : "Error: QWeb2 - template['ListView.rows']: Runtime Error: Error: QWeb2 - template['ListView.row']: Runtime Error: Error: Champ state inconnu dans le domaine [["state","not in",["rib"]]]" − See attached pictures.

P.S : The list of the bank accounts of the partner is always empty and it's impossible to add a new bank account. I tried to fix the problem, but I didn't find the place where the domain [['state', 'not in', ['rib']]] is set.

Tags: maintenance
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Quentin,

Please provide one demo iban/rib configuration then we can check further.

Thank you!

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Quentin,

Today I have again checked this issue but due to not proper configuration of iban/rib I can't check it properly.

So would you please provide the whole steps of it.

Thank you!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Amit Parik (amit-parik) wrote :

Sorry for the inconvenience!!

I can produce this simple.
Install the l10n_fr_rib, Create normal back account

And try to open "Bank Account " menu faced the same error.

Thank you!

summary: - l10n_fr_rib and error message when opening a contact
+ l10n_fr_rib and error message when opening a Bank Account
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: Incomplete → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ajay Chauhan(OpenERP) (cha-tinyerp) wrote : Re: l10n_fr_rib and error message when opening a Bank Account

Hello,

 This issue has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1068822-cha with following details
    Revision no : 8295
    Revision id : <email address hidden>

Thanks,
Ajay Chauhan

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Bertrand Rétif (bretif) wrote :

Hello,

The is still the bug with v7.0
Do you knox when this fix will be merged into 7.0.x ?

Thanks for your help.
Bertrand

Revision history for this message
Nicolas JEUDY (njeudy) wrote :

Test on last 7.0 and trunk runbot version :

7.0 (Build 1452)
       server (4772)
       addons (8549)
       web (3691)

trunk (Build 1389)
           server (4760)
           addons (8494)
           web (3661)

Neither of them is working !
it prevents from opening customer view form either. (see vidéo: https://www.youtube.com/watch?v=K1RO7KRUMsI )

When will this fix be released ?

Revision history for this message
psyray (psyray) wrote :

Hi,

If you want to apply the fix before the official release :
- apply the diff to the bank_view file : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1068822-cha/+merge/139640/+preview-diff/+files/preview.diff
- update the db table by launching openerp-server with "-d your_db all" argument
- stop the server (kill process)
- restart normally

Works for me.
Hope this help

Revision history for this message
Yohann (prigent-yohann) wrote :

Could you merge this bug ASAP ? It is very annoying, my bank accounts are blocked. OpenERP is not usable with this bug.

Because of these 2 lines to merge, i have had to get back to 6.1...

Regards,

Revision history for this message
Guillaume Rembert (guillaume-rembert) wrote :

As was telling psyray, the fix is working:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1068822-cha/+merge/139640/+preview-diff/+files/preview.diff

The only correction to be done on his post is regarding to the database update command. Once you modified the file, you have to type:
openerp-server -d yourdatabase -u all

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The proposed fix was not actually correct - the real cause for the bug is not l10n_fr_rib but the base module itself (in server), and the error may well occur without l10n_fr_rib - you simply have to customize the display for your bank account types to include one of the fields from the bank account list view. l10n_fr_rib does just that for the 'acc_number' field, hence the error.

Project changed to 'server' to reflect this ; server fix applied in 7.0 server branch at revision 4815 (revision-id: <email address hidden>)

Thanks for your patience!

affects: openobject-addons → openobject-server
Changed in openobject-server:
milestone: none → 7.0
status: Fix Committed → Fix Released
summary: - l10n_fr_rib and error message when opening a Bank Account
+ error message when displaying Bank Accounts (triggered e.g. by
+ l10n_fr_rib)
Amit Parik (amit-parik)
summary: - error message when displaying Bank Accounts (triggered e.g. by
- l10n_fr_rib)
+ [Trunk/7.0]error message when displaying Bank Accounts (triggered e.g.
+ by l10n_fr_rib)
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Problem is still exists on trunk vesrion.

@odony : Would you please forword this patch on trunk.

Thank you!

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix was forward-ported to trunk at revision 4774 rev-id: <email address hidden>

In general there is no need to request the forward-port of any bugfix from 7.0 to trunk, as these are automatically done periodically.

Revision history for this message
Laurent Ghirardotti (laurent-ghirardotti) wrote :

Did this mean that my account on my.openerp.com will be patched ?
Because there is still the same error, even if I change the language in english :/

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

@Laurent: yes but this may require a manual operation on your database to actually make the fix effective. You can do it yourself by forcing an update of the "base" module in the interface. If you have any trouble with this operation please send an email to the online support team, they will gladly do it for you.

tags: added: maintenance
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The second part of this fix required a change in the inherited res.partner view of the account module, as it contains an inline version of the res.partner.bank list view. This part landed in addons 7.0 at revision 8753 (rev-id: <email address hidden>)

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello,

Problem is still occurs in latest trunk.

Thank you.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote : Re: [Bug 1068822] Re: [Trunk/7.0]error message when displaying Bank Accounts (triggered e.g. by l10n_fr_rib)

On 03/13/2013 09:59 AM, Twinkle Christian(OpenERP) wrote:
> Problem is still occurs in latest trunk.

That's normal, the fix was applied to 7.0. It will be ported to trunk along
with the next batch - this happens every few weeks usually.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.