<field name="search_matches" nolabel="1" widget="many2many_list" context="{'new_id':id}">
<tree version="7.0" editable="bottom">
<field name="user_id"/>
<field name="stock_type"/>
<field name="structure_building"/>
<field name="property_vaastu"/>
<button string="Schedule/Log Call"
name="%(opportunity2phonecall_act)d"
type="action"/>
</tree>
</field>
when i click the button the context value is not passed to the wizard
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Use active_id instead id
Hi
Try this code
<field name="search_matches" nolabel="1" widget="many2many_list">
<tree version="7.0" editable="bottom">
<field name="user_id"/>
<field name="stock_type"/>
<field name="structure_building"/>
<field name="property_vaastu"/>
<button name="%(opportunity2phonecall_act)d" type="action" string="Schedule/Log Call" context="{'new_id': active_id}"/>
</tree>
</field>
Thank you people,
The error was in my .py code