Skip to content

Commit

Permalink
[FIX] mrp: add missing space in warning message
Browse files Browse the repository at this point in the history
opw-1886349
Closes odoo#27053
  • Loading branch information
pgu-odoo authored and mart-e committed Sep 19, 2018
1 parent b9473c0 commit 197119a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/mrp/i18n/mrp.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions addons/mrp/models/mrp_unbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ def create(self, vals):
@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
Expand Down

0 comments on commit 197119a

Please sign in to comment.