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

[17.0][MIG] fieldservice_stock_request: Migration to 17.0 #1196

Merged
merged 34 commits into from
Jul 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bf92d33
[IMP] fieldservice_stock: Split stock request
brian10048 Nov 21, 2020
d849a26
[IMP] fieldservice_stock_request: Add tests
brian10048 Jan 15, 2021
d36824e
[ADD] icon.png
OCA-git-bot Mar 9, 2021
1d7afd9
fieldservice_stock_request 12.0.2.0.0
OCA-git-bot Mar 9, 2021
f03cf54
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Mar 15, 2021
81fe7ff
[IMP] fieldservice_stock_request: black, isort, prettier
Jun 21, 2021
e063ebd
[MIG] fieldservice_stock_request: Migration to 13.0
Jun 22, 2021
554f20b
[MIG] fieldservice_stock_request: migrated the module into v14
vimalpatelserpentcs Jun 28, 2021
6bc6602
[IMP]fieldservice_stock_request: once change direction on FSM order t…
vimalpatelserpentcs Mar 1, 2022
ae71a51
Update stock_request.py
osi-scampbell Mar 1, 2022
67243f0
Update stock_request.py
osi-scampbell Mar 1, 2022
f27fd3a
[IMP]fieldservice_stock_request: Can't set Expected Date on Inventory…
vimalpatelserpentcs Mar 2, 2022
5b433c6
Update fsm_order.xml
osi-scampbell Mar 9, 2022
7a8d4e3
Update stock_request.py
osi-scampbell Mar 9, 2022
13c3f09
[IMP] Tests
Freni-OSI Nov 3, 2022
4bee5c3
[UPD] Update fieldservice_stock_request.pot
Nov 10, 2022
fdcc59a
[UPD] README.rst
OCA-git-bot Nov 10, 2022
565be64
Update translation files
weblate Nov 10, 2022
0644e41
Added translation using Weblate (Italian)
mymage Nov 16, 2022
55dd658
Translated using Weblate (Italian)
mymage Nov 16, 2022
6aa5fbd
[FIX] fieldservice_stock_request: Field must be present in view but i…
max3903 Jan 16, 2023
7dedaf7
fix
max3903 Jan 16, 2023
5fa4ecc
Added translation using Weblate (Spanish (Argentina))
ibuioli Jan 17, 2023
9d94e30
Translated using Weblate (Spanish (Argentina))
ibuioli Jan 17, 2023
1a62524
Translated using Weblate (Italian)
mymage Jun 14, 2023
2534255
Translated using Weblate (Italian)
francesco-ooops Jul 12, 2023
3e6ca48
[UPD] README.rst
OCA-git-bot Sep 3, 2023
64d7d20
Update translation files
weblate Oct 9, 2023
b94b4c3
Added translation using Weblate (Spanish)
Ivorra78 Feb 22, 2024
7fccdac
Translated using Weblate (Spanish)
Ivorra78 Feb 22, 2024
c3836db
[MIG] fieldservice_stock_request: Migration to 16.0
peluko00 Apr 12, 2024
6d9fa8f
[UPD] Update fieldservice_stock_request.pot
Jun 18, 2024
6e3995b
[IMP] fieldservice_stock_request: pre-commit auto fixes
peluko00 Jun 19, 2024
89d5d7b
[MIG] fieldservice_stock_request: Migration to 17.0
peluko00 Jun 19, 2024
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
Prev Previous commit
Next Next commit
[IMP] fieldservice_stock_request: pre-commit auto fixes
peluko00 committed Jun 19, 2024
commit 6e3995bc51f2f14919b9409fa2eeef2d2d91cc6b
76 changes: 39 additions & 37 deletions fieldservice_stock_request/README.rst
Original file line number Diff line number Diff line change
@@ -17,19 +17,19 @@ Field Service - Stock Request
: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/16.0/fieldservice_stock_request
:target: https://github.com/OCA/field-service/tree/17.0/fieldservice_stock_request
: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-16-0/field-service-16-0-fieldservice_stock_request
:target: https://translation.odoo-community.org/projects/field-service-17-0/field-service-17-0-fieldservice_stock_request
: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=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/field-service&target_branch=17.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 stock requests in field service orders.
This module is an add-on for the Field Service application in Odoo. It
provides stock requests in field service orders.

**Table of contents**

@@ -41,77 +41,79 @@ Configuration

To configure this module, you need to:

* Go to Inventory > Configuration > Routes
* Select the routes that you want to use from a FSM order
* Check the box 'FSM Order Line' for outbound transfer
* Check the box 'FSM Return Line' for inbound transfer
- Go to Inventory > Configuration > Routes
- Select the routes that you want to use from a FSM order
- Check the box 'FSM Order Line' for outbound transfer
- Check the box 'FSM Return Line' for inbound transfer

