[account][7.0][trunk] Bank/cash statements action views have the same sequence value '1'

Bug #1237310 reported by Mohammad Alhashash
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 3

Bug Description

In the file 'account/account_view.xml' the action views (ir.actions.act_window.view) for the model account.bank.statement uses the same sequence. This may randomize the order of bank/cash statement views (ex. show form view by default instead of list view)

By default, the views are shown in the correct order because they are inserted in that order when the module was first installed. But, later, when PostgreSQL autovacum kicks-in, it may change the physical order of data. The default order of data returned by postgresql is undefined.

I found this bug when the cash register menu started to show graph view by default instead of the list view.

To check if other views have the same problem, I used the following query:

select (select module||'.'|| name from ir_model_data where model='ir.actions.act_window' and res_id=act_window_id) model,
            sequence, count(*)
from ir_act_window_view
group by act_window_id, sequence
having count(*)>1
order by act_window_id, sequence;

Related branches

description: updated
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Amit Parik (amit-parik)
tags: added: invoicing
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Hi Mohammed,

I'm removing OCB-addons as an affected project for this bug as per project policy. Of course the bug affects ocb-addons/7.0 by definition as well as openobject-addons but we only want to track bugs that we fix in OCB-specific changes. Therefore, you should only add bugs to the project that you are going to propose a solution for.

Thanks,
Stefan.

no longer affects: ocb-addons/7.0
no longer affects: ocb-addons
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.