mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[9.0][IMP] mrp_production_request:
* Improve tests to cover 100% of the logic. * Fix some wording issues.
This commit is contained in:
committed by
Chandresh Thakkar
parent
e632b4225f
commit
171279f01e
@@ -179,8 +179,8 @@ class MrpProductionRequest(models.Model):
|
||||
if any([s in self._get_mo_valid_states() for s in self.mapped(
|
||||
'mrp_production_ids.state')]):
|
||||
raise UserError(
|
||||
_("You cannot reset a manufacturing request with "
|
||||
"manufacturing orders not cancelled."))
|
||||
_("You cannot reset a manufacturing request if the related "
|
||||
"manufacturing orders are not cancelled."))
|
||||
if any([s in ['done', 'cancel'] for s in self.mapped(
|
||||
'procurement_id.state')]):
|
||||
raise UserError(
|
||||
|
||||
Reference in New Issue
Block a user