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] repair_reason: Migration to 16.0 #32

Merged
merged 7 commits into from
Mar 25, 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
82 changes: 82 additions & 0 deletions repair_reason/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
=============
Repair Reason
=============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f17952d0f72e734a69fc72eb87f3c92b4a75e4dd120038b1674369d013b65c9e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frepair-lightgray.png?logo=github
:target: https://github.com/OCA/repair/tree/15.0/repair_reason
:alt: OCA/repair
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/repair-15-0/repair-15-0-repair_reason
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/repair&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Manage repair reasons

**Table of contents**

.. contents::
:local:

Usage
=====

Define repair reasons, such as, "Non conformed product".
Add this reason in the repair order form view

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/repair/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/OCA/repair/issues/new?body=module:%20repair_reason%0Aversion:%2015.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.

Credits
=======

Authors
~~~~~~~

* ForgeFlow

Contributors
~~~~~~~~~~~~

* Aaron Henriquez <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/repair <https://github.com/OCA/repair/tree/15.0/repair_reason>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions repair_reason/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions repair_reason/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2023 ForgeFlow S. L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Repair Reason",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"category": "Repair",
"summary": """Repair Reason""",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/repair",
"depends": [
"repair",
],
"data": [
"security/ir.model.access.csv",
"views/repair_reason_view.xml",
"views/repair_order_view.xml",
],
"installable": True,
}
91 changes: 91 additions & 0 deletions repair_reason/i18n/repair_reason.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * repair_reason
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__active
msgid "Active"
msgstr ""

#. module: repair_reason
#: model_terms:ir.ui.view,arch_db:repair_reason.view_repair_order_root_cause_form
msgid "Archived"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__company_id
msgid "Company"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__create_uid
msgid "Created by"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__create_date
msgid "Created on"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__display_name
msgid "Display Name"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__id
msgid "ID"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason____last_update
msgid "Last Modified on"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__write_uid
msgid "Last Updated by"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__write_date
msgid "Last Updated on"
msgstr ""

#. module: repair_reason
#: model:ir.model,name:repair_reason.model_repair_order
msgid "Repair Order"
msgstr ""

#. module: repair_reason
#: model:ir.actions.act_window,name:repair_reason.action_repair_order_root_cause_form
#: model:ir.ui.menu,name:repair_reason.menu_repair_order_root_cause
msgid "Repair Order Root Causes"
msgstr ""

#. module: repair_reason
#: model:ir.model,name:repair_reason.model_repair_reason
msgid "Repair Reason"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_order__repair_reason_id
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__name
msgid "Root Cause"
msgstr ""

#. module: repair_reason
#: model:ir.model.fields,field_description:repair_reason.field_repair_reason__sequence
msgid "Sequence"
msgstr ""
2 changes: 2 additions & 0 deletions repair_reason/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import repair_order
from . import repair_reason
9 changes: 9 additions & 0 deletions repair_reason/models/repair_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from odoo import fields, models


class RepairOrder(models.Model):
_inherit = "repair.order"

repair_reason_id = fields.Many2one(
comodel_name="repair.reason", string="Root Cause"
)
20 changes: 20 additions & 0 deletions repair_reason/models/repair_reason.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from odoo import fields, models


class RepairReason(models.Model):

_name = "repair.reason"
_description = "Repair Reason"
_order = "sequence, id"

sequence = fields.Integer(default=10)
active = fields.Boolean(default=True)
name = fields.Char(
string="Root Cause",
required=True,
)
company_id = fields.Many2one(
comodel_name="res.company",
string="Company",
default=lambda self: self.env.company,
)
1 change: 1 addition & 0 deletions repair_reason/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Aaron Henriquez <[email protected]>
1 change: 1 addition & 0 deletions repair_reason/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Manage repair reasons
2 changes: 2 additions & 0 deletions repair_reason/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Define repair reasons, such as, "Non conformed product".
Add this reason in the repair order form view
3 changes: 3 additions & 0 deletions repair_reason/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_repair_order_root_cause_user,Helpdesk Ticket Category User,repair_reason.model_repair_reason,stock.group_stock_user,1,0,0,0
access_repair_order_root_cause_manager,Helpdesk Ticket Category Manager,repair_reason.model_repair_reason,stock.group_stock_manager,1,1,1,1
Binary file added repair_reason/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading