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.
 
 
 
 
 

32 lines
1.6 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Window Action to show Outgoing Requests from requests.document module-->
<record id="outgoing_request_document_action" model="ir.actions.act_window">
<field name="name">Outgoing Requests</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">request.document</field>
<field name="domain">[('requested_by','=', uid)]</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a Request for document from user
</p>
</field>
</record>
<!-- Document Request tree view -->
<record id="outgoing_request_document_view_tree" model="ir.ui.view">
<field name="name">request.document.view.tree</field>
<field name="model">request.document</field>
<field name="arch" type="xml">
<tree>
<field name="needed_doc" string="Request"/>
<field name="requested_by" string="Requested by" widget="many2one_avatar_user"/>
<field name="user_id" string="Requested to" widget="many2one_avatar_user"/>
<field name="create_date" string="Requested Date"/>
<field name="workspace_id" string="Workspace"/>
<field name="needed_doc" string="Document"/>
<field name="state" string="State" widget="badge" decoration-warning="state == 'requested'" decoration-danger="state == 'rejected'" decoration-success="state == 'accepted'"/>
</tree>
</field>
</record>
</odoo>