Skip to content

Commit 0df1f20

Browse files
committed
Merge PR #154 into 18.0
Signed-off-by ivs-cetmix
2 parents b6cc444 + 45710cc commit 0df1f20

4 files changed

Lines changed: 52 additions & 22 deletions

File tree

repair_service/README.rst

Lines changed: 1 addition & 5 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
Repair Service
73
==============
@@ -17,7 +13,7 @@ Repair Service
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%2Frepair-lightgray.png?logo=github

repair_service/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"security/ir.model.access.csv",
1818
"security/ir_rule.xml",
1919
"views/repair_views.xml",
20+
"report/report_repair_service.xml",
2021
],
2122
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<template
4+
id="report_repairorder_inherit_services"
5+
inherit_id="repair.report_repairorder"
6+
>
7+
<xpath expr="//table[hasclass('o_main_table')]" position="after">
8+
<t t-if="o.repair_service_ids">
9+
<h2 class="mb-3 border-bottom border-2 border-dark">Services</h2>
10+
<table class="table table-borderless o_main_table">
11+
<thead>
12+
<tr>
13+
<th>Product</th>
14+
<th>Description</th>
15+
<th class="text-end">Quantity</th>
16+
</tr>
17+
</thead>
18+
<tbody>
19+
<tr t-foreach="o.repair_service_ids" t-as="service">
20+
<td>
21+
<span t-field="service.product_id" />
22+
</td>
23+
<td>
24+
<span t-field="service.display_name" />
25+
</td>
26+
<td class="text-end">
27+
<span t-field="service.product_uom_qty" />
28+
<span
29+
groups="uom.group_uom"
30+
t-field="service.product_uom.name"
31+
/>
32+
</td>
33+
</tr>
34+
</tbody>
35+
</table>
36+
</t>
37+
</xpath>
38+
</template>
39+
</odoo>

repair_service/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>Repair Service</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="repair-service">
364+
<h1 class="title">Repair Service</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="repair-service">
370-
<h1>Repair Service</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:f3c0475cf2e26d8d0683c02f1cd90a936d215e24294b893739986dae4a8f386e
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/repair/tree/18.0/repair_service"><img alt="OCA/repair" src="https://img.shields.io/badge/github-OCA%2Frepair-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/repair-18-0/repair-18-0-repair_service"><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/repair&amp;target_branch=18.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/repair/tree/18.0/repair_service"><img alt="OCA/repair" src="https://img.shields.io/badge/github-OCA%2Frepair-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/repair-18-0/repair-18-0-repair_service"><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/repair&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 introduces repair services. It adds a new “Services” tab in
379374
the repair orders, where users can add and manage services associated
380375
with the repair. Once the repair order is confirmed and a sale order is
@@ -397,15 +392,15 @@ <h1>Repair Service</h1>
397392
</ul>
398393
</div>
399394
<div class="section" id="use-cases-context">
400-
<h2><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h2>
395+
<h1><a class="toc-backref" href="#toc-entry-1">Use Cases / Context</a></h1>
401396
<p>This functionality is similar to the “Operations” tab that existed in
402397
previous versions in core Odoo. This tab allowed users to manage
403398
services and operations in the repair orders. This module reintroduces
404399
that functionality and adds these services as sale order lines when the
405400
sale order is generated.</p>
406401
</div>
407402
<div class="section" id="usage">
408-
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
403+
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
409404
<p>When creating or editing a repair order, you will find a new “Services”
410405
tab within the repair order form. In this tab, you can input and manage
411406
the services performed as part of the repair order. Once the repair
@@ -414,23 +409,23 @@ <h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
414409
added as sale order lines.</p>
415410
</div>
416411
<div class="section" id="bug-tracker">
417-
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
412+
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
418413
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/repair/issues">GitHub Issues</a>.
419414
In case of trouble, please check there if your issue has already been reported.
420415
If you spotted it first, help us to smash it by providing a detailed and welcomed
421416
<a class="reference external" href="https://github.com/OCA/repair/issues/new?body=module:%20repair_service%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
422417
<p>Do not contact contributors directly about support or help with technical issues.</p>
423418
</div>
424419
<div class="section" id="credits">
425-
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
420+
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
426421
<div class="section" id="authors">
427-
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
422+
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
428423
<ul class="simple">
429424
<li>ForgeFlow</li>
430425
</ul>
431426
</div>
432427
<div class="section" id="contributors">
433-
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
428+
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
434429
<ul>
435430
<li><p class="first"><a class="reference external" href="https://forgeflow.com">ForgeFlow</a>:</p>
436431
<blockquote>
@@ -444,7 +439,7 @@ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
444439
</ul>
445440
</div>
446441
<div class="section" id="maintainers">
447-
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
442+
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
448443
<p>This module is maintained by the OCA.</p>
449444
<a class="reference external image-reference" href="https://odoo-community.org">
450445
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -457,6 +452,5 @@ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
457452
</div>
458453
</div>
459454
</div>
460-
</div>
461455
</body>
462456
</html>

0 commit comments

Comments
 (0)