Skip to content

Commit

Permalink
[MIG] stock_picking_mass_action: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pausanchezqubiq committed Jun 7, 2023
1 parent 58e90af commit a176831
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions stock_picking_mass_action/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Stock Picking Mass Action
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_picking_mass_action
:target: https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_mass_action
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-15-0/stock-logistics-workflow-15-0-stock_picking_mass_action
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_mass_action
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/154/15.0
:target: https://runbot.odoo-community.org/runbot/154/16.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -99,6 +99,6 @@ 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.

This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/15.0/stock_picking_mass_action>`_ project on GitHub.
This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_mass_action>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion stock_picking_mass_action/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Picking Mass Action",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"author": "Camptocamp, GRAP, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"license": "AGPL-3",
Expand Down
1 change: 1 addition & 0 deletions stock_picking_mass_action/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
* Vicent Cubells
* Carlos Dauden
* Sergio Teruel
* Pau Sanchez ([email protected])
6 changes: 3 additions & 3 deletions stock_picking_mass_action/tests/test_mass_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def setUpClass(cls):
"picking_type_id": picking_type_out.id,
"location_id": stock_location.id,
"location_dest_id": customer_location.id,
"move_lines": [
"move_ids": [
(
0,
0,
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_mass_action(self):
{"picking_ids": [(4, self.picking.id)]}
)
wiz_tranfer.confirm = True
for line in self.picking.move_lines:
for line in self.picking.move_ids:
line.quantity_done = line.product_uom_qty
wiz_tranfer.mass_action()
self.assertEqual(self.picking.state, "done")
Expand Down Expand Up @@ -103,6 +103,6 @@ def test_mass_action_backorder(self):
{"picking_ids": [(4, self.picking.id)], "confirm": True, "transfer": True}
)
self.picking.action_assign()
self.picking.move_lines[0].quantity_done = 30
self.picking.move_ids[0].quantity_done = 30
res = wiz_tranfer.mass_action()
self.assertEqual(res["res_model"], "stock.backorder.confirmation")

0 comments on commit a176831

Please sign in to comment.