Helloooo guys!
I want my new link « Receipts - PT » leads to : (how to add active_id=1????)
http://24.226.196.31:8069/web?debug=#page=0&limit=80&view_type=list&model=stock.picking&action=316&active_id=1
For the moment, my new link « Receipts - PT » leads to :
http://24.226.196.31:8069/web?debug=#page=0&limit=80&view_type=list&model=stock.picking&action=316
I ger error :
Odoo Client Error
Error: NameError: name 'active_id' is not defined
My import :
<record id="report_lapagept.action_receipts" model="ir.actions.act_window">
<field name="name">Receipts - PT action</field>
<field name="res_model">stock.picking</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,calendar</field>
<field name="domain"></field>
<field name="context">{
'search_default_picking_type_id': [active_id],
'default_picking_type_id': active_id,
'contact_display': 'partner_address',
}
</field>
<field name="search_view_id" ref="stock.view_picking_internal_search"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a stock operation.
</p>
<p>
ZZZZZZZZZZZZZZZZMost operations are prepared automatically by Odoo according
to your preconfigured logistics rules, but you can also record
manual stock movements.
</p>
</field>
</record>
<menuitem id="report_lapagept.menu_receipts" name="Receipts - PT" parent="stock.menu_stock_warehouse_mgmt" action="report_lapagept.action_receipts" sequence="1" />