[FIX] mrp: add missing space in warning message
opw-1886349 Closes #27053
This commit is contained in:
@@ -3882,7 +3882,7 @@ msgstr ""
|
||||
#. module: mrp
|
||||
#: code:addons/mrp/models/mrp_unbuild.py:88
|
||||
#, python-format
|
||||
msgid "You cannot delete an unbuild order if the stateis \"Done\""
|
||||
msgid "You cannot delete an unbuild order if the state is 'Done'."
|
||||
msgstr ""
|
||||
|
||||
#. module: mrp
|
||||
|
||||
@@ -85,8 +85,7 @@ class MrpUnbuild(models.Model):
|
||||
@api.multi
|
||||
def unlink(self):
|
||||
if 'done' in self.mapped('state'):
|
||||
raise UserError(_('You cannot delete an unbuild order if the state'
|
||||
'is "Done"'))
|
||||
raise UserError(_("You cannot delete an unbuild order if the state is 'Done'."))
|
||||
return super(MrpUnbuild, self).unlink()
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user