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

[16.0][MIG] shopfloor_delivery_shipment: Migration to 16.0 #944

Draft
wants to merge 35 commits into
base: 16.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
273e75d
[ADD] shopfloor_delivery_shipment
sebalix Jul 1, 2021
c789cd3
[UPD] Update shopfloor_delivery_shipment.pot
oca-travis Aug 3, 2021
99f20cd
[UPD] README.rst
OCA-git-bot Aug 3, 2021
d51f3b5
[ADD] icon.png
OCA-git-bot Aug 3, 2021
b71c0b9
shopfloor_delivery_shipment 13.0.1.1.0
OCA-git-bot Aug 3, 2021
9efe7e2
[IMP] shopfloor_delivery_shipment: black, isort, prettier
TDu Sep 27, 2021
75bbf31
[MIG] shopfloor_delivery_shipment: Migration to 14.0
TDu Sep 28, 2021
f02c6c0
[UPD] Update shopfloor_delivery_shipment.pot
oca-travis Oct 15, 2021
bbf7790
[UPD] README.rst
OCA-git-bot Oct 15, 2021
eb6eb53
Added translation using Weblate (Spanish (Argentina))
ibuioli Oct 19, 2021
d2d5d58
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 20, 2021
fa5cbd6
[14.0][FIX] shopfloor_delivery_shipment is not an application
andreampiovesana Dec 13, 2021
604af59
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Dec 28, 2021
8420fb2
[IMP] sf_delivery_shipment: restrict dock to current WH
sebalix Jan 4, 2022
0869d11
shopfloor_delivery_shipment 14.0.1.1.0
OCA-git-bot Jan 20, 2022
fb9450c
shopfloor_delivery_shipment 14.0.1.1.1
OCA-git-bot Jan 27, 2022
8f4c287
[FIX] sf: fetch lot related to current product(s)
sebalix Feb 10, 2022
f60531e
sf_delivery_shipment: adapt to shpofloor.app setup
simahawk Jan 20, 2022
13b98d6
shopfloor_delivery_shipment 14.0.1.1.2
OCA-git-bot Apr 7, 2022
971c6f1
[UPD] Update shopfloor_delivery_shipment.pot
Nov 7, 2022
e9d6879
Update translation files
weblate Nov 7, 2022
5727cea
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 9, 2022
7ef9432
shopfloor search: split product_from_scan
mmequignon Jun 22, 2022
b5c694a
shopfloor_delivery_shipment 14.0.1.2.0
OCA-git-bot Jan 5, 2023
8a59e45
sf_delivery_shipment: return goods to load on first screen
sebalix Jun 7, 2023
c700066
sf_delivery_shipment: return loading progress details on lading summary
sebalix Jun 8, 2023
9e19e53
shopfloor_delivery_shipment 14.0.1.3.0
OCA-git-bot Jun 28, 2023
11b7d59
sh_delivery_shipment: add location filter
TDu Jun 23, 2023
0bc7c82
sh_delivery_shipment_mobile: add location filter
TDu Jun 26, 2023
492810d
shopfloor_*: fix install/uninstall
simahawk Aug 1, 2023
9765bbf
sf_delivery_shipment: improve confirmation shipment creation
TDu Aug 4, 2023
3c53a26
sf_delivery_shipment: fix bug in move lines domain
JuMiSanAr Aug 28, 2023
8703de5
Added translation using Weblate (Italian)
mymage Sep 14, 2023
43fd13a
[IMP] shopfloor_delivery_shipment: pre-commit execution
giarve Oct 29, 2024
be70991
[MIG] shopfloor_delivery_shipment: Migration to 16.0
giarve Oct 29, 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
6 changes: 6 additions & 0 deletions setup/shopfloor_delivery_shipment/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,
)
106 changes: 106 additions & 0 deletions shopfloor_delivery_shipment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
=========================================
Shopfloor - Delivery with shipment advice
=========================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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/16.0/shopfloor_delivery_shipment
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-shopfloor_delivery_shipment
: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=16.0
:alt: Try me on Runboat

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

Shopfloor scenario to manage the delivery process based on shipment advices.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**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_delivery_shipment%0Aversion:%2016.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

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

* Sébastien Alix <[email protected]>

Design
~~~~~~

* Joël Grand-Guillaume <[email protected]>
* Jacques-Etienne Baudoux <[email protected]>

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

**Financial support**

* Cosanum
* Camptocamp R&D

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

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

|maintainer-sebalix| |maintainer-TDu|

This module is part of the `OCA/wms <https://github.com/OCA/wms/tree/16.0/shopfloor_delivery_shipment>`_ 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 shopfloor_delivery_shipment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import actions
from . import models
from . import services
from .hooks import post_init_hook, uninstall_hook
24 changes: 24 additions & 0 deletions shopfloor_delivery_shipment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "Shopfloor - Delivery with shipment advice",
"summary": "Manage delivery process with shipment advices",
"version": "16.0.1.0.0",
"development_status": "Alpha",
"category": "Inventory",
"website": "https://github.com/OCA/wms",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["sebalix", "TDu"],
"license": "AGPL-3",
"application": False,
"depends": [
# OCA/wms
"shopfloor",
# OCA/stock-logistics-transport
"shipment_advice",
],
"data": ["data/shopfloor_scenario_data.xml", "views/shopfloor_menu.xml"],
"demo": ["demo/shopfloor_profile_demo.xml", "demo/shopfloor_menu_demo.xml"],
"post_init_hook": "post_init_hook",
"uninstall_hook": "uninstall_hook",
}
4 changes: 4 additions & 0 deletions shopfloor_delivery_shipment/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import data
from . import message
from . import schema
from . import search
63 changes: 63 additions & 0 deletions shopfloor_delivery_shipment/actions/data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright 2021 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
from odoo.addons.component.core import Component
from odoo.addons.shopfloor_base.utils import ensure_model


class DataAction(Component):
_inherit = "shopfloor.data.action"

@ensure_model("shipment.advice")
def shipment_advice(self, record, **kw):
data = self._jsonify(
record.with_context(shipment_advice=record.id),
self._shipment_advice_parser,
**kw
)
data["is_planned"] = bool(record.planned_move_ids)
return data

def shipment_advices(self, record, **kw):
return self.shipment_advice(record, multi=True)

@property
def _shipment_advice_parser(self):
return [
"id",
"name",
("dock_id:dock", self._dock_parser),
"state",
]

@ensure_model("stock.dock")
def dock(self, record, **kw):
return self._jsonify(
record.with_context(dock=record.id), self._dock_parser, **kw
)

def docks(self, record, **kw):
return self.dock(record, multi=True)

@property
def _dock_parser(self):
return self._simple_record_parser()

@ensure_model("stock.picking")
def picking_loaded(self, record, **kw):
return self._jsonify(record, self._picking_loaded_parser, **kw)

def pickings_loaded(self, record, **kw):
return self.picking_loaded(record, multi=True)

@property
def _picking_loaded_parser(self):
return self._picking_parser + [
"loaded_progress_f",
"loaded_packages_progress_f",
"loaded_move_lines_progress_f",
"loaded_progress",
"loaded_packages_progress",
"loaded_move_lines_progress",
"is_fully_loaded_in_shipment:is_fully_loaded",
"is_partially_loaded_in_shipment:is_partially_loaded",
]
Loading
Loading