← Back to team overview

openerp-india team mailing list archive

[Bug 889734] Re: Action specifies a searchview_id by providing a tree view id in purchase board

 

** Summary changed:

- wrong horizontal width caculation opening purchases starting from dashboard
+ Action specifies a searchview_id by providing a tree view id in purchase board

** Also affects: openobject-server
   Importance: Undecided
       Status: New

** Changed in: openobject-server
       Status: New => Confirmed

** Description changed:

- opening "request for quotation" from dashboard the tree is much to wide
- and it is necessary to scroll horizontally
+ In purchase board, the following actions are specified:
  
- IMHO the width must be calculated the same  way as opening from the menu
- - no scrolling necessary
+     <record id="purchase_draft" model="ir.actions.act_window">
+             <field name="name">Request for Quotations</field>
+             <field name="type">ir.actions.act_window</field>
+             <field name="res_model">purchase.order</field>
+             <field name="view_type">form</field>
+             <field name="view_mode">tree,form</field>
+             <field name="domain">[('date_order','&gt;',time.strftime('%Y-01-01 00:00:00')),('date_order','&lt;',time.strftime('%Y-12-31 23:59:59')), ('state','=','draft')]</field>
+             <field name="search_view_id" ref="purchase.purchase_order_tree"/>
+         </record>
+         <record id="purchase_waiting" model="ir.actions.act_window">
+             <field name="name">Purchase Order Waiting Approval</field>
+             <field name="type">ir.actions.act_window</field>
+             <field name="res_model">purchase.order</field>
+             <field name="view_type">form</field>
+             <field name="view_mode">tree,form</field>
+             <field name="domain">[('date_order','&gt;',time.strftime('%Y-01-01 00:00:00')),('date_order','&lt;',time.strftime('%Y-12-31 23:59:59')), ('state','in',('wait','confirmed'))]</field>
+             <field name="search_view_id" ref="purchase.purchase_order_tree"/>
+         </record>
+ 
+ The view linked through search_view_id is an actual tree view, which is
+ not correct and will cause the wrong search view to be displayed in the
+ clients.
+ 
+ There also seems to be a server issue: instead of returning the
+ "default" search view for the model, it builds one from scratch.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/889734

Title:
  Action specifies a searchview_id by providing a tree view id in
  purchase board

Status in OpenERP Addons (modules):
  Confirmed
Status in OpenERP Server:
  Confirmed

Bug description:
  In purchase board, the following actions are specified:

      <record id="purchase_draft" model="ir.actions.act_window">
              <field name="name">Request for Quotations</field>
              <field name="type">ir.actions.act_window</field>
              <field name="res_model">purchase.order</field>
              <field name="view_type">form</field>
              <field name="view_mode">tree,form</field>
              <field name="domain">[('date_order','&gt;',time.strftime('%Y-01-01 00:00:00')),('date_order','&lt;',time.strftime('%Y-12-31 23:59:59')), ('state','=','draft')]</field>
              <field name="search_view_id" ref="purchase.purchase_order_tree"/>
          </record>
          <record id="purchase_waiting" model="ir.actions.act_window">
              <field name="name">Purchase Order Waiting Approval</field>
              <field name="type">ir.actions.act_window</field>
              <field name="res_model">purchase.order</field>
              <field name="view_type">form</field>
              <field name="view_mode">tree,form</field>
              <field name="domain">[('date_order','&gt;',time.strftime('%Y-01-01 00:00:00')),('date_order','&lt;',time.strftime('%Y-12-31 23:59:59')), ('state','in',('wait','confirmed'))]</field>
              <field name="search_view_id" ref="purchase.purchase_order_tree"/>
          </record>

  The view linked through search_view_id is an actual tree view, which
  is not correct and will cause the wrong search view to be displayed in
  the clients.

  There also seems to be a server issue: instead of returning the
  "default" search view for the model, it builds one from scratch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/889734/+subscriptions