You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

81 lines
3.7 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Create approval request information of user -->
<record id="res_user_approve_view_tree" model="ir.ui.view">
<field name="name">res.users.approve.view.tree</field>
<field name="model">res.users.approve</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="email"/>
<field name="password"/>
</tree>
</field>
</record>
<!-- Res users approve model form view-->
<record id="res_user_approve_view_form" model="ir.ui.view">
<field name="name">res.users.approve.view.form</field>
<field name="model">res.users.approve</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<form string="Form">
<header>
<button name="action_approve_login" type="object"
attrs="{'invisible': [('is_hide_button', '=', True)]}"
class="oe_highlight" string="Approve Login"/>
<button name="action_reject_login" type="object"
attrs="{'invisible': [('is_hide_button', '=', True)]}"
class="oe_highlight" string="Reject Login"/>
</header>
<sheet>
<widget name="web_ribbon" title="APPROVED"
bg_color="bg-success"
attrs="{'invisible': [('is_for_approval_menu', '=', False)]}"/>
<widget name="web_ribbon" title="Rejected"
bg_color="bg-danger"
attrs="{'invisible': [('is_reject', '=', False)]}"/>
<group>
<group>
<field name="is_for_approval_menu" invisible="1"/>
<field name="is_hide_button" invisible="1"/>
<field name="is_reject" invisible="1"/>
</group>
<group>
<field name="name"/>
</group>
<group>
<field name="email" readonly="1"/>
</group>
<group>
<field name="password" readonly="1"/>
</group>
</group>
<notebook>
<page string='Documents'>
<field name="attachment_ids" readonly="1">
<tree>
<field name="attachments"
options="{'no_quick_create': True,'size': [600, 600]}"
widget="image"
class="oe_avatar"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Res users approve action-->
<record id="res_users_approve_action" model="ir.actions.act_window">
<field name="name">Portal Approval</field>
<field name="res_model">res.users.approve</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="res_user_approve_view_tree"/>
</record>
<!-- Res users approve menu-->
<menuitem id="res_users_approve_menu" parent="base.menu_users"
action="res_users_approve_action"/>
</odoo>