missing functionality for act_window

Bug #601480 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

To "Browse" from "Sale Order" to "Outgoing Products"

        <act_window
            domain="[('sale_id', '=', active_id),('type','=','out')]"
            view="stock.view_picking_out_tree"
            id="act_sale_order_2_stock_picking"
            name="Outgoing Products"
            res_model="stock.picking"
            src_model="sale.order"/>

which opens the tree view correctly

switching to form is not controllable as we can not define
view="stock.view_picking_out_form" anywhere

result - OpenERP opens a "random" form ( at least I do not think that something is evaluated to select specific forms)

workaround: (good to know !!)
in "Windows Action" define manually for this "Outgoing Products" resource (Source Object = sale.order) the same tree and form views as for the general "Outgoing Products" without source object

Revision history for this message
Ferdinand (office-chricar) wrote :

IMHO Brows must have exactly the same functionality as calling a form from the menu or in a workflow

Revision history for this message
Ferdinand (office-chricar) wrote :

t is mandatory to be able to navigate from sales orders to outgoing products (similar solution is already implemented for PO !!!)

this can be achieved by coding manually the views necessary similar to what is generated loading the stock/stock_view.xml

<menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_warehouse_mgmt" sequence="3"/>

I have added the necessary code for calling "Ourgoing Orders" from "Sales Orders" in
https://code.launchpad.net/~openerp-commiter/openobject-addons/chricar_trunk_stock_SoPo

but i am note able to define the 2 additional views which are necessary to open the outgoing views instead of "Picking"
see attached csv - second "Outgoing .."

I found a brute force solution here
stable_5.0-extra-addons/sales_server_action/sale_server_action_condition.xml

is this the only way to do this ?

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello DR Ferdinand,

In this situation you need to add one more attribute view_mode="tree,form,calendar,graph" in <act_window> tag which will open the all specified views correctly.

Thanks.

Changed in openobject-server:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.