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

[13.0] [MIG] fieldservice_repair #672

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f554309
[ADD] fieldservice_repair
Dec 31, 2018
c154382
[UPD] README.rst
OCA-git-bot Jan 3, 2019
51ce3eb
[IMP] UI
max3903 Jan 3, 2019
8eee12f
[IMP] Set partner_id
max3903 Jan 3, 2019
d18e3d7
[FIX] PEP8 error
max3903 Jan 4, 2019
a7dff1c
[IMP] fieldservice_repair
max3903 Jan 31, 2019
bd9fb2c
[FIX] fieldservice_repair
max3903 Feb 2, 2019
f59356a
[FIX] Fix Repair Bug
osi-scampbell Feb 21, 2019
a8e0cd1
[IMP] fieldservice_repair (#158)
osi-scampbell Mar 14, 2019
47c73b7
[MIG][WIP][12.0] fieldservice_repair
murtuzasaleh Apr 4, 2019
33f9f6d
[UPD] README.rst
OCA-git-bot Apr 16, 2019
30b5a1f
[IMP] Remove Create() Repair/Maintenance
osi-scampbell Jun 27, 2019
71aa4c4
[IMP] Create() Unused
osi-scampbell Jun 27, 2019
0f20497
[FIX] fieldservice_repair: formatting
max3903 Jul 5, 2019
746f545
[UPD] README.rst
OCA-git-bot Jul 29, 2019
e4c8205
[IMP] FSM Repair Order Type
osi-scampbell Sep 25, 2019
29edaae
[IMP] fieldservice_repair
max3903 Oct 11, 2019
c8da74e
[UPD] Update fieldservice_repair.pot
oca-travis Nov 14, 2019
9f27b11
Added translation using Weblate (German)
marylla Nov 22, 2019
e61b63b
Translated using Weblate (German)
marylla Nov 26, 2019
564e958
Translated using Weblate (German)
marylla Nov 26, 2019
730ab62
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 16, 2020
22388d8
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 5, 2020
1c93177
Added translation using Weblate (Spanish)
Mar 3, 2020
e150668
Translated using Weblate (Spanish)
Mar 3, 2020
e94ccc8
[12.0][FIX] fieldservice_repair
marcelsavegnago Jun 24, 2020
8036e17
[UPD] Update fieldservice_repair.pot
oca-travis Sep 21, 2020
7f074fb
[UPD] README.rst
OCA-git-bot Sep 21, 2020
3243a5a
fieldservice_repair 12.0.1.1.0
OCA-git-bot Sep 21, 2020
7b8110c
Update translation files
oca-transbot Sep 21, 2020
f95db47
[IMP] fieldservice_repair: black, isort, prettier
Oct 8, 2020
7ff656b
[MIG] fieldservice_repair: Migration to 13.0
RLeeOSI Oct 8, 2020
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
3 changes: 3 additions & 0 deletions fieldservice/models/fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ def _onchange_location_id_customer(self):
# Equipment used for all other Service Orders
equipment_ids = fields.Many2many("fsm.equipment", string="Equipments")
type = fields.Many2one("fsm.order.type", string="Type")
internal_type = fields.Selection(
string="Internal Type", related="type.internal_type"
)

@api.model
def _read_group_stage_ids(self, stages, domain, order):
Expand Down
4 changes: 4 additions & 0 deletions fieldservice/models/fsm_order_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ class FSMOrderType(models.Model):
_description = "Field Service Order Type"

name = fields.Char(string="Name")

internal_type = fields.Selection(
string="Internal Type", selection=[("fsm", "FSM")], default="fsm",
)
7 changes: 4 additions & 3 deletions fieldservice/views/fsm_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@
groups="fieldservice.group_fsm_team"
/>
<field name="person_id" />
<field name="internal_type" invisible="1" />
<field
name="equipment_id"
attrs="{'invisible':[('type', 'not in',['repair', 'maintenance'])]}"
attrs="{'invisible':[('internal_type', 'not in',['repair', 'maintenance'])]}"
groups="fieldservice.group_fsm_equipment"
options="{'no_create': True}"
domain="[('current_location_id','=',location_id)]"
Expand Down Expand Up @@ -153,11 +154,11 @@
string="Equipments"
groups="fieldservice.group_fsm_equipment"
name="equipements_page"
attrs="{'invisible': [('type', 'in', ['repair', 'maintenance'])]}"
attrs="{'invisible': [('internal_type', 'in', ['repair', 'maintenance'])]}"
>
<field
name="equipment_ids"
attrs="{'required': [('type', 'not in', ['repair', 'maintenance'])]}"
attrs="{'required': [('internal_type', 'not in', ['repair', 'maintenance'])]}"
options="{'no_create': True}"
domain="[('current_location_id','=',location_id)]"
>
Expand Down
4 changes: 4 additions & 0 deletions fieldservice/views/fsm_order_type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<field name="arch" type="xml">
<tree string="Order Types">
<field name="name" />
<field name="internal_type" />
</tree>
</field>
</record>
Expand All @@ -20,6 +21,9 @@
<h1>
<field name="name" />
</h1>
<group>
<field name="internal_type" />
</group>
</sheet>
</form>
</field>
Expand Down
130 changes: 130 additions & 0 deletions fieldservice_repair/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
======================
Field Service - Repair
======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github
:target: https://github.com/OCA/field-service/tree/12.0/fieldservice_repair
:alt: OCA/field-service
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/field-service-12-0/field-service-12-0-fieldservice_repair
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/264/12.0
:alt: Try me on Runbot

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

Odoo Repair App does not support Field Service operations for products outside the company facilities.
On the other hand, the Field Service App does not support part management (add, update, remove) of an equipment.

This module allows you to repair FSM equipments and manage their parts: add, update/replace, remove.

**Table of contents**

.. contents::
:local:

Installation
============

To install Field Service and have the mapping features,
you need to install fieldservice_stock and mrp_repair

Please refer to the installation instructions available at:
https://github.com/OCA/field-service/tree/12.0/fieldservice_stock

Configuration
=============

To configure this module, you need to:

* Go to Field Service > Master Data > Equipments
* Set the product and serial number on each of your equipments

Usage
=====

To use this module, you need to:

* Go to Field Service
* Create a FSM order
* Choose the type: Repair
* Select the equipment
* Upon saving, a repair order is created and linked to the FSM order

Known issues / Roadmap
======================

The roadmap of the Field Service application is documented on
`Github <https://github.com/OCA/field-service/issues>`_.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/field-service/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_repair%0Aversion:%2012.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
~~~~~~~

* Open Source Integrators

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

* Sandip Mangukiya <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Marcel Savegnago - Escodoo <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Open Source Integrators <https://opensourceintegrators.com>

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.

.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px
:target: https://github.com/smangukiya
:alt: smangukiya
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-smangukiya| |maintainer-max3903|

This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/12.0/fieldservice_repair>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions fieldservice_repair/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
17 changes: 17 additions & 0 deletions fieldservice_repair/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Field Service - Repair",
"summary": "Integrate Field Service orders with MRP repair orders",
"version": "13.0.1.0.0",
"category": "Field Service",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": ["fieldservice_stock", "repair"],
"data": ["data/fsm_order_type.xml", "views/fsm_order_view.xml"],
"license": "AGPL-3",
"development_status": "Beta",
"maintainers": ["smangukiya", "max3903"],
"installable": True,
}
7 changes: 7 additions & 0 deletions fieldservice_repair/data/fsm_order_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="fsm_order_type_repair" model="fsm.order.type">
<field name="name">Repair</field>
<field name="internal_type">repair</field>
</record>
</odoo>
64 changes: 64 additions & 0 deletions fieldservice_repair/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_repair
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-26 14:27+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.8\n"

