Action returned from Python: if view_mode is 'tree', no record is displayed

Bug #923805 reported by Francois Degrave
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Hi!

When an action is returned from a python method with a "tree" view mode, the view is loaded but no record is displayed. I tested in GTK and it works OK.

Related branches

Revision history for this message
Francois Degrave (fde-be) wrote :

It works in last revision but it is *extremely* slow and heavy (my computer fan spins like crazy) with many records, compared to the same action in DB fired from a menu item.

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

> When an action is returned from a python method with a "tree" view mode

Tree view mode (a list) or tree view type (a tree)? (just to be sure I understand what you mean)

Do you have an example in standard addons?

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Francois Degrave (fde-be) wrote :

Tree view *mode*. Unfortunately I can't seem to find any example in standard addons :-/

Changed in openerp-web:
status: Incomplete → New
Changed in openerp-web:
status: New → In Progress
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Tried reproducing, no issue there: added a button@type=object to a view, calling into a handler method whose body is just the following:

    return {
            'type': 'ir.actions.act_window',
            'view_mode': 'tree',
            'res_model': some_model
    }

the list opens rapidly and without issues.

Don't hesitate reopening the bug or opening a new one with more information or a repro case (a minimal openerp module exposing the issue for instance), but for now I'm closing it as invalid as what you describe seems to work with no issue.

Changed in openerp-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → nobody
status: In Progress → Invalid
Revision history for this message
Francois Degrave (fde-be) wrote :

Still same problem. Are you sure you tried with enough records? I have 29000 of them... With the Python action, it is still as slow as possible, and half the time it even results in freezing Chrome. Still no problem with the regular action.

Changed in openerp-web:
status: Invalid → New
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Ah yes, there's no default limit in that case which could be a bit of an issue when the records count is big.

Changed in openerp-web:
status: New → In Progress
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

listview limits handling reworked in trunk revision <email address hidden> problem should be fixed (or at least significantly improved upon)

Changed in openerp-web:
status: In Progress → Fix Released
Revision history for this message
Francois Degrave (fde-be) wrote :

Yes indeed, this is much better :-)

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.