mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] Improved Unit Test Case and Fixed Travis
This commit is contained in:
committed by
Florian da Costa
parent
74fdd60c62
commit
2f1fba7594
@@ -83,7 +83,7 @@ class RmaMakePicking(models.TransientModel):
|
||||
elif item.line_id.partner_id:
|
||||
delivery_address = item.line_id.partner_id
|
||||
else:
|
||||
raise ValidationError('Unknown delivery address')
|
||||
raise ValidationError(_('Unknown delivery address'))
|
||||
return delivery_address
|
||||
|
||||
@api.model
|
||||
@@ -111,9 +111,9 @@ class RmaMakePicking(models.TransientModel):
|
||||
warehouse = line.out_warehouse_id
|
||||
route = line.out_route_id
|
||||
if not route:
|
||||
raise ValidationError("No route specified")
|
||||
raise ValidationError(_("No route specified"))
|
||||
if not warehouse:
|
||||
raise ValidationError("No warehouse specified")
|
||||
raise ValidationError(_("No warehouse specified"))
|
||||
procurement_data = {
|
||||
'name': line.rma_id and line.rma_id.name or line.name,
|
||||
'group_id': group.id,
|
||||
|
||||
Reference in New Issue
Block a user