#. module: fieldservice_repair
#: code:addons/fieldservice_repair/models/fsm_order.py:39
#, python-format
msgid ""
"Cannot create Repair Order because Equipment does not have a Current "
"Inventory Location."
msgstr ""

#. module: fieldservice_repair
#: selection:fsm.order.type,internal_type:0
msgid "FSM"
msgstr ""

#. module: fieldservice_repair
#: model:ir.model,name:fieldservice_repair.model_fsm_order
msgid "Field Service Order"
msgstr "Field-Service-Auftrag"

#. module: fieldservice_repair
#: model:ir.model,name:fieldservice_repair.model_fsm_order_type
#, fuzzy
#| msgid "Field Service Order"
msgid "Field Service Order Type"
msgstr "Field-Service-Auftrag"

#. module: fieldservice_repair
#: model:ir.model.fields,field_description:fieldservice_repair.field_fsm_order_type__internal_type
msgid "Internal Type"
msgstr ""

#. module: fieldservice_repair
#: selection:fsm.order.type,internal_type:0
msgid "Maintenance"
msgstr ""

#. module: fieldservice_repair
#: selection:fsm.order.type,internal_type:0
#, fuzzy
#| msgid "Repair Order"
msgid "Repair"
msgstr "Reparaturauftrag"

#. module: fieldservice_repair
#: model:ir.model.fields,field_description:fieldservice_repair.field_fsm_order__repair_id
msgid "Repair Order"
msgstr "Reparaturauftrag"
64 changes: 64 additions & 0 deletions fieldservice_repair/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_repair
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-03-04 00:14+0000\n"
"Last-Translator: Nelson Ramírez Sánchez <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: fieldservice_repair
#: code:addons/fieldservice_repair/models/fsm_order.py:39
#, python-format
msgid ""
"Cannot create Repair Order because Equipment does not have a Current "
"Inventory Location."
msgstr ""

#. module: fieldservice_repair
#: selection:fsm.order.type,internal_type:0
msgid "FSM"
msgstr ""

#. module: fieldservice_repair
#: model:ir.model,name:fieldservice_repair.model_fsm_order
msgid "Field Service Order"
msgstr "Orden de Servicio de Campo"

#. module: fieldservice_repair
#: model:ir.model,name:fieldservice_repair.model_fsm_order_type
#, fuzzy
#| msgid "Field Service Order"
msgid "Field Service Order Type"
msgstr "Orden de Servicio de Campo"

#. module: fieldservice_repair
#: model:ir.model.fields,field_description:fieldservice_repair.field_fsm_order_type__internal_type
msgid "Internal Type"
msgstr ""

#. module: fieldservice_repair
#: selection:fsm.order.type,internal_type:0
msgid "Maintenance"
msgstr ""

#. module: fieldservice_repair
#: selection:fsm.order.type,internal_type:0
#, fuzzy
#| msgid "Repair Order"
msgid "Repair"
msgstr "Orden de Reparación"

#. module: fieldservice_repair
#: model:ir.model.fields,field_description:fieldservice_repair.field_fsm_order__repair_id
msgid "Repair Order"
msgstr "Orden de Reparación"
Loading