Skip to content

Commit

Permalink
[14.0][MIG] stock_move_change_source_location: migration from v13.0 t…
Browse files Browse the repository at this point in the history
…o v14.0
  • Loading branch information
AlvarTB committed Nov 25, 2021
1 parent baf011a commit 7befafe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion stock_move_change_source_location/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
This module allows you to change the source location of a stock move from the
picking
""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow S.L.,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": ["stock"],
"data": [
"security/ir.model.access.csv",
"wizards/stock_move_change_source_location_wizard.xml",
"views/stock_picking_view.xml",
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_stock_move_change_source_location_wizard,access_stock_move_change_source_location_wizard,model_stock_move_change_source_location_wizard,base.group_user,1,0,0,0
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_stock_move_change_source_location_failed(self):
self.picking.action_assign()
for move in self.picking.move_lines:
move.quantity_done = 1
self.picking.action_done()
self.picking._action_done()
new_location_id = self.Location.create(
{"name": "Shelf 1", "location_id": self.warehouse.lot_stock_id.id}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _check_allowed_pickings(self, pickings):
"You can not change move source location if "
"picking state is not in %s"
)
% ",".join(self._get_allowed_states())
% ", ".join(self._get_allowed_states())
)

def _check_allowed_moves(self, moves):
Expand All @@ -99,7 +99,7 @@ def _check_allowed_moves(self, moves):
"You can not change move source location if "
"the move state is not in %s"
)
% ",".join(self._get_allowed_states())
% ", ".join(self._get_allowed_states())
)
if any([move.move_orig_ids for move in moves]):
raise UserError(
Expand Down

0 comments on commit 7befafe

Please sign in to comment.