Action Window called from wizard does not translated

Bug #667166 reported by Jacara
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

Bug Description

'ir.actions.act_window' called from wizard does not translated.

addons/account/wizard/account_journal_move.py line 166

return {
            'name': name,
            'view_type': 'form',
            'view_mode': 'tree,graph,form',
            'res_model': 'account.move.line',
            'view_id': False,
            'context': "{'visible_id':%s, 'search_default_journal_id':%d, 'search_default_period_id':%d}" % (journal_id, journal_id, period_id),
            'type': 'ir.actions.act_window',
            'search_view_id': res_id
        }

The opened "Journal Items" display has not translated. But select one of them and go to form view translation seems OK.

Related branches

Revision history for this message
Jacara (baskhuujacara) wrote :

Screen shots

1. Tree view does not translated.

2. Form view translated properly.

Changed in openobject-addons:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

There are 2 problems here:
- in the fields_view_get of account_move_journal.py some strings are not translated with _(), this will be fixed
- in the fields_view_get of account.move.line, which takes the definition of columns from the Journal itself, the (user-defined) field names are not translatable. We should see if these names should be translatable, or if we should force the (translated) name of the original field. Some other minor parts of the view need translation too (sums, etc.)

Revision history for this message
Vo Minh Thu (thu) wrote :

The two underlying problems are resolved:

- The missing _() have been added.
- The column names in the tree view use the original field names (which are properly translated) instead of the user-defined names.

Changed in openobject-addons:
milestone: none → 6.0-rc2
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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