Skip to content

Commit 4daefbd

Browse files
committed
Merge PR #759 into 16.0
Signed-off-by rafaelbn
2 parents d57955f + 313f21e commit 4daefbd

18 files changed

+865
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
===================================
2+
Delivery Driver Stock Picking Batch
3+
===================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:88a974a8f725e51f471ed8fc8dc1c0e4d0d46a9f81d98845b137ade7b752b53f
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github
20+
:target: https://github.com/OCA/delivery-carrier/tree/16.0/delivery_driver_stock_picking_batch
21+
:alt: OCA/delivery-carrier
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_driver_stock_picking_batch
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module extends the functionality of delivery and stock picking
32+
batch and to allow you to see in stock picking batch drivers assigned in
33+
pickings .
34+
35+
.. IMPORTANT::
36+
This is an alpha version, the data model and design can change at any time without warning.
37+
Only for development or testing purpose, do not use in production.
38+
`More details on development status <https://odoo-community.org/page/development-status>`_
39+
40+
**Table of contents**
41+
42+
.. contents::
43+
:local:
44+
45+
Configuration
46+
=============
47+
48+
To configure this module, you need to:
49+
50+
- Go to Inventory / Configuration / Settings.
51+
- Active Batch Transfer and Delivery Methods.
52+
53+
Usage
54+
=====
55+
56+
To use this module, you need to:
57+
58+
1. Go to Inventory / Configuration / Shipping Methods.
59+
2. Create new Shipping Method o choose one already created.
60+
3. Choose Default Driver.
61+
4. Go to Inventory / Operations / Transfer and create new Transfer.
62+
5. Choose carrier.
63+
6. The driver is automatically assigned.
64+
7. You can change the driver without changing the carrier.
65+
8. Go to Inventory / Operations / Batch Transfers and create new Batch.
66+
9. Add picking created before.
67+
10. Driver in batch is automatically assigned.
68+
69+
Bug Tracker
70+
===========
71+
72+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
73+
In case of trouble, please check there if your issue has already been reported.
74+
If you spotted it first, help us to smash it by providing a detailed and welcomed
75+
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_driver_stock_picking_batch%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
76+
77+
Do not contact contributors directly about support or help with technical issues.
78+
79+
Credits
80+
=======
81+
82+
Authors
83+
-------
84+
85+
* Moduon
86+
87+
Contributors
88+
------------
89+
90+
- Emilio Pascual (`Moduon <https://www.moduon.team/>`__)
91+
- Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
92+
93+
Maintainers
94+
-----------
95+
96+
This module is maintained by the OCA.
97+
98+
.. image:: https://odoo-community.org/logo.png
99+
:alt: Odoo Community Association
100+
:target: https://odoo-community.org
101+
102+
OCA, or the Odoo Community Association, is a nonprofit organization whose
103+
mission is to support the collaborative development of Odoo features and
104+
promote its widespread use.
105+
106+
.. |maintainer-EmilioPascual| image:: https://github.com/EmilioPascual.png?size=40px
107+
:target: https://github.com/EmilioPascual
108+
:alt: EmilioPascual
109+
110+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
111+
112+
|maintainer-EmilioPascual|
113+
114+
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/16.0/delivery_driver_stock_picking_batch>`_ project on GitHub.
115+
116+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2023 Moduon Team S.L.
2+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
3+
4+
{
5+
"name": "Delivery Driver Stock Picking Batch",
6+
"summary": "Add drivers from delivery in stock picking batch",
7+
"version": "16.0.1.0.0",
8+
"development_status": "Alpha",
9+
"category": "Inventory/Delivery",
10+
"website": "https://github.com/OCA/delivery-carrier",
11+
"author": "Moduon, Odoo Community Association (OCA)",
12+
"maintainers": ["EmilioPascual"],
13+
"license": "LGPL-3",
14+
"application": False,
15+
"installable": True,
16+
"depends": [
17+
"stock_picking_batch",
18+
"delivery_driver",
19+
],
20+
"data": [
21+
"views/stock_picking_batch.xml",
22+
],
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * delivery_driver_stock_picking_batch
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-01-08 08:48+0000\n"
10+
"PO-Revision-Date: 2024-01-08 08:48+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: delivery_driver_stock_picking_batch
19+
#: model:ir.model,name:delivery_driver_stock_picking_batch.model_stock_picking_batch
20+
msgid "Batch Transfer"
21+
msgstr ""
22+
23+
#. module: delivery_driver_stock_picking_batch
24+
#: model:ir.model.fields,field_description:delivery_driver_stock_picking_batch.field_stock_picking_batch__driver_ids
25+
#: model_terms:ir.ui.view,arch_db:delivery_driver_stock_picking_batch.stock_picking_batch_filter_inherit_delivery_driver
26+
msgid "Drivers"
27+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * delivery_driver_stock_picking_batch
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-01-08 08:48+0000\n"
10+
"PO-Revision-Date: 2024-01-08 09:53+0100\n"
11+
"Last-Translator: Emilio Pascual <emilio@moduom.team>\n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.4\n"
19+
20+
#. module: delivery_driver_stock_picking_batch
21+
#: model:ir.model,name:delivery_driver_stock_picking_batch.model_stock_picking_batch
22+
msgid "Batch Transfer"
23+
msgstr "Transferir agrupación"
24+
25+
#. module: delivery_driver_stock_picking_batch
26+
#: model:ir.model.fields,field_description:delivery_driver_stock_picking_batch.field_stock_picking_batch__driver_ids
27+
#: model_terms:ir.ui.view,arch_db:delivery_driver_stock_picking_batch.stock_picking_batch_filter_inherit_delivery_driver
28+
msgid "Drivers"
29+
msgstr "Conductores"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import stock_picking_batch
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2023 Moduon Team S.L.
2+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
3+
4+
5+
from odoo import api, fields, models
6+
7+
8+
class StockPickingBatch(models.Model):
9+
_inherit = "stock.picking.batch"
10+
11+
driver_ids = fields.Many2many(
12+
"res.partner",
13+
string="Drivers",
14+
compute="_compute_driver_ids",
15+
store=True,
16+
domain="[('is_company', '=', False)]",
17+
)
18+
19+
@api.depends("picking_ids.driver_id")
20+
def _compute_driver_ids(self):
21+
for batch in self:
22+
batch.driver_ids = batch.picking_ids.mapped("driver_id")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
To configure this module, you need to:
2+
3+
- Go to Inventory / Configuration / Settings.
4+
- Active Batch Transfer and Delivery Methods.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Emilio Pascual ([Moduon](https://www.moduon.team/))
2+
- Rafael Blasco ([Moduon](https://www.moduon.team/))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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 .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
To use this module, you need to:
2+
3+
1. Go to Inventory / Configuration / Shipping Methods.
4+
2. Create new Shipping Method o choose one already created.
5+
3. Choose Default Driver.
6+
4. Go to Inventory / Operations / Transfer and create new Transfer.
7+
5. Choose carrier.
8+
6. The driver is automatically assigned.
9+
7. You can change the driver without changing the carrier.
10+
8. Go to Inventory / Operations / Batch Transfers and create new Batch.
11+
9. Add picking created before.
12+
10. Driver in batch is automatically assigned.
Loading

0 commit comments

Comments
 (0)