|
@ -0,0 +1,22 @@ |
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
|
|
<odoo> |
|
|
|
|
|
|
|
|
|
|
|
<record id="user_to_portal_action_server" model="ir.actions.server"> |
|
|
|
|
|
<field name="name">Set user to portal</field> |
|
|
|
|
|
<field name="model_id" ref="base.model_res_users" /> |
|
|
|
|
|
<field name="binding_model_id" ref="base.model_res_users" /> |
|
|
|
|
|
<field name="groups_id" eval="[(6, 0, [ref('base.group_erp_manager')])]" /> |
|
|
|
|
|
<field name="state">code</field> |
|
|
|
|
|
<field name="code">records.write({'groups_id': [(6, 0, [env.ref('base.group_portal').id])]})</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="user_to_internal_action_server" model="ir.actions.server"> |
|
|
|
|
|
<field name="name">Set user to internal</field> |
|
|
|
|
|
<field name="model_id" ref="base.model_res_users" /> |
|
|
|
|
|
<field name="binding_model_id" ref="base.model_res_users" /> |
|
|
|
|
|
<field name="groups_id" eval="[(6, 0, [ref('base.group_erp_manager')])]" /> |
|
|
|
|
|
<field name="state">code</field> |
|
|
|
|
|
<field name="code">records.write({'groups_id': [(6, 0, [env.ref('base.group_user').id])]})</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
</odoo> |