[9.0][IMP] mrp_production_request:

* Improve tests to cover 100% of the logic.
* Fix some wording issues.
This commit is contained in:
lreficent
2017-06-28 18:08:56 +02:00
committed by Chandresh Thakkar
parent e632b4225f
commit 171279f01e
4 changed files with 21 additions and 16 deletions

View File

@@ -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(