The route 'Receipt in 1 step' has no procurement rule so if you want items to be
returned from the service location to your warehouse, you need to create a new
procurement rule for that route:
The route 'Receipt in 1 step' has no procurement rule so if you want
items to be returned from the service location to your warehouse, you
need to create a new procurement rule for that route:

* Name: YourCompany: Return
* Action: Move From Another Location
* Procurement Location: WH/Stock
* Served Warehouse: YourCompany
* Source Location: Partner Locations/Customers
* Move Supply Method: Take From Stock
* Operation Type: YourCompany: Receipts
- Name: YourCompany: Return
- Action: Move From Another Location
- Procurement Location: WH/Stock
- Served Warehouse: YourCompany
- Source Location: Partner Locations/Customers
- Move Supply Method: Take From Stock
- Operation Type: YourCompany: Receipts

Usage
=====

To use this module, you need to:

* Create a new service order
* Under the Inventory tab, select the warehouse and add products with quantity
* Confirm the order to create the delivery orders
* Validate the transfers in the Inventory app. Quantities delivered on FSM
Order Line will be updated.
- Create a new service order
- Under the Inventory tab, select the warehouse and add products with
quantity
- Confirm the order to create the delivery orders
- Validate the transfers in the Inventory app. Quantities delivered on
FSM Order Line will be updated.

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

The roadmap of the Field Service application is documented on
`Github <https://github.com/OCA/field-service/issues/1>`_.
`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_request%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/field-service/issues/new?body=module:%20fieldservice_stock_request%0Aversion:%2017.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>
* [APSL](https://apsl.tech):
* Antoni Marroig <amarroig@apsl.net>
- Brian McMaster <brian@mcmpest.com>
- Sandip Mangukiya <smangukiya@opensourceintegrators.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
- [APSL](https://apsl.tech):

- Antoni Marroig <amarroig@apsl.net>

Other credits
~~~~~~~~~~~~~
-------------

The development of this module has been financially supported by:

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

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

@@ -140,6 +142,6 @@ 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/16.0/fieldservice_stock_request>`_ project on GitHub.
This module is part of the `OCA/field-service <https://github.com/OCA/field-service/tree/17.0/fieldservice_stock_request>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions fieldservice_stock_request/models/fsm_order.py
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ def action_request_cancel(self):
if not rec.stock_request_ids:
raise UserError(_("Please create a stock request."))
for line in rec.stock_request_ids.filtered(
lambda l: l.state in ("draft", "open")
lambda x: x.state in ("draft", "open")
):
if line.order_id:
line.order_id.action_cancel()
@@ -55,7 +55,7 @@ def action_request_draft(self):
for rec in self:
if not rec.stock_request_ids:
raise UserError(_("Please create a stock request."))
for line in rec.stock_request_ids.filtered(lambda l: l.state == "cancel"):
for line in rec.stock_request_ids.filtered(lambda x: x.state == "cancel"):
if line.order_id:
line.order_id.action_draft()
else:
2 changes: 1 addition & 1 deletion fieldservice_stock_request/models/stock_move_line.py
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ class StockMoveLine(models.Model):
_inherit = "stock.move.line"

def _action_done(self):
res = super(StockMoveLine, self)._action_done()
res = super()._action_done()
for rec in self:
# cases were found where self contained deleted records
# example is creating a backorder for Products with lot number
3 changes: 3 additions & 0 deletions fieldservice_stock_request/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
18 changes: 18 additions & 0 deletions fieldservice_stock_request/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
To configure this module, you need to:

- Go to Inventory \> Configuration \> Routes
- Select the routes that you want to use from a FSM order
- Check the box 'FSM Order Line' for outbound transfer
- Check the box 'FSM Return Line' for inbound transfer

The route 'Receipt in 1 step' has no procurement rule so if you want
items to be returned from the service location to your warehouse, you
need to create a new procurement rule for that route:

- Name: YourCompany: Return
- Action: Move From Another Location
- Procurement Location: WH/Stock
- Served Warehouse: YourCompany
- Source Location: Partner Locations/Customers
- Move Supply Method: Take From Stock
- Operation Type: YourCompany: Receipts
18 changes: 0 additions & 18 deletions fieldservice_stock_request/readme/CONFIGURE.rst

This file was deleted.

5 changes: 5 additions & 0 deletions fieldservice_stock_request/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Brian McMaster \<<brian@mcmpest.com>\>
- Sandip Mangukiya \<<smangukiya@opensourceintegrators.com>\>
- Serpent Consulting Services Pvt. Ltd. \<<support@serpentcs.com>\>
- \[APSL\](<https://apsl.tech>):
- Antoni Marroig \<<amarroig@apsl.net>\>
5 changes: 0 additions & 5 deletions fieldservice_stock_request/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
The development of this module has been financially supported by:

* Open Source Integrators <https://opensourceintegrators.com>
- Open Source Integrators \<<https://opensourceintegrators.com>\>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This module is an add-on for the Field Service application in Odoo.
It provides stock requests in field service orders.
This module is an add-on for the Field Service application in Odoo. It
provides stock requests in field service orders.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The roadmap of the Field Service application is documented on
`Github <https://github.com/OCA/field-service/issues/1>`_.
[Github](https://github.com/OCA/field-service/issues/1).
8 changes: 8 additions & 0 deletions fieldservice_stock_request/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To use this module, you need to:

- Create a new service order
- Under the Inventory tab, select the warehouse and add products with
quantity
- Confirm the order to create the delivery orders
- Validate the transfers in the Inventory app. Quantities delivered on
FSM Order Line will be updated.
7 changes: 0 additions & 7 deletions fieldservice_stock_request/readme/USAGE.rst

This file was deleted.

32 changes: 17 additions & 15 deletions fieldservice_stock_request/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>
@@ -369,9 +368,9 @@ <h1 class="title">Field Service - Stock Request</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:814fcea97c78db0a0d9f0de05677ba2b6a1a64c55a1404934702e65f3835b431
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/field-service/tree/16.0/fieldservice_stock_request"><img alt="OCA/field-service" src="https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/field-service-16-0/field-service-16-0-fieldservice_stock_request"><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/field-service&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is an add-on for the Field Service application in Odoo.
It provides stock requests in field service orders.</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/OCA/field-service/tree/17.0/fieldservice_stock_request"><img alt="OCA/field-service" src="https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/field-service-17-0/field-service-17-0-fieldservice_stock_request"><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/field-service&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is an add-on for the Field Service application in Odoo. It
provides stock requests in field service orders.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
@@ -397,14 +396,14 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<li>Check the box ‘FSM Order Line’ for outbound transfer</li>
<li>Check the box ‘FSM Return Line’ for inbound transfer</li>
</ul>
<p>The route ‘Receipt in 1 step’ has no procurement rule so if you want items to be
returned from the service location to your warehouse, you need to create a new
procurement rule for that route:</p>
<p>The route ‘Receipt in 1 step’ has no procurement rule so if you want
items to be returned from the service location to your warehouse, you
need to create a new procurement rule for that route:</p>
<ul class="simple">
<li>Name: YourCompany: Return</li>
<li>Action: Move From Another Location</li>
<li>Procurement Location: WH/Stock</li>
<li>Served Warehouse: YourCompany</li>
<li>Served Warehouse: YourCompany</li>
<li>Source Location: Partner Locations/Customers</li>
<li>Move Supply Method: Take From Stock</li>
<li>Operation Type: YourCompany: Receipts</li>
@@ -415,10 +414,11 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module, you need to:</p>
<ul class="simple">
<li>Create a new service order</li>
<li>Under the Inventory tab, select the warehouse and add products with quantity</li>
<li>Under the Inventory tab, select the warehouse and add products with
quantity</li>
<li>Confirm the order to create the delivery orders</li>
<li>Validate the transfers in the Inventory app. Quantities delivered on FSM
Order Line will be updated.</li>
<li>Validate the transfers in the Inventory app. Quantities delivered on
FSM Order Line will be updated.</li>
</ul>
</div>
<div class="section" id="known-issues-roadmap">
@@ -431,7 +431,7 @@ <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/field-service/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/OCA/field-service/issues/new?body=module:%20fieldservice_stock_request%0Aversion:%2016.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/OCA/field-service/issues/new?body=module:%20fieldservice_stock_request%0Aversion:%2017.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">
@@ -449,8 +449,10 @@ <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
<li>Brian McMaster &lt;<a class="reference external" href="mailto:brian&#64;mcmpest.com">brian&#64;mcmpest.com</a>&gt;</li>
<li>Sandip Mangukiya &lt;<a class="reference external" href="mailto:smangukiya&#64;opensourceintegrators.com">smangukiya&#64;opensourceintegrators.com</a>&gt;</li>
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:support&#64;serpentcs.com">support&#64;serpentcs.com</a>&gt;</li>
<li>[APSL](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):
* Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
<li>[APSL](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):<ul>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="other-credits">
@@ -469,7 +471,7 @@ <h2><a class="toc-backref" href="#toc-entry-9">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/brian10048"><img alt="brian10048" src="https://github.com/brian10048.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/wolfhall"><img alt="wolfhall" src="https://github.com/wolfhall.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/smangukiya"><img alt="smangukiya" src="https://github.com/smangukiya.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/field-service/tree/16.0/fieldservice_stock_request">OCA/field-service</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/field-service/tree/17.0/fieldservice_stock_request">OCA/field-service</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>