Skip to content

Commit

Permalink
[FIX] correct the "Incoming Date" text
Browse files Browse the repository at this point in the history
replace exceptions.Warning with exceptions.UserError
  • Loading branch information
fanha99 committed Aug 21, 2017
1 parent 920ae7b commit 3d8934e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stock_quant_manual_assign/wizard/assign_manual_quants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def check_qty(self):
for record in self.filtered('quants_lines'):
if float_compare(record.lines_qty, move.product_qty,
precision_digits=precision_digits) > 0:
raise exceptions.Warning(
raise exceptions.UserError(
_('Quantity is higher than the needed one'))

@api.depends('quants_lines', 'quants_lines.qty')
Expand Down Expand Up @@ -112,7 +112,7 @@ def onchange_selected(self):
related='quant.lot_id', readonly=True,
groups="stock.group_production_lot")
in_date = fields.Date(
string='In Date', readonly=True)
string='Incoming Date', readonly=True)
package_id = fields.Many2one(
comodel_name='stock.quant.package', string='Package',
related='quant.package_id', readonly=True,
Expand Down

0 comments on commit 3d8934e

Please sign in to comment.