Skip to content

Commit 511273a

Browse files
[MIG] maintenance_request_employee: Migration to version 17.0
- use the many2many_avatar_user widget in khanban view
1 parent f7c3626 commit 511273a

File tree

7 files changed

+130
-154
lines changed

7 files changed

+130
-154
lines changed

maintenance_request_employee/README.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Maintenance Request Employee
1010
!! source digest: sha256:2b54f9fc10d0ac22cedffa636f44ffe40daddf102aea3bddd96a9f92ac2609ee
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
13-
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
1414
:target: https://odoo-community.org/page/development-status
15-
:alt: Beta
15+
:alt: Production/Stable
1616
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
@@ -60,6 +60,7 @@ Contributors
6060

6161
- Pedro M. Baeza
6262
- Víctor Martínez
63+
- Carlos Lopez
6364

6465
Maintainers
6566
-----------

maintenance_request_employee/__manifest__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "Maintenance Request Employee",
5-
"version": "15.0.1.0.0",
5+
"version": "17.0.1.0.0",
66
"category": "Maintenance",
77
"website": "https://github.com/OCA/maintenance",
88
"author": "Tecnativa, Odoo Community Association (OCA)",
@@ -11,4 +11,5 @@
1111
"data": ["views/maintenance_request_views.xml"],
1212
"installable": True,
1313
"maintainers": ["victoralmau"],
14+
"development_status": "Production/Stable",
1415
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- [Tecnativa](https://www.tecnativa.com)
22
- Pedro M. Baeza
33
- Víctor Martínez
4+
- Carlos Lopez
Loading
Loading

maintenance_request_employee/static/description/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Maintenance Request Employee</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:2b54f9fc10d0ac22cedffa636f44ffe40daddf102aea3bddd96a9f92ac2609ee
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/maintenance/tree/17.0/maintenance_request_employee"><img alt="OCA/maintenance" src="https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/maintenance-17-0/maintenance-17-0-maintenance_request_employee"><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/maintenance&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="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/maintenance/tree/17.0/maintenance_request_employee"><img alt="OCA/maintenance" src="https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/maintenance-17-0/maintenance-17-0-maintenance_request_employee"><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/maintenance&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module adds the option to define employees in maintenance requests.</p>
374374
<p><strong>Table of contents</strong></p>
375375
<div class="contents local topic" id="contents">
@@ -405,6 +405,7 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
405405
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a><ul>
406406
<li>Pedro M. Baeza</li>
407407
<li>Víctor Martínez</li>
408+
<li>Carlos Lopez</li>
408409
</ul>
409410
</li>
410411
</ul>

maintenance_request_employee/views/maintenance_request_views.xml

+1-11
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,7 @@
4646
</field>
4747
<xpath expr="//span[@t-if='record.employee_id.raw_value']" position="after">
4848
<div t-if="record.employee_ids.raw_value">
49-
<t
50-
t-foreach="record.employee_ids.raw_value.slice(0,11)"
51-
t-as="employee"
52-
>
53-
<img
54-
class="oe_kanban_avatar o_image_24_cover"
55-
t-att-src="kanban_image('hr.employee', 'image_128', employee)"
56-
t-att-data-member_id="employee"
57-
alt="Employee"
58-
/>
59-
</t>
49+
<field name="employee_ids" widget="many2many_avatar_user" />
6050
</div>
6151
</xpath>
6252
</field>

0 commit comments

Comments
 (0)