Skip to content
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
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# generated from manifests external_dependencies
openupgradelib
6 changes: 6 additions & 0 deletions setup/shopfloor_reception_refund_return/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
2 changes: 1 addition & 1 deletion shopfloor/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Shopfloor",
"summary": "manage warehouse operations with barcode scanners",
"version": "14.0.4.16.0",
"version": "14.0.4.17.0",
"development_status": "Beta",
"category": "Inventory",
"website": "https://github.com/OCA/wms",
Expand Down
1 change: 1 addition & 0 deletions shopfloor/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class StockPicking(models.Model):
compute="_compute_picking_info",
help="Technical field. Indicates number of move lines without package included.",
)
is_shopfloor_created = fields.Boolean()

@api.depends(
"move_line_ids", "move_line_ids.product_qty", "move_line_ids.product_id.weight"
Expand Down
1 change: 0 additions & 1 deletion shopfloor_reception/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from . import services
from . import models
from .hooks import post_init_hook, uninstall_hook
3 changes: 2 additions & 1 deletion shopfloor_reception/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Shopfloor Reception",
"summary": "Reception scenario for shopfloor",
"version": "14.0.2.11.0",
"version": "14.0.2.12.0",
"development_status": "Beta",
"category": "Inventory",
"website": "https://github.com/OCA/wms",
Expand All @@ -10,6 +10,7 @@
"license": "AGPL-3",
"installable": True,
"depends": ["shopfloor"],
"external_dependencies": {"python": ["openupgradelib"]},
"data": [
"data/shopfloor_scenario_data.xml",
],
Expand Down
17 changes: 17 additions & 0 deletions shopfloor_reception/migrations/14.0.2.12.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)


from openupgradelib import openupgrade


def move_fields_to_new_module(cr):
# is_shopfloor_created has been wrongly put in shopfloor_reception.
# this script moves it in shopfloor.
openupgrade.update_module_moved_fields(
cr, "stock.picking", "is_shopfloor_created", "shopfloor_reception", "shopfloor"
)


def migrate(cr, version):
move_fields_to_new_module(cr)
1 change: 0 additions & 1 deletion shopfloor_reception/models/__init__.py

This file was deleted.

10 changes: 0 additions & 10 deletions shopfloor_reception/models/stock_picking.py

This file was deleted.

88 changes: 88 additions & 0 deletions shopfloor_reception_refund_return/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
=================================
Shopfloor Reception Refund Return
=================================

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

.. |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%2Fwms-lightgray.png?logo=github
:target: https://github.com/OCA/wms/tree/14.0/shopfloor_reception_refund_return
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-shopfloor_reception_refund_return
: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/wms&target_branch=14.0
:alt: Try me on Runboat

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

Marks returns created by shopfloor as to refund.

Sets `to_refund` to true when when creating a return move.

**Table of contents**

.. contents::
:local:

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

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

* Camptocamp
* BCIM

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

* Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
* Jacques-Etienne Baudoux (BCIM) <je@bcim.be>

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-mmequignon| image:: https://github.com/mmequignon.png?size=40px
:target: https://github.com/mmequignon
:alt: mmequignon

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

|maintainer-mmequignon|

This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/14.0/shopfloor_reception_refund_return>`_ 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 shopfloor_reception_refund_return/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import actions
16 changes: 16 additions & 0 deletions shopfloor_reception_refund_return/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
"name": "Shopfloor Reception Refund Return",
"summary": "Mark created return as to refund",
"version": "14.0.1.0.0",
"category": "Inventory, Accounting",
"website": "https://github.com/OCA/wms",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"maintainers": ["mmequignon"],
"license": "AGPL-3",
"installable": True,
"auto_install": False,
"depends": ["shopfloor", "stock_account"],
}
1 change: 1 addition & 0 deletions shopfloor_reception_refund_return/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock
14 changes: 14 additions & 0 deletions shopfloor_reception_refund_return/actions/stock.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo.addons.component.core import Component


class StockAction(Component):
_inherit = "shopfloor.stock.action"

def _create_return_move__get_vals(self, return_picking, origin_move):
res = super()._create_return_move__get_vals(return_picking, origin_move)
if return_picking.picking_type_code == "incoming":
res["to_refund"] = True
return res
2 changes: 2 additions & 0 deletions shopfloor_reception_refund_return/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Matthieu Méquignon <matthieu.mequignon@camptocamp.com>
* Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
3 changes: 3 additions & 0 deletions shopfloor_reception_refund_return/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Marks returns created by shopfloor as to refund.

Sets `to_refund` to true when when creating a return move.
Loading