← Back to team overview

openerp-dev-web team mailing list archive

[Bug 768918] Re: error in evaluating view domain

 

Thanks for reporting!...

** Changed in: openobject-client-web
   Importance: Undecided => Low

** Changed in: openobject-client-web
       Status: New => Confirmed

** Changed in: openobject-client-web
     Assignee: (unassigned) => OpenERP SA's Web Client R&D (openerp-dev-web)

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

Title:
  error in evaluating view domain

Status in OpenERP Web Client:
  Confirmed

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