ir.actions.actions ir.actions.actions
ir.actions.actions.tree ir.actions.actions ir.actions.actions.search ir.actions.actions Actions ir.actions.act_window ir.actions.actions form ir.actions.report.xml ir.actions.report.xml
ir.actions.report.xml.tree ir.actions.report.xml ir.actions.report.xml.search ir.actions.report.xml Reports ir.actions.act_window ir.actions.report.xml form ir.actions.windows.tree ir.actions.act_window ir.actions.windows.form ir.actions.act_window
ir.actions.windows.search ir.actions.act_window Window Actions ir.actions.act_window ir.actions.act_window form tree form Server Action ir.actions.server

Please set the Base Model before setting the action details.

Please set the Base Model before setting the action details.

If several child actions return an action, only the last one will be executed. This may happen when having server actions executing code that returns an action, or server actions returning a client action.

Help with Python expressions.

Various fields may use Python code or Python expressions. The following variables can be used:

  • self: ORM model of the record on which the action is triggered
  • object or obj: browse_record of the record on which the action is triggered
  • pool: ORM model pool (i.e. self.pool)
  • time: Python time module
  • cr: database cursor
  • uid: current user id
  • context: current context

Example of condition expression using Python

  • condition: True
  • condition: object.list_price > 5000

Example of python code

partner_name = obj.name + '_code' self.pool["res.partner"].create(cr, uid, {"name": partner_name}, context=context)

Dynamic expression builder

Please set the Base Model of the action to enable the dynamic expression buidler.

Find the ID of a record in the database

Server Actions ir.actions.server ir.actions.server.search ir.actions.server Server Actions ir.actions.act_window ir.actions.server form tree,form {'key':'server_action'} ir.actions.todo Config Wizard Steps