Hello i'm currently using odoo 14.
What i want to do is to create a window action with a dynamic record ID "res_id", and this last i want it to be the current user "uid".
<record model="ir.actions.act_window" id="action_window_id">
<field name="name">my_module.model.action</field>
<field name="res_model">model.model_one</field>
<field name="view_mode">form</field>
<field name="res_id" eval="THE CURRENT UID HERE" />
</record>
i've tried "self.env.uid","obj()"... with no result.
do you have any idea about this !
Thank you very much.
Try Server Action: https://learnopenerp.blogspot.com/2020/01/odoo-server-action.html