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
9 changes: 9 additions & 0 deletions stock_valuation_fifo_lot/i18n/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ msgstr ""
msgid "No Reason Given"
msgstr "理由が指定されていません"

#. module: stock_valuation_fifo_lot
#. odoo-python
#: code:addons/stock_valuation_fifo_lot/wizard/stock_valuation_layer_revaluation.py:0
#, python-format
msgid ""
"No quant found for the given lot and can't do revaluation. Please ensure the"
" lot is in an internal location."
msgstr "指定ロットの在庫数量が見つからず、再評価できません。ロットが内部ロケーションにあることを確認してください。"

#. module: stock_valuation_fifo_lot
#: model:ir.model,name:stock_valuation_fifo_lot.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ def action_validate_revaluation(self):
("location_id.usage", "=", "internal"),
]
)
if not quants:
raise UserError(
_(
"No quant found for the given lot and can't do revaluation. "
"Please ensure the lot is in an internal location."
)
)
quants = quants.with_context(
inventory_name=description,
lot_revaluation_account=self.account_id,
Expand Down
Loading