Skip to content

Commit

Permalink
Merge pull request #93 from camptocamp/13.0-shopfloor-oca-ready
Browse files Browse the repository at this point in the history
shopfloor: add minimal readme and copyrights
  • Loading branch information
simahawk authored Oct 12, 2020
2 parents 856adc9 + e3c4b63 commit 7c4eb2c
Show file tree
Hide file tree
Showing 102 changed files with 278 additions and 6 deletions.
4 changes: 3 additions & 1 deletion shopfloor/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# © 2020 Camptocamp, Akretion, BCIM
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# Copyright 2020 Akretion (http://www.akretion.com)
# Copyright 2020 BCIM
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/base_action.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import AbstractComponent


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/change_package_lot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, exceptions
from odoo.tools.float_utils import float_compare, float_is_zero

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/completion_info.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/data_detail.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tools.float_utils import float_round

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/inventory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/location_content_transfer_sorter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import Component


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/message.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/savepoint.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import uuid

from psycopg2 import sql
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/actions/search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import Component


Expand Down
3 changes: 3 additions & 0 deletions shopfloor/controllers/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# Copyright 2020 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from werkzeug.exceptions import BadRequest

from odoo.http import request
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/migrations/13.0.1.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from psycopg2 import sql

from odoo.tools import column_exists
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/priority_postpone_mixin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/shopfloor_log.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from datetime import datetime, timedelta

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/shopfloor_menu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, exceptions, fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/shopfloor_profile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_inventory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_location.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
from odoo.tools.float_utils import float_compare

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_move_line.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, exceptions, fields, models
from odoo.exceptions import UserError
from odoo.tools.float_utils import float_compare
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_package_level.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_picking_batch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_picking_type.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_quant.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/models/stock_quant_package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, exceptions, fields, models


Expand Down
23 changes: 22 additions & 1 deletion shopfloor/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
writeme
Profiles
--------

In Inventory / Configuration / Shopfloor / Profiles.

The profiles are used to restrict which menus are shown on the frontend
application. When a user logs in the scanner application, they have to
select their profile, so the correct menus are shown.

Menus
-----

In Inventory / Configuration / Shopfloor / Menus.

The menus are displayed on the frontend application and store the configuration
of the scenarios. Each menu must use a scenario and defines which Operation Types
they are allowed to process.

Their profile will restrict the visibility to the profile chosen on the device.
If a menu has no profile, it is shown in every profile.

Some scenarios may have additional options, which are explained in tooltips.

Logs retention
--------------
Expand Down
12 changes: 10 additions & 2 deletions shopfloor/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
* Alexandre Fayolle <[email protected]>
* Guewen Baconnier <[email protected]>
* Simone Orsi <[email protected]>
* Sébastien Alix <[email protected]>
* Alexandre Fayolle <[email protected]>
* Benoit Guillot <[email protected]>
* Thierry Ducrest <[email protected]>

Design
~~~~~~

ADD YOURSELF
* Joël Grand-Guillaume <[email protected]>
* Jacques-Etienne Baudoux <[email protected]>
5 changes: 5 additions & 0 deletions shopfloor/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**Financial support**

* Cosanum
* Camptocamp R&D
* Akretion R&D
15 changes: 14 additions & 1 deletion shopfloor/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
write me
Shopfloor is a barcode scanner application for internal warehouse operations.

The application supports scenarios, to relate to Operation Types:

* Cluster Picking
* Zone Picking
* Checkout/Packing
* Delivery
* Location Content Transfer
* Single Pack Transfer

This module provides REST APIs to support the scenarios. It needs a frontend
to consume the backend APIs and provide screens for users on barcode devices.
A default front-end application is provided by ``shopfloor_mobile``.
3 changes: 2 additions & 1 deletion shopfloor/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
write me
* improve documentation
* split out scenario components to their own modules
2 changes: 2 additions & 0 deletions shopfloor/services/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import Component


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/checkout.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _

from odoo.addons.base_rest.components.service import to_int
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/cluster_picking.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, fields
from odoo.osv import expression

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/delivery.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, fields
from odoo.osv import expression
from odoo.tools.float_utils import float_is_zero
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/location_content_transfer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _

from odoo.addons.base_rest.components.service import to_int
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/menu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.osv import expression

from odoo.addons.base_rest.components.service import to_int
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/picking_batch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.osv import expression

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/profile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.base_rest.components.service import to_int
from odoo.addons.component.core import Component

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/scan_anything.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _

from odoo.addons.component.core import Component
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/schema.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import Component


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/schema_detail.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import Component


Expand Down
3 changes: 3 additions & 0 deletions shopfloor/services/service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# Copyright 2020 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import traceback

from werkzeug.urls import url_encode, url_join
Expand Down
3 changes: 3 additions & 0 deletions shopfloor/services/single_pack_transfer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# Copyright 2020 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields

from odoo.addons.base_rest.components.service import to_int
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/validator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.addons.component.core import AbstractComponent


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/services/zone_picking.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import functools

from odoo.fields import first
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from collections import namedtuple
from contextlib import contextmanager
from pprint import pformat
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_actions_change_package_lot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import Form

from .common import CommonCase
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_actions_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging

from .common import CommonCase, PickingBatchMixin
Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_actions_data_detail.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import base64
import io

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .common import CommonCase


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_checkout_base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .common import CommonCase


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_checkout_cancel_line.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .test_checkout_base import CheckoutCommonCase


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_checkout_change_packaging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .test_checkout_base import CheckoutCommonCase


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_checkout_done.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .test_checkout_base import CheckoutCommonCase


Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_checkout_list_package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .test_checkout_base import CheckoutCommonCase
from .test_checkout_select_package_base import CheckoutSelectPackageMixin

Expand Down
2 changes: 2 additions & 0 deletions shopfloor/tests/test_checkout_new_package.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from .test_checkout_base import CheckoutCommonCase
from .test_checkout_select_package_base import CheckoutSelectPackageMixin

Expand Down
Loading

0 comments on commit 7c4eb2c

Please sign in to comment.