Skip to content

Commit

Permalink
Merge PR #1232 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by max3903
  • Loading branch information
OCA-git-bot committed Nov 23, 2024
2 parents 7c7d81b + bd1bfb1 commit 689c970
Show file tree
Hide file tree
Showing 42 changed files with 2,789 additions and 0 deletions.
142 changes: 142 additions & 0 deletions fieldservice_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
=====================
Field Service - Stock
=====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3e40b0122be66d01675fb140ceb4250cdb6f624cc4e91db02c7d65de17507777
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/18.0/fieldservice_stock
: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-18-0/field-service-18-0-fieldservice_stock
: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/field-service&target_branch=18.0
:alt: Try me on Runboat

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

This module is an add-on for the Field Service application in Odoo. It
provides a generic framework to allow you to link inventory and stock
operations with your field service operations.

**Table of contents**

.. contents::
:local:

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

To install Field Service and have the mapping features, you need to
install GeoEngine.

Please refer to the installation instructions available at:
https://github.com/OCA/geospatial/tree/13.0/base_geoengine

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

To configure this module, you need to:

- Go to Field Service > Master Data > Locations
- Create or select a location and set the inventory location

If you are in a multi-warehouse situation:

- Go to Field Service > Configuration > Territories
- Create or select a territory
- Set the warehouse that will serve this territory

Usage
=====

This module primarily establishes a connection between stock and field
service operations so therefore has no specific usage instructions.

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

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

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_stock%0Aversion:%2018.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
* Brian McMaster

Contributors
------------

- Brian McMaster <brian@mcmpest.com>
- Sandip Mangukiya <smangukiya@opensourceintegrators.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
- Marcel Savegnago <marcel.savegnago@escodoo.com.br>
- Freni Patel <fpatel@opensourceintegrators.com>

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-brian10048| image:: https://github.com/brian10048.png?size=40px
:target: https://github.com/brian10048
:alt: brian10048
.. |maintainer-wolfhall| image:: https://github.com/wolfhall.png?size=40px
:target: https://github.com/wolfhall
:alt: wolfhall
.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px
:target: https://github.com/max3903
:alt: max3903
.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px
:target: https://github.com/smangukiya
:alt: smangukiya

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

|maintainer-brian10048| |maintainer-wolfhall| |maintainer-max3903| |maintainer-smangukiya|

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

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

from . import models
from .hooks import _pre_init_hook
27 changes: 27 additions & 0 deletions fieldservice_stock/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (C) 2018 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Field Service - Stock",
"summary": "Integrate the logistics operations with Field Service",
"version": "18.0.1.0.0",
"category": "Field Service",
"author": "Open Source Integrators, "
"Brian McMaster, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/field-service",
"depends": ["fieldservice", "stock"],
"data": [
"security/ir.model.access.csv",
"data/fsm_stock_data.xml",
"views/res_territory.xml",
"views/fsm_location.xml",
"views/fsm_order.xml",
"views/stock.xml",
"views/stock_picking.xml",
],
"pre_init_hook": "_pre_init_hook",
"license": "AGPL-3",
"development_status": "Beta",
"maintainers": ["brian10048", "wolfhall", "max3903", "smangukiya"],
}
8 changes: 8 additions & 0 deletions fieldservice_stock/data/fsm_stock_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<odoo>
<!-- stock.location -->
<record id="stock_location_field" model="stock.location">
<field name="name">Field</field>
<field name="usage">view</field>
<field name="company_id" />
</record>
</odoo>
21 changes: 21 additions & 0 deletions fieldservice_stock/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2022 - OCA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


def _pre_init_hook(env):
"""Assign default inventory location to an existing fsm.location"""

default_location_id = env.ref("stock.stock_location_customers").id

env.cr.execute(
"""
ALTER TABLE
fsm_location
ADD COLUMN IF NOT EXISTS
inventory_location_id INTEGER;
"""
)

env.cr.execute(
"""UPDATE fsm_location SET inventory_location_id=%s;""", (default_location_id,)
)
163 changes: 163 additions & 0 deletions fieldservice_stock/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fieldservice_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-11-26 17:58+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\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_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Allocated Quantity"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Deliveries"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__delivery_count
msgid "Delivery Orders"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Done Quantity"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_fsm_wizard
msgid "FSM Record Conversion"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.fsm_stock_picking_form
msgid "Field Service Information"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_fsm_location
msgid "Field Service Location"
msgstr "Field-Service-Ort"

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_fsm_order
#: model:ir.model.fields,field_description:fieldservice_stock.field_procurement_group__fsm_order_id
#: model:ir.model.fields,field_description:fieldservice_stock.field_stock_move__fsm_order_id
#: model:ir.model.fields,field_description:fieldservice_stock.field_stock_picking__fsm_order_id
msgid "Field Service Order"
msgstr "Field-Service-Auftrag"

#. module: fieldservice_stock
#: model:ir.ui.menu,name:fieldservice_stock.menu_fsm_stock_inventory
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Inventory"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_location__inventory_location_id
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__inventory_location_id
msgid "Inventory Location"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__move_ids
msgid "Operations"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_procurement_group
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__procurement_group_id
msgid "Procurement Group"
msgstr ""

#. module: fieldservice_stock
#: model:ir.ui.menu,name:fieldservice_stock.menu_fsm_product
msgid "Products"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Reference"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Requested Quantity"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__return_count
msgid "Return Orders"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Returns"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_location__shipping_address_id
msgid "Shipping Location"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_stock_rule
msgid "Stock Rule"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_res_territory
msgid "Territory"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model,name:fieldservice_stock.model_stock_picking
msgid "Transfer"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__picking_ids
msgid "Transfers"
msgstr ""

#. module: fieldservice_stock
#: model_terms:ir.ui.view,arch_db:fieldservice_stock.view_fsm_order_form_inherit_stock
msgid "Unit of Measure"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,field_description:fieldservice_stock.field_fsm_order__warehouse_id
#: model:ir.model.fields,field_description:fieldservice_stock.field_res_territory__warehouse_id
msgid "Warehouse"
msgstr ""

#. module: fieldservice_stock
#: model:ir.model.fields,help:fieldservice_stock.field_fsm_order__warehouse_id
msgid "Warehouse used to ship the materials"
msgstr ""

#~ msgid "Cancel"
#~ msgstr "Abbrechen"

#~ msgid "Field Service Equipment"
#~ msgstr "Service-Equipment"

#~ msgid "Product Template"
#~ msgstr "Produktvorlage"
Loading

0 comments on commit 689c970

Please sign in to comment.