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

[18.0][MIG] delivery_driver_stock_picking_batch: Migration to 18.0 #975

Open
wants to merge 10 commits into
base: 18.0
Choose a base branch
from
119 changes: 119 additions & 0 deletions delivery_driver_stock_picking_batch/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
===================================
Delivery Driver Stock Picking Batch
===================================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github
:target: https://github.com/OCA/delivery-carrier/tree/18.0/delivery_driver_stock_picking_batch
:alt: OCA/delivery-carrier
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/delivery-carrier-18-0/delivery-carrier-18-0-delivery_driver_stock_picking_batch
: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/delivery-carrier&target_branch=18.0
:alt: Try me on Runboat

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

This module extends the functionality of delivery and stock picking
batch and to allow you to see in stock picking batch drivers assigned in
pickings .

.. 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:

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

To configure this module, you need to:

- Go to Inventory / Configuration / Settings.
- Active Batch Transfer and Delivery Methods.

Usage
=====

To use this module, you need to:

1. Go to Inventory / Configuration / Shipping Methods.
2. Create new Shipping Method o choose one already created.
3. Choose Default Driver.
4. Go to Inventory / Operations / Transfer and create new Transfer.
5. Choose carrier.
6. The driver is automatically assigned.
7. You can change the driver without changing the carrier.
8. Go to Inventory / Operations / Batch Transfers and create new Batch.
9. Add picking created before.
10. Driver in batch is automatically assigned.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/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/delivery-carrier/issues/new?body=module:%20delivery_driver_stock_picking_batch%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
-------

* Moduon

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

- Emilio Pascual (`Moduon <https://www.moduon.team/>`__)
- Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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

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

|maintainer-EmilioPascual|

This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/18.0/delivery_driver_stock_picking_batch>`_ 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 delivery_driver_stock_picking_batch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions delivery_driver_stock_picking_batch/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

{
"name": "Delivery Driver Stock Picking Batch",
"summary": "Add drivers from delivery in stock picking batch",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Inventory/Delivery",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Moduon, Odoo Community Association (OCA)",
"maintainers": ["EmilioPascual"],
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": [
"stock_picking_batch",
"delivery_driver",
],
"data": [
"views/stock_picking_batch.xml",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_driver_stock_picking_batch
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: delivery_driver_stock_picking_batch
#: model:ir.model,name:delivery_driver_stock_picking_batch.model_stock_picking_batch
msgid "Batch Transfer"
msgstr ""

#. module: delivery_driver_stock_picking_batch
#: model:ir.model.fields,field_description:delivery_driver_stock_picking_batch.field_stock_picking_batch__driver_ids
#: model_terms:ir.ui.view,arch_db:delivery_driver_stock_picking_batch.stock_picking_batch_filter_inherit_delivery_driver
msgid "Drivers"
msgstr ""
29 changes: 29 additions & 0 deletions delivery_driver_stock_picking_batch/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_driver_stock_picking_batch
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-08 08:48+0000\n"
"PO-Revision-Date: 2024-01-08 09:53+0100\n"
"Last-Translator: Emilio Pascual <emilio@moduom.team>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4\n"

#. module: delivery_driver_stock_picking_batch
#: model:ir.model,name:delivery_driver_stock_picking_batch.model_stock_picking_batch
msgid "Batch Transfer"
msgstr "Transferir agrupación"

#. module: delivery_driver_stock_picking_batch
#: model:ir.model.fields,field_description:delivery_driver_stock_picking_batch.field_stock_picking_batch__driver_ids
#: model_terms:ir.ui.view,arch_db:delivery_driver_stock_picking_batch.stock_picking_batch_filter_inherit_delivery_driver
msgid "Drivers"
msgstr "Conductores"
28 changes: 28 additions & 0 deletions delivery_driver_stock_picking_batch/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_driver_stock_picking_batch
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-05-07 12:35+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 4.17\n"

#. module: delivery_driver_stock_picking_batch
#: model:ir.model,name:delivery_driver_stock_picking_batch.model_stock_picking_batch
msgid "Batch Transfer"
msgstr "Trasferimento raggruppato"

#. module: delivery_driver_stock_picking_batch
#: model:ir.model.fields,field_description:delivery_driver_stock_picking_batch.field_stock_picking_batch__driver_ids
#: model_terms:ir.ui.view,arch_db:delivery_driver_stock_picking_batch.stock_picking_batch_filter_inherit_delivery_driver
msgid "Drivers"
msgstr "Autisti"
1 change: 1 addition & 0 deletions delivery_driver_stock_picking_batch/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_picking_batch
22 changes: 22 additions & 0 deletions delivery_driver_stock_picking_batch/models/stock_picking_batch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2023 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)


from odoo import api, fields, models


class StockPickingBatch(models.Model):
_inherit = "stock.picking.batch"

driver_ids = fields.Many2many(
"res.partner",
string="Drivers",
compute="_compute_driver_ids",
store=True,
domain="[('is_company', '=', False)]",
)

@api.depends("picking_ids.driver_id")
def _compute_driver_ids(self):
for batch in self:
batch.driver_ids = batch.picking_ids.mapped("driver_id")
3 changes: 3 additions & 0 deletions delivery_driver_stock_picking_batch/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions delivery_driver_stock_picking_batch/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To configure this module, you need to:

- Go to Inventory / Configuration / Settings.
- Active Batch Transfer and Delivery Methods.
4 changes: 4 additions & 0 deletions delivery_driver_stock_picking_batch/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Emilio Pascual ([Moduon](https://www.moduon.team/))
- Rafael Blasco ([Moduon](https://www.moduon.team/))
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia
1 change: 1 addition & 0 deletions delivery_driver_stock_picking_batch/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module extends the functionality of delivery and stock picking batch and to allow you to see in stock picking batch drivers assigned in pickings .
12 changes: 12 additions & 0 deletions delivery_driver_stock_picking_batch/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
To use this module, you need to:

1. Go to Inventory / Configuration / Shipping Methods.
2. Create new Shipping Method o choose one already created.
3. Choose Default Driver.
4. Go to Inventory / Operations / Transfer and create new Transfer.
5. Choose carrier.
6. The driver is automatically assigned.
7. You can change the driver without changing the carrier.
8. Go to Inventory / Operations / Batch Transfers and create new Batch.
9. Add picking created before.
10. Driver in batch is automatically assigned.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading