Skip to content

Commit 9b8294a

Browse files
[MIG] hr_payroll_document: Migration to 18.0
1 parent 0617f3c commit 9b8294a

File tree

7 files changed

+110
-123
lines changed

7 files changed

+110
-123
lines changed

hr_payroll_document/README.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
=====================
62
HR - Payroll Document
73
=====================
@@ -17,17 +13,17 @@ HR - Payroll Document
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github
24-
:target: https://github.com/OCA/payroll/tree/17.0/hr_payroll_document
20+
:target: https://github.com/OCA/payroll/tree/18.0/hr_payroll_document
2521
:alt: OCA/payroll
2622
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/payroll-17-0/payroll-17-0-hr_payroll_document
23+
:target: https://translation.odoo-community.org/projects/payroll-18-0/payroll-18-0-hr_payroll_document
2824
:alt: Translate me on Weblate
2925
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=18.0
3127
:alt: Try me on Runboat
3228

3329
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -46,7 +42,7 @@ Bug Tracker
4642
Bugs are tracked on `GitHub Issues <https://github.com/OCA/payroll/issues>`_.
4743
In case of trouble, please check there if your issue has already been reported.
4844
If you spotted it first, help us to smash it by providing a detailed and welcomed
49-
`feedback <https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
45+
`feedback <https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5046

5147
Do not contact contributors directly about support or help with technical issues.
5248

@@ -87,6 +83,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
8783

8884
|maintainer-peluko00|
8985

90-
This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/17.0/hr_payroll_document>`_ project on GitHub.
86+
This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/18.0/hr_payroll_document>`_ project on GitHub.
9187

9288
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

hr_payroll_document/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"website": "https://github.com/OCA/payroll",
66
"license": "AGPL-3",
77
"category": "Payrolls",
8-
"version": "17.0.1.0.0",
8+
"version": "18.0.1.0.0",
99
"depends": ["hr", "base_vat"],
1010
"maintainers": ["peluko00"],
1111
"external_dependencies": {"python": ["pypdf"]},

hr_payroll_document/data/email_payroll_employee.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
33
<record id="payroll_employee_email_template" model="mail.template">
4-
<field name="name">Payroll Employee</field>
5-
<field name="model_id" ref="hr.model_hr_employee" />
6-
<field name="email_from">{{object.company_id.email}}</field>
7-
<field name="email_to">{{object.work_email}}</field>
8-
<field name="subject">Payroll {{ctx.get('subject')}}</field>
9-
<field name="auto_delete" eval="False" />
10-
<field name="body_html">
4+
<field name="name">Payroll Employee</field>
5+
<field name="model_id" ref="hr.model_hr_employee" />
6+
<field name="email_from">{{object.company_id.email}}</field>
7+
<field name="email_to">{{object.work_email}}</field>
8+
<field name="subject">Payroll {{ctx.get('subject')}}</field>
9+
<field name="auto_delete" eval="False" />
10+
<field name="body_html">
1111
<![CDATA[<html>
1212
<head></head>
1313
<body style="margin: 0; padding: 0;">

hr_payroll_document/static/description/index.html

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>HR - Payroll Document</title>
77
<style type="text/css">
88

99
/*
@@ -360,21 +360,16 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="hr-payroll-document">
364+
<h1 class="title">HR - Payroll Document</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="hr-payroll-document">
370-
<h1>HR - Payroll Document</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:8541f32cab0e71108ff8c422d602825bb599e0141fe69b9342c16742bee0b915
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/payroll/tree/17.0/hr_payroll_document"><img alt="OCA/payroll" src="https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/payroll-17-0/payroll-17-0-hr_payroll_document"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/payroll&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/payroll/tree/18.0/hr_payroll_document"><img alt="OCA/payroll" src="https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/payroll-18-0/payroll-18-0-hr_payroll_document"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/payroll&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p>This module have a wizard view to manage the different payrolls of
379374
employees which is identified by the identification_id attribute.</p>
380375
<p><strong>Table of contents</strong></p>
@@ -390,23 +385,23 @@ <h1>HR - Payroll Document</h1>
390385
</ul>
391386
</div>
392387
<div class="section" id="bug-tracker">
393-
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
388+
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
394389
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/payroll/issues">GitHub Issues</a>.
395390
In case of trouble, please check there if your issue has already been reported.
396391
If you spotted it first, help us to smash it by providing a detailed and welcomed
397-
<a class="reference external" href="https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
392+
<a class="reference external" href="https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398393
<p>Do not contact contributors directly about support or help with technical issues.</p>
399394
</div>
400395
<div class="section" id="credits">
401-
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
396+
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
402397
<div class="section" id="authors">
403-
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
398+
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
404399
<ul class="simple">
405400
<li>APSL</li>
406401
</ul>
407402
</div>
408403
<div class="section" id="contributors">
409-
<h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
404+
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
410405
<ul class="simple">
411406
<li><a class="reference external" href="https://www.apsl.tech">APSL-Nagarro</a>:<ul>
412407
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
@@ -416,7 +411,7 @@ <h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
416411
</ul>
417412
</div>
418413
<div class="section" id="maintainers">
419-
<h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
414+
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
420415
<p>This module is maintained by the OCA.</p>
421416
<a class="reference external image-reference" href="https://odoo-community.org">
422417
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -426,11 +421,10 @@ <h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
426421
promote its widespread use.</p>
427422
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
428423
<p><a class="reference external image-reference" href="https://github.com/peluko00"><img alt="peluko00" src="https://github.com/peluko00.png?size=40px" /></a></p>
429-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/payroll/tree/17.0/hr_payroll_document">OCA/payroll</a> project on GitHub.</p>
424+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/payroll/tree/18.0/hr_payroll_document">OCA/payroll</a> project on GitHub.</p>
430425
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
431426
</div>
432427
</div>
433428
</div>
434-
</div>
435429
</body>
436430
</html>
Lines changed: 61 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,93 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
<record id="view_payroll_tree" model="ir.ui.view">
4-
<field name="name">payroll.view.tree</field>
5-
<field name="model">ir.attachment.payroll.custom</field>
6-
<field name="arch" type="xml">
7-
<tree name="Payrolls" create="false" delete="true" edit="false">
8-
<field name="employee" />
9-
<field name="identification_id" />
10-
<field name="create_date" />
11-
<field name="subject" />
12-
<field name="attachment_id" widget="binary" column_invisible="1" />
13-
<button name="download" string="Download" type="object" />
14-
</tree>
15-
</field>
16-
</record>
3+
<record id="view_payroll_tree" model="ir.ui.view">
4+
<field name="name">payroll.view.tree</field>
5+
<field name="model">ir.attachment.payroll.custom</field>
6+
<field name="arch" type="xml">
7+
<list name="Payrolls" create="false" delete="true" edit="false">
8+
<field name="employee" />
9+
<field name="identification_id" />
10+
<field name="create_date" />
11+
<field name="subject" />
12+
<field name="attachment_id" widget="binary" column_invisible="1" />
13+
<button name="download" string="Download" type="object" />
14+
</list>
15+
</field>
16+
</record>
1717

18-
<record id="view_payroll_filter" model="ir.ui.view">
19-
<field name="name">payroll.view.search</field>
20-
<field name="model">ir.attachment.payroll.custom</field>
21-
<field name="arch" type="xml">
22-
<search string="Payrolls">
23-
<field name="subject" />
24-
<field name="identification_id" />
25-
<field name="employee" />
26-
<separator />
27-
<group expand="0" string="Group By">
28-
<filter
18+
<record id="view_payroll_filter" model="ir.ui.view">
19+
<field name="name">payroll.view.search</field>
20+
<field name="model">ir.attachment.payroll.custom</field>
21+
<field name="arch" type="xml">
22+
<search string="Payrolls">
23+
<field name="subject" />
24+
<field name="identification_id" />
25+
<field name="employee" />
26+
<separator />
27+
<group expand="0" string="Group By">
28+
<filter
2929
name="group_employee"
3030
string="Employee"
3131
domain="[]"
3232
context="{'group_by': 'employee'}"
3333
/>
34-
<filter
34+
<filter
3535
name="group_subject"
3636
string="Subject"
3737
domain="[]"
3838
context="{'group_by': 'subject'}"
3939
/>
40-
<filter
40+
<filter
4141
name="group_identification_id"
4242
string="Identification ID"
4343
domain="[]"
4444
context="{'group_by': 'identification_id'}"
4545
/>
46-
</group>
47-
</search>
48-
</field>
49-
</record>
46+
</group>
47+
</search>
48+
</field>
49+
</record>
5050

51-
<record id="payrolls_view_action" model="ir.actions.act_window">
52-
<field name="name">Payrolls</field>
53-
<field name="res_model">ir.attachment.payroll.custom</field>
54-
<field name="view_mode">tree</field>
55-
<field name="view_id" ref="view_payroll_tree" />
56-
<field name="search_view_id" ref="view_payroll_filter" />
57-
</record>
51+
<record id="payrolls_view_action" model="ir.actions.act_window">
52+
<field name="name">Payrolls</field>
53+
<field name="res_model">ir.attachment.payroll.custom</field>
54+
<field name="view_mode">list</field>
55+
<field name="view_id" ref="view_payroll_tree" />
56+
<field name="search_view_id" ref="view_payroll_filter" />
57+
</record>
5858

59-
<menuitem
59+
<menuitem
6060
id="payrolls_menu_action"
6161
action="payrolls_view_action"
6262
parent="hr.menu_hr_root"
6363
/>
6464

65-
66-
<record id="hr_employee_view_tree_payroll" model="ir.ui.view">
67-
<field name="name">inherit_view.hr_employee</field>
68-
<field name="model">hr.employee</field>
69-
<field name="inherit_id" ref="hr.view_employee_form" />
70-
<field name="arch" type="xml">
71-
<xpath expr="//div[@name='button_box']" position="inside">
72-
<button
65+
<record id="hr_employee_view_tree_payroll" model="ir.ui.view">
66+
<field name="name">inherit_view.hr_employee</field>
67+
<field name="model">hr.employee</field>
68+
<field name="inherit_id" ref="hr.view_employee_form" />
69+
<field name="arch" type="xml">
70+
<xpath expr="//div[@name='button_box']" position="inside">
71+
<button
7372
class="oe_stat_button"
7473
icon="fa-money"
7574
name="action_get_payroll_tree_view"
7675
type="object"
7776
groups="hr.group_hr_user"
7877
>
79-
<field
80-
name="payroll_count"
81-
widget="statinfo"
82-
string="Payrolls"
83-
/>
84-
</button>
85-
</xpath>
86-
</field>
87-
</record>
78+
<field name="payroll_count" widget="statinfo" string="Payrolls" />
79+
</button>
80+
</xpath>
81+
</field>
82+
</record>
8883

89-
<record id="res_users_view_form_profile_inherit" model="ir.ui.view">
90-
<field name="name">hr.res_user.view.form.inherit.document</field>
91-
<field name="model">res.users</field>
92-
<field name="inherit_id" ref="hr.res_users_view_form_profile" />
93-
<field name="arch" type="xml">
94-
<div name="button_box" position="inside">
95-
<button
84+
<record id="res_users_view_form_profile_inherit" model="ir.ui.view">
85+
<field name="name">hr.res_user.view.form.inherit.document</field>
86+
<field name="model">res.users</field>
87+
<field name="inherit_id" ref="hr.res_users_view_form_profile" />
88+
<field name="arch" type="xml">
89+
<div name="button_box" position="inside">
90+
<button
9691
class="oe_stat_button"
9792
icon="fa-money"
9893
name="action_get_attachment_tree_view"
@@ -101,7 +96,7 @@
10196
>
10297
Payrolls
10398
</button>
104-
</div>
105-
</field>
106-
</record>
99+
</div>
100+
</field>
101+
</record>
107102
</odoo>

0 commit comments

Comments
 (0)