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

[16.0][MIG] maintenance_request_duplicated: Migratio to 16.0 #154

Open
wants to merge 17 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions maintenance_request_duplicated/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Maintenance Request Duplicated
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-tegin%2Fcb--maintenance-lightgray.png?logo=github
:target: https://github.com/tegin/cb-maintenance/tree/14.0/maintenance_request_duplicated
:target: https://github.com/tegin/cb-maintenance/tree/16.0/maintenance_request_duplicated
:alt: tegin/cb-maintenance

|badge1| |badge2| |badge3|
Expand All @@ -44,7 +44,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/tegin/cb-maintenance/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/tegin/cb-maintenance/issues/new?body=module:%20maintenance_request_duplicated%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/tegin/cb-maintenance/issues/new?body=module:%20maintenance_request_duplicated%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -64,6 +64,6 @@ Contributors
Maintainers
~~~~~~~~~~~

This module is part of the `tegin/cb-maintenance <https://github.com/tegin/cb-maintenance/tree/14.0/maintenance_request_duplicated>`_ project on GitHub.
This module is part of the `tegin/cb-maintenance <https://github.com/tegin/cb-maintenance/tree/16.0/maintenance_request_duplicated>`_ project on GitHub.

You are welcome to contribute.
9 changes: 7 additions & 2 deletions maintenance_request_duplicated/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@
"name": "Maintenance Request Duplicated",
"summary": """
This module allows you to manage duplicated requests""",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "CreuBlanca,Odoo Community Association (OCA)",
"website": "https://github.com/tegin/cb-maintenance",
"depends": ["cb_maintenance_project"],
"depends": ["cb_maintenance"],
"data": [
"security/ir.model.access.csv",
"data/maintenance_stage_data.xml",
"wizards/wizard_request_duplicated.xml",
"views/maintenance_request.xml",
],
"assets": {
"web.assets_backend": [
"maintenance_request_duplicated/static/src/scss/maintenance.scss",
]
},
}
14 changes: 7 additions & 7 deletions maintenance_request_duplicated/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 All @@ -9,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Maintenance Request Duplicated</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4cf02a34e2e07f7e6a36ecb327e68a4127502a1279fb75eeade0481a42d39767
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/tegin/cb-maintenance/tree/14.0/maintenance_request_duplicated"><img alt="tegin/cb-maintenance" src="https://img.shields.io/badge/github-tegin%2Fcb--maintenance-lightgray.png?logo=github" /></a></p>
<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/tegin/cb-maintenance/tree/16.0/maintenance_request_duplicated"><img alt="tegin/cb-maintenance" src="https://img.shields.io/badge/github-tegin%2Fcb--maintenance-lightgray.png?logo=github" /></a></p>
<p>This module allows you to manage duplicated requests.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -396,7 +396,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/tegin/cb-maintenance/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/tegin/cb-maintenance/issues/new?body=module:%20maintenance_request_duplicated%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/tegin/cb-maintenance/issues/new?body=module:%20maintenance_request_duplicated%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -415,7 +415,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/tegin/cb-maintenance/tree/14.0/maintenance_request_duplicated">tegin/cb-maintenance</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/tegin/cb-maintenance/tree/16.0/maintenance_request_duplicated">tegin/cb-maintenance</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
</div>
</div>
Expand Down
14 changes: 14 additions & 0 deletions maintenance_request_duplicated/static/src/scss/maintenance.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.o_cb_maintenance.o_list_renderer .o_list_table {
.text-danger {
color: $table-color !important;
background-color: #ffefef;
}
.text-success {
color: $table-color !important;
background-color: #e2ffe6;
}
.text-info {
color: $table-color !important;
background-color: #e2f0ff;
}
}
26 changes: 21 additions & 5 deletions maintenance_request_duplicated/views/maintenance_request.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
name="name"
>maintenance.request.form (in maintenance_request_duplicated)</field>
<field name="model">maintenance.request</field>
<field
name="inherit_id"
ref="cb_maintenance_project.maintenance_project_form_view"
/>
<field name="inherit_id" ref="cb_maintenance.hr_equipment_request_view_form" />
<field name="arch" type="xml">
<button name="archive_equipment_request" position="before">
<button
Expand All @@ -27,10 +24,11 @@
attrs="{'invisible': [('duplicated_parent_id', '=', False)]}"
/>
</field>
<field name="maintenance_type" position="after">
<field name="description" position="before">
<field
name="duplicated_ids"
attrs="{'invisible': [('duplicated_ids', '=', [])]}"
colspan="2"
>
<tree>
<field name="name" />
Expand All @@ -50,4 +48,22 @@
</field>
</field>
</record>
<record model="ir.ui.view" id="maintenance_request_tree_view">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto de donde viene?

<field
name="name"
>maintenance.request.tree (in maintenance_request_duplicated)</field>
<field name="model">maintenance.request</field>
<field name="inherit_id" ref="cb_maintenance.maintenance_request_tree_view" />
<field name="arch" type="xml">
<tree position="attributes">
<attribute
name="decoration-danger"
>maintenance_type == 'corrective'</attribute>
<attribute
name="decoration-success"
>maintenance_type == 'preventive'</attribute>
<attribute name="class">o_cb_maintenance</attribute>
</tree>
</field>
</record>
</odoo>
Loading