Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX][14.0]: Adding the same fields on manager form view #122

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hr_holidays_leave_repeated/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Contributors

* Andrea Stirpe <[email protected]>
* Hieu, Vo Minh Bao <[email protected]>
* Italo LOPES <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions hr_holidays_leave_repeated/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Andrea Stirpe <[email protected]>
* Hieu, Vo Minh Bao <[email protected]>
* Italo LOPES <[email protected]>
2 changes: 1 addition & 1 deletion hr_holidays_leave_repeated/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down Expand Up @@ -421,6 +420,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li>
<li>Hieu, Vo Minh Bao &lt;<a class="reference external" href="mailto:hieu.vmb&#64;komit-consulting.com">hieu.vmb&#64;komit-consulting.com</a>&gt;</li>
<li>Italo LOPES &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
42 changes: 42 additions & 0 deletions hr_holidays_leave_repeated/views/hr_leave.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,46 @@
</xpath>
</field>
</record>

<record id="hr_leave_repeated_manager_view_form" model="ir.ui.view">
<field name="model">hr.leave</field>
<field name="inherit_id" ref="hr_holidays.hr_leave_view_form_manager" />
<field name="arch" type="xml">
<xpath expr="//field[@name='holiday_status_id']/.." position="after">
<field name="holiday_type_repeat" invisible="1" />
<div
class="row"
name="repeat_mode"
attrs="{'invisible':[('holiday_type_repeat', '!=', True)]}"
>
<label class="col-2 mr-0" for="repeat_every" />
<field name="repeat_every" class="col-2 pl-0" nolabel="1" />
<label class="col-2 mr-0" for="repeat_mode" />
<field name="repeat_mode" class="col-2 pl-0" nolabel="1" />
</div>
<div
class="row"
attrs="{'invisible':['|',
('repeat_mode', '=', 'times'),
('holiday_type_repeat', '!=', True)
]}"
name="repeat_date"
>
<label class="col-2 mr-0" for="repeat_end_date" />
<field name="repeat_end_date" class="col-2 pl-0" nolabel="1" />
</div>
<div
class="row"
attrs="{'invisible':['|',
('repeat_mode','=','date'),
('holiday_type_repeat','!=',True)
]}"
name="repeat_limit"
>
<label class="col-2 mr-0" for="repeat_limit" />
<field name="repeat_limit" class="col-2 pl-0" nolabel="1" />
</div>
</xpath>
</field>
</record>
</odoo>
Loading