← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 727712] Re: [6.0] - search views with date fields crash

 

we have defined this view - see commented "to_date"
activating this filed  works in GTK but crashes web

    <record id="chricar_tenant_filter" model="ir.ui.view">
      <field name="name">chricar.tenant.list.select</field>
      <field name="model">chricar.tenant</field>
      <field name="type">search</field>
      <field name="arch" type="xml">
        <search string="Tenants">
          <group col="10" colspan="4">
            <filter name="to_date" icon="terp-document-new" string="Current" domain="['|',('to_date','=',False),('to_date','&gt;=', time.strftime('%%Y-%%m-%%d')) ]" help="Current Tenants"/>
            <separator orientation="vertical"/>
            <filter name="limited" icon="terp-check" string="Limited" domain="[('limited','=',True)]"/>
            <filter name="unlimited" icon="terp-check" string="Unlimited" domain="[('limited','=',False)]"/>
            <filter name="empty" icon="terp-check" string="Empty" domain="[('partner_id' ,'in' , [255,364]), ('to_date' ,'=', False) ]"/>
            <separator orientation="vertical"/>
            <field name="location_id"/>
            <field name="top_id"/>
            <field name="partner_id"/>
            <!--
            <field name="to_date"/>
            -->
          </group>
          <newline/>
          <group expand="0" string="Group By..." colspan="4" col="2">
            <filter string="Location" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'location_id'}"/>
          </group>
        </search>
      </field>
    </record>

-- 
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/727712

Title:
  [6.0] - search views with date fields crash

Status in OpenERP Web Client:
  Incomplete

Bug description:
  in a custom form we added a date field to the search view.
  works with GTK
  crashes WEB



References