act_window "view" parameter prohibits display of data

Asked by Ferdinand

Trying to add one of these 3 to the delivery module

without the "view" line the correct picking is displayed, but not with the correct view

<!-- FIXME these 3 do call the correct form, but do not call the data content sale_id
        <act_window
            domain="[('sale_id', '=', active_id),('type','=','out')]"
            context="{'contact_display': 'partner'}"
            view="stock.view_picking_out_form"
            id="act_sale_order_2_stock_picking_carrier 0"
            name="test Outgoing Products carrier 0"
            res_model="stock.picking"
            src_model="sale.order"/>
        <act_window
            domain="[('sale_id', '=', active_id),('type','=','out')]"
            context="{'contact_display': 'partner'}"
            view="view_picking_withcarrier_out_form"
            id="act_sale_order_2_stock_picking_carrier"
            name="test Outgoing Products carrier 1"
            res_model="stock.picking"
            src_model="sale.order"/>
        <act_window
            domain="[('sale_id', '=', active_id),('type','=','out')]"
            context="{'contact_display': 'partner'}"
            view="stock.view_picking_out_form"
            id="act_sale_order_2_stock_picking_carrier2"
            name="test Outgoing Products carrier 2"
            res_model="stock.picking"
            src_model="sale.order"/>

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) said :
#1

Hello,

you can change the action as like
 <act_window
            domain="[('purchase_id', '=', active_id)]"
            id="act_purchase_order_2_stock_picking"
            name="Packing"
            res_model="stock.picking"
            src_model="purchase.order"/>

TO

<act_window
            domain="[('purchase_id', '=', active_id)]"
            id="stock.action_picking_tree4"
            name="Packing"
            res_model="stock.picking"
            src_model="purchase.order"/>

in purchase/stock.py

and it will open the picking view for the type-in.

Can you help with this problem?

Provide an answer of your own, or ask Ferdinand for more information if necessary.

To post a message you must log in.