← Back to team overview

openerp-dev-web team mailing list archive

[Bug 768918] [NEW] error in evaluating view domain

 

Devishree Brahmbhatt (OpenERP) (dbr-openerp) has assigned this bug to you for OpenERP Web Client:

Steps to reproduce: add an action to the menu containing a domain. When
the domain contains whitespace, it will lead to an error when evaluated
and the domain will be silently dropped. The gtk client is working
correctly.

<record id="action_msf_balance_lines" model="ir.actions.act_window">
            <field name="name">Balance Lines</field>
            <field name="res_model">account.move.line</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="msf_balance_tree" />
            <field name="domain">
                [('account_id.user_type.report_type','in',
                    ['asset','liability'])]</field>
            <field name="search_view_id" ref="msf_balance_search" />
            <field name="context">{'msf_raw_view':True}</field>
      </record>
      
The tree view is shown to the user withouth any error or warning displayed, however it will contain all records, instead of just the records that satisfy the domain criteria.

The reason this occurs is because the gtk client is stripping whitespace
from the domain-criteria before evaluating. This is not done in the web
client.

Error found in the 6.0 branch revision 4563, confirmed in latest
revision 4589

** Affects: openobject-client-web
     Importance: Low
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

-- 
error in evaluating view domain
https://bugs.launchpad.net/bugs/768918
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.