Skip to content

Commit

Permalink
location transfer bknd: expose pkg lvl picking
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Jul 17, 2020
1 parent ae92f59 commit 14009f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions shopfloor/actions/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def _package_level_parser(self):
return [
"id",
"is_done",
("picking_id:picking", self._simple_record_parser()),
("package_id:package_src", self._package_parser),
("location_dest_id:location_dest", self._location_parser),
(
Expand Down
1 change: 1 addition & 0 deletions shopfloor/services/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def package_level(self):
return {
"id": {"required": True, "type": "integer"},
"is_done": {"type": "boolean", "nullable": False, "required": True},
"picking": self._schema_dict_of(self._simple_record()),
"package_src": self._schema_dict_of(self.package()),
"location_src": self._schema_dict_of(self.location()),
"location_dest": self._schema_dict_of(self.location()),
Expand Down
1 change: 1 addition & 0 deletions shopfloor/tests/test_actions_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def test_data_package_level(self):
expected = {
"id": package_level.id,
"is_done": False,
"picking": self.picking.jsonify(["id", "name"])[0],
"package_src": self._expected_package(package_level.package_id),
"location_dest": self._expected_location(package_level.location_dest_id),
"location_src": self._expected_location(
Expand Down

0 comments on commit 14009f6

Please sign in to comment.