Skip to content

Commit

Permalink
[IMP] hr_birthday_calendar: apply pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago370 committed Oct 30, 2024
1 parent 6f4021f commit 0f025c2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hr_birthday_calendar/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Add birthday calendar view.
""",
"author": "Mint System GmbH, Odoo Community Association (OCA)",
"website": "https://www.mint-system.ch",
"website": "https://github.com/OCA/hr",
"category": "Human Resources",
"version": "14.0.1.0.0",
"license": "AGPL-3",
Expand Down
19 changes: 12 additions & 7 deletions hr_birthday_calendar/data/birthday_calendar.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>

<record id="hr_employee_public_view_form_add_birthday_public" model="ir.ui.view">
<field name="active" eval="True"/>
<field name="active" eval="True" />
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='work_location']" position="after">
<field name="birthday_public"/>
<field name="birthday_public" />
</xpath>
</data>
</field>
<field name="inherit_id" ref="hr.hr_employee_public_view_form"/>
<field name="inherit_id" ref="hr.hr_employee_public_view_form" />
<field name="mode">extension</field>
<field name="model">hr.employee.public</field>
<field name="name">Mint System: hr.employee.public.form customization</field>
Expand All @@ -19,9 +19,14 @@
</record>

<record id="hr_birthday_public_calendar_view" model="ir.ui.view">
<field name="active" eval="True"/>
<field name="active" eval="True" />
<field name="arch" type="xml">
<calendar mode="month" date_start="birthday_public" date_stop="birthday_public" string="Birthday Calendar"/>
<calendar
mode="month"
date_start="birthday_public"
date_stop="birthday_public"
string="Birthday Calendar"
/>
</field>
<field name="mode">primary</field>
<field name="model">hr.employee.public</field>
Expand All @@ -34,7 +39,7 @@
<field name="limit">80</field>
<field name="name">Personal</field>
<field name="res_model">hr.employee.public</field>
<field name="search_view_id" ref="hr.hr_employee_public_view_search"/>
<field name="search_view_id" ref="hr.hr_employee_public_view_search" />
<field name="target">current</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">kanban,tree,form,calendar</field>
Expand Down
6 changes: 6 additions & 0 deletions setup/hr_birthday_calendar/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 0f025c2

Please sign in to comment.