c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #37289
[Bug 889734] Re: Action specifies a searchview_id by providing a tree view id in purchase board
Well apparently the issue is not in the server, it does not perform any
check based on the view type asked for, but it does not fallback
anywhere either.
** Changed in: openobject-server
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
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):
Fix Released
Status in OpenERP Server:
Invalid
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','>',time.strftime('%Y-01-01 00:00:00')),('date_order','<',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','>',time.strftime('%Y-01-01 00:00:00')),('date_order','<',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
References