Skip to content

Commit e68e5cc

Browse files
[MIG] stock_picking_batch_set_quantity: Migration to 18.0
1 parent 34805d3 commit e68e5cc

File tree

11 files changed

+30
-85
lines changed

11 files changed

+30
-85
lines changed

stock_picking_batch_set_quantity/README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Stock Picking Batch Set Quantity
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_picking_batch_set_quantity
20+
:target: https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_batch_set_quantity
2121
:alt: OCA/stock-logistics-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_picking_batch_set_quantity
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-18-0/stock-logistics-workflow-18-0-stock_picking_batch_set_quantity
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -39,38 +39,38 @@ quantity in quantity done fields.
3939
Usage
4040
=====
4141

42-
#. Go to *Inventory > Operations > Batch Transfers*
42+
1. Go to *Inventory > Operations > Batch Transfers*
4343

44-
* Go to Detailed Operations or Operations page
45-
* Click button to fill quantity done
44+
- Go to Detailed Operations or Operations page
45+
- Click button to fill quantity done
4646

4747
Bug Tracker
4848
===========
4949

5050
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/issues>`_.
5151
In case of trouble, please check there if your issue has already been reported.
5252
If you spotted it first, help us to smash it by providing a detailed and welcomed
53-
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_picking_batch_set_quantity%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
53+
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_picking_batch_set_quantity%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5454

5555
Do not contact contributors directly about support or help with technical issues.
5656

5757
Credits
5858
=======
5959

6060
Authors
61-
~~~~~~~
61+
-------
6262

6363
* Tecnativa
6464

6565
Contributors
66-
~~~~~~~~~~~~
66+
------------
6767

68-
* `Tecnativa <https://www.tecnativa.com>`_:
68+
- `Tecnativa <https://www.tecnativa.com>`__:
6969

70-
* Carlos Dauden
70+
- Carlos Dauden
7171

7272
Maintainers
73-
~~~~~~~~~~~
73+
-----------
7474

7575
This module is maintained by the OCA.
7676

@@ -82,6 +82,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8282
mission is to support the collaborative development of Odoo features and
8383
promote its widespread use.
8484

85-
This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_picking_batch_set_quantity>`_ project on GitHub.
85+
This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_batch_set_quantity>`_ project on GitHub.
8686

8787
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

stock_picking_batch_set_quantity/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Stock Picking Batch Set Quantity",
55
"summary": "Adds buttons to set all reserved quantity in quantity done fields",
6-
"version": "15.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"development_status": "Beta",
88
"category": "Sale",
99
"website": "https://github.com/OCA/stock-logistics-workflow",
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
22

33
from . import stock_move
4-
from . import stock_move_line

stock_picking_batch_set_quantity/models/stock_move.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
class StockMove(models.Model):
88
_inherit = "stock.move"
99

10-
def action_set_quantities_to_reservation(self):
11-
"""Public method to be called from button"""
12-
self._set_quantities_to_reservation()
10+
def action_set_quantity(self):
11+
self.ensure_one()
12+
self._action_assign()
13+
if self.quantity:
14+
self.state = "done"

stock_picking_batch_set_quantity/models/stock_move_line.py

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- [Tecnativa](https://www.tecnativa.com):
2+
- Carlos Dauden

stock_picking_batch_set_quantity/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1. Go to *Inventory \> Operations \> Batch Transfers*
2+
- Go to Detailed Operations or Operations page
3+
- Click button to fill quantity done

stock_picking_batch_set_quantity/readme/USAGE.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)