Last active
October 19, 2021 06:22
-
-
Save ilyasProgrammer/9c9d9096bfdb97c9e51dfb99d186f586 to your computer and use it in GitHub Desktop.
To call a wizard from Action menu and apply it to a record set just need to set binding_view_types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<record id="action_view_link_mo_to_task" model="ir.actions.act_window"> | |
<field name="name">Link MO to Task</field> | |
<field name="type">ir.actions.act_window</field> | |
<field name="res_model">link.mo.to.task</field> | |
<field name="view_mode">form</field> | |
<field name="target">new</field> | |
<field name="binding_model_id" ref="mrp.model_mrp_production"/> | |
<field name="binding_view_types">list</field> | |
</record> | |
mos = self.env['mrp.production'].browse(self._context.get('active_ids', [])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment