diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /hrms_dashboard/views | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'hrms_dashboard/views')
| -rw-r--r-- | hrms_dashboard/views/dashboard_views.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/hrms_dashboard/views/dashboard_views.xml b/hrms_dashboard/views/dashboard_views.xml new file mode 100644 index 0000000..9862e9c --- /dev/null +++ b/hrms_dashboard/views/dashboard_views.xml @@ -0,0 +1,47 @@ +<odoo> + <data> + <record id="hr_action_dashboard" model="ir.actions.client"> + <field name="name">Dashboard</field> + <field name="tag">hr_dashboard</field> + </record> + +<!-- <record id="dashboard_employee_broad_factor" model="ir.ui.view">--> +<!-- <field name="name">dashboard.employee.broad.factor</field>--> +<!-- <field name="model">hr.leave.type</field>--> +<!-- <field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>--> +<!-- <field name="arch" type="xml">--> +<!-- <xpath expr="//field[@name='request_unit']" position="after">--> +<!-- <field name="emp_broad_factor"/>--> +<!-- </xpath>--> +<!-- </field>--> +<!-- </record>--> + + <menuitem id="menu_hrms_dashboard" + name="Dashboard" + action="hr_action_dashboard" + web_icon="hrms_dashboard,static/description/dashboard_icon.png" + sequence="-100" groups="base.group_user"/> + </data> + + <template id="assets_backend_dashboard" name="Hr Dashboard assets inherit" inherit_id="web.assets_backend"> + <xpath expr="." position="inside"> + <link rel="stylesheet" href="/hrms_dashboard/static/src/css/hrms_dashboard.css"/> + <script type="text/javascript" src="/hrms_dashboard/static/src/js/hrms_dashboard.js"/> + + <link rel="stylesheet" href="/hrms_dashboard/static/src/css/lib/nv.d3.css"/> + <script type="text/javascript" src="/hrms_dashboard/static/src/js/lib/d3.min.js"/> + </xpath> + </template> + + <record id="broad_factor_sort_order" model="ir.ui.view"> + <field name="name">hr.holidays.view.tree</field> + <field name="model">hr.leave</field> + <field name="inherit_id" ref="hr_holidays.hr_leave_view_tree"/> + <field name="arch" type="xml"> + <xpath expr="//tree" position="attributes"> + <attribute name="default_order">duration_display</attribute> + </xpath> + </field> + </record> + +</odoo> |
