Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion shopfloor_reception/actions/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ def _product_parser(self):
parser functions. We use *args to capture them.
"""
res = super(DataAction, self)._product_parser
return res + ["use_expiration_date"]
data_detail_action = self._actions_for("data_detail")
return res + [
"use_expiration_date",
("image_256:image", data_detail_action._product_image_url),
]

@property
def _lot_parser_reception(self):
Expand Down
1 change: 1 addition & 0 deletions shopfloor_reception/actions/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def product(self):
"nullable": True,
"required": False,
},
"image": {"type": "string", "nullable": True, "required": False},
}
)
return res
Expand Down
3 changes: 3 additions & 0 deletions shopfloor_reception_mobile/static/src/scenario/reception.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ const Reception = {
:card_color="is_set_lot_possible() ? utils.colors.color_for('screen_step_done') : utils.colors.color_for('screen_step_todo')"
:key="make_state_component_key(['reception-product-item-detail-set-lot', state.data.picking.id])"
/>
<div v-if="line_being_handled.product.image" class="d-flex align-center justify-center mx-auto" style="height: 256px; width: 256px;">
<v-img :src="line_being_handled.product.image" max-width="256" class="mx-auto"/>
</div>
<div class="button-list button-vertical-list full">
<v-row align="center">
<v-col class="text-center" cols="12">
Expand Down
Loading