mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 07:32:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<!--
|
||||
Copyright 2018 Brainbean Apps (https://brainbeanapps.com)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<record id="hr_employee_view_form" model="ir.ui.view">
|
||||
<field name="name">hr.employee.view.form.inherit.document</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr.view_employee_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button
|
||||
class="oe_stat_button"
|
||||
icon="fa-book"
|
||||
name="action_get_attachment_tree_view"
|
||||
type="object"
|
||||
groups="hr.group_hr_user"
|
||||
>
|
||||
<field name="document_count" widget="statinfo" string="Documents" />
|
||||
</button>
|
||||
</div>
|
||||
<xpath expr="//div[hasclass('oe_chatter')]" position="before">
|
||||
<div class="o_attachment_preview" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="ir_attachment_view_search" model="ir.ui.view">
|
||||
<field name="name">ir.attachment.search.inherit.employee</field>
|
||||
<field name="model">ir.attachment</field>
|
||||
<field name="mode">primary</field>
|
||||
<field name="inherit_id" ref="base.view_attachment_search" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="create_date" position="after">
|
||||
<field name="index_content" string="Content" />
|
||||
</field>
|
||||
<xpath expr="//filter[@name='my_documents_filter']" position="attributes">
|
||||
<attribute name='invisible'>1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//filter[@name='url_filter']" position="attributes">
|
||||
<attribute name='invisible'>1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//filter[@name='binary_filter']" position="attributes">
|
||||
<attribute name='invisible'>1</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<!--
|
||||
Copyright 2020 Tecnativa - Víctor Martínez
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<record id="hr_employee_public_view_form" model="ir.ui.view">
|
||||
<field name="name">hr.employee.public.view.form.inherit.document</field>
|
||||
<field name="model">hr.employee.public</field>
|
||||
<field name="inherit_id" ref="hr.hr_employee_public_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="user_id" position="after">
|
||||
<field name="is_logged" invisible="1" />
|
||||
</field>
|
||||
<div name="button_box" position="inside">
|
||||
<button
|
||||
class="oe_stat_button"
|
||||
icon="fa-book"
|
||||
name="action_get_attachment_tree_view"
|
||||
attrs="{'invisible': [('is_logged', '=', False)]}"
|
||||
type="object"
|
||||
>
|
||||
<field name="document_count" widget="statinfo" string="Documents" />
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue