Monetary fields not supported in tree view

Bug #1156553 reported by Kevin Deldycke
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP R&D Web Team

Bug Description

Monetary fields doesn't seems to be supported in tree views.

On a form, the following XML produce a nice "10.00 €" string:

  <record id="edit_project1" model="ir.ui.view">
    <field name="name">project.project.form1</field>
    <field name="inherit_id" ref="project.edit_project"/>
    <field name="model">project.project</field>
    <field name="arch" type="xml">
      <field name="partner_id" position="after">
        <field name="budget" widget="monetary" options='{"currency_field" : "currency_id"}'/>
        <field name="currency_id" invisible="1"/>
      </field>
    </field>
  </record>

But on a tree view, the following XML only produce the "10" string:

  <record id="project.view_project" model="ir.ui.view">
    <field name="name">project.project.tree</field>
    <field name="model">project.project</field>
    <field name="arch" type="xml">
      <tree string="Projects">
        (...)
        <field name="budget" widget="monetary" options='{"currency_field" : "currency_id"}'/>
        <field name="currency_id" invisible="1"/>
        (...)
      </tree>
    </field>
  </record>

Here I expect the tree view to behave like the form and display "10.00 €".

This behavior was produced with code from 7.0 branches, server being at Bazaar revision 4897 and web module at revision 3804.

Changed in openerp-web:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
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.