← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/768918

Title:
  error in evaluating view domain

Status in OpenERP Web Client:
  New

Bug description:
  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


Follow ups

References