79 lines
3.2 KiB
XML
79 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- list View -->
|
|
<record id="view_recruitment_attachments_list" model="ir.ui.view">
|
|
<field name="name">recruitment.attachments.list</field>
|
|
<field name="model">recruitment.attachments</field>
|
|
<field name="arch" type="xml">
|
|
<list editable="bottom">
|
|
<field name="name"/>
|
|
<field name="attachment_type"/>
|
|
<field name="is_default"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Form View -->
|
|
<record id="view_recruitment_attachments_form" model="ir.ui.view">
|
|
<field name="name">recruitment.attachments.form</field>
|
|
<field name="model">recruitment.attachments</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="is_default"/>
|
|
</group>
|
|
<group>
|
|
<field name="employee_recruitment_attachments" widget="one2many_list">
|
|
<list editable="top">
|
|
<field name="name"/>
|
|
<field name="applicant_id"/>
|
|
<field name="file" widget="binary" filename="name" options="{'preview_image': 'file','download': true}" />
|
|
</list>
|
|
</field>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="hr_view_employee_form_inherit" model="ir.ui.view">
|
|
<field name="name">hr.view.employee.form.inherit</field>
|
|
<field name="model">hr.employee</field>
|
|
<field name="inherit_id" ref="hr.view_employee_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//notebook" position="inside">
|
|
<page name="Attachments " id="attachment_ids_page">
|
|
<group>
|
|
<field name="employee_attachment_ids">
|
|
<list editable="bottom">
|
|
<field name="recruitment_attachment_id"/>
|
|
<field name="name"/>
|
|
<field name="recruitment_attachment_type"/>
|
|
<field name="file" widget="binary" options="{'download':true}"/>
|
|
</list>
|
|
</field>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Action -->
|
|
<record id="action_recruitment_attachments" model="ir.actions.act_window">
|
|
<field name="name">Recruitment Attachments</field>
|
|
<field name="res_model">recruitment.attachments</field>
|
|
<field name="view_mode">list</field>
|
|
</record>
|
|
|
|
<!-- Menu Item -->
|
|
<menuitem
|
|
id="menu_recruitment_attachments"
|
|
name="Attachments"
|
|
parent="hr_recruitment.menu_hr_recruitment_config_applications"
|
|
action="action_recruitment_attachments"
|
|
groups="base.group_no_one"
|
|
sequence="33"/>
|
|
|
|
|
|
</odoo